mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 16:41:11 -07:00
Refactor managed execution state for virtual backgrounding
This commit is contained in:
@@ -313,9 +313,9 @@ export const useGeminiStream = (
|
||||
|
||||
const activeToolPtyId = useMemo(() => {
|
||||
const executingBackgroundableTool = toolCalls.find(
|
||||
(tc): tc is TrackedExecutingToolCall =>
|
||||
tc.status === CoreToolCallStatus.Executing &&
|
||||
typeof tc.pid === 'number',
|
||||
(toolCall): toolCall is TrackedExecutingToolCall =>
|
||||
toolCall.status === CoreToolCallStatus.Executing &&
|
||||
typeof toolCall.pid === 'number',
|
||||
);
|
||||
return executingBackgroundableTool?.pid;
|
||||
}, [toolCalls]);
|
||||
|
||||
Reference in New Issue
Block a user