refactor(cli): switch useToolScheduler to event-driven engine (#18565)

This commit is contained in:
Abhi
2026-02-08 15:28:37 -05:00
committed by GitHub
parent 4a48d7cf93
commit 802bcf4dee
4 changed files with 9 additions and 100 deletions
+1 -3
View File
@@ -389,7 +389,6 @@ export const useGeminiStream = (
toolCalls.length > 0 &&
toolCalls.every((tc) => pushedToolCallIds.has(tc.request.callId));
const isEventDriven = config.isEventDrivenSchedulerEnabled();
const anyVisibleInHistory = pushedToolCallIds.size > 0;
const anyVisibleInPending = remainingTools.some((tc) => {
// AskUser tools are rendered by AskUserDialog, not ToolGroupMessage
@@ -400,7 +399,6 @@ export const useGeminiStream = (
if (tc.request.name === ASK_USER_TOOL_NAME && isInProgress) {
return false;
}
if (!isEventDriven) return true;
return (
tc.status !== 'scheduled' &&
tc.status !== 'validating' &&
@@ -422,7 +420,7 @@ export const useGeminiStream = (
}
return items;
}, [toolCalls, pushedToolCallIds, config]);
}, [toolCalls, pushedToolCallIds]);
const activeToolPtyId = useMemo(() => {
const executingShellTool = toolCalls.find(