1971
1972
respondToPermissionRequest(requestId: string, approved: boolean): void {
1973
>
// `requestId` is the SDK's `tool_use_id` — globally unique, so a
claudeAgent.ts
1974
>
// single matching chat is all we need. Silent on miss (workbench may
1975
>
// have raced a session dispose).
1976
>
for (const sess of this._allLiveSessions()) {
1977
if (sess.respondToPermissionRequest(requestId, approved)) {
1978
return;
1979
}
1980
}
1982
1983
respondToUserInputRequest(requestId: string, response: ChatInputResponseKind, answers?: Record<string, ChatInputAnswer>): void {