diff --git a/browse/src/sidebar-agent.ts b/browse/src/sidebar-agent.ts index 71bdc609..9aebf3fc 100644 --- a/browse/src/sidebar-agent.ts +++ b/browse/src/sidebar-agent.ts @@ -367,6 +367,7 @@ async function handleStreamEvent(event: any, tabId?: number, canaryCtx?: CanaryC // fires, onToolResultBlock handles kill + emit. toolResultScanCtx.scan(toolName, text).catch(() => {}); } + if (block.tool_use_id) toolUseRegistry.delete(block.tool_use_id); } } }