diff --git a/packages/core/src/agent/legacy-agent-session.ts b/packages/core/src/agent/legacy-agent-session.ts index 6286305634..58063f200a 100644 --- a/packages/core/src/agent/legacy-agent-session.ts +++ b/packages/core/src/agent/legacy-agent-session.ts @@ -170,6 +170,15 @@ class LegacyAgentProtocol implements AgentProtocol { for (const tc of event.toolCalls) { if (tc.status === 'awaiting_approval') { this._emit([ + this._makeToolResponseEvent({ + requestId: tc.request.callId, + name: tc.request.name, + content: [ + { type: 'text', text: 'Tool approvals not yet implemented.' }, + ], + isError: true, + displayContent: [{ type: 'text', text: 'Approval required' }], + }), this._makeErrorEvent({ status: 'UNIMPLEMENTED', message: