mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-30 05:32:47 -07:00
0f37dd1d78
This commit ensures that the interactive agent loop does not hang when a tool requires manual approval (since confirmation dialogs are not yet implemented for the new protocol). Instead of waiting indefinitely, 'LegacyAgentSession' now detects the 'awaiting_approval' status, emits a descriptive error event, and aborts the session. Key changes: - 'LegacyAgentSession' now emits status updates in 'tool_update' events. - 'LegacyAgentSession' aborts and errors on 'awaiting_approval' status. - 'useAgentStream' now correctly tracks and displays tool status transitions and intermediate progress via the 'AgentEvent' stream.