877
*/
878
requestUserInput(request: ChatInputRequest, parentToolCallId?: string): Promise<{ response: ChatInputResponseKind; answers?: Record<string, ChatInputAnswer> }> {
879
>
if (!this._pipeline || this._pipeline.isAborted || !this._pipeline.hasActiveTurn) {
claudeAgentSession.ts
880
return Promise.resolve({ response: ChatInputResponseKind.Cancel });
881
}
883
>
this._onDidSessionProgress.fire({
884
>
kind: 'action',
885
>
resource: this._chatChannelUri,
886
>
action: {
887
>
type: ActionType.ChatInputRequested,
888
>
request,
889
>
},
890
>
...(parentToolCallId !== undefined ? { parentToolCallId } : {}),
891
>
});
892
>
});
893
>
}
894
895
respondToUserInputRequest(