2779
const { channel, action } = envelope;
2780
if (action.type === ActionType.ChatToolCallStart || action.type === ActionType.ChatToolCallDelta || action.type === ActionType.ChatToolCallReady) {
2782
>
// Providers stamp `toolKind`/`subagentChatUri` on whichever action
2783
>
// first reveals it (Copilot at Start, Claude at Ready) — later
2784
>
// actions for the same tool call don't repeat it, so fall back to
2785
>
// what we already recorded for this tool call.
2786
>
const subagentChatUri = readToolCallMeta(action).subagentChatUri ?? this._pendingSubagentToolCalls.get(key);
2787
>
if (subagentChatUri === undefined) {
2788
return;
2789
}
2790
>
if (action.type === ActionType.ChatToolCallReady && action.confirmed) {
agentService.ts
2791
// Goes straight to Running — arm the bounded wait now.
2792
this._pendingSubagentToolCalls.delete(key);