mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-12 12:26:57 -07:00
f853d2f9da
This commit ensures that when a tool call enters the 'awaiting_approval' state (which is not yet supported in the new protocol), we not only emit a fatal error but also emit a 'tool_response' event with 'isError: true'. This allows the UI to correctly transition the tool call from a pending (scheduled/executing) state to an error state, providing clear visual feedback to the user and preventing the UI from appearing to hang.