2801
}
2802
if (action.type === ActionType.ChatToolCallConfirmed) {
2804
>
const subagentChatUri = this._pendingSubagentToolCalls.get(key);
2805
>
if (subagentChatUri === undefined) {
2806
return;
2807
}
2809
>
if (action.approved) {
2810
this._armPendingSubagentChat(subagentChatUri);
2811
}
2812
>
// Denied: the subagent will never spawn; nothing to resolve since
agentService.ts
2813
>
// the wait was never armed while awaiting confirmation.
2814
>
return;
2815
>
}
2816
if (action.type === ActionType.ChatToolCallComplete) {
2817
// Defensive cleanup: a tool call can complete without ever being