fix(cli): prevent sub-agent tool calls from leaking into UI (#20580)

This commit is contained in:
Abhi
2026-02-27 14:00:19 -05:00
committed by GitHub
parent 5d24d6a9e1
commit c914fd0700
2 changed files with 40 additions and 27 deletions
@@ -115,6 +115,12 @@ export function useToolScheduler(
useEffect(() => {
const handler = (event: ToolCallsUpdateMessage) => {
// Only process updates for the root scheduler.
// Subagent internal tools should not be displayed in the main tool list.
if (event.schedulerId !== ROOT_SCHEDULER_ID) {
return;
}
// Update output timer for UI spinners (Side Effect)
const hasExecuting = event.toolCalls.some(
(tc) =>