UI Bug: Chat input text cleared upon agent approval request

I’m encountering a reproducible UI bug in version 2.1.1 of the Google Antigravity IDE. Whenever the agent triggers an approval request (e.g., for file operations or tool use), the text currently being typed in the chat input box is completely wiped/cleared once the approval dialog appears.

Steps to reproduce:

  1. Initiate a task with an agent and allow it to start working.

  2. While the agent is processing/working, start typing a new, long message in the chat input box.

  3. Trigger (or wait for) an action that requires agent approval (e.g., the agent attempts to edit a file or run a restricted command).

  4. Observe the chat input box as the approval dialog appears: the text currently being typed is instantly cleared/reset.

Expected behavior: The text in the chat input box should remain preserved and focused while the approval dialog is active.

Actual behavior: The input field is reset and all typed text disappears as soon as the approval dialog overlays the chat UI.

Environment:

  • Antigravity IDE Version: 2.1.1
    VSCode OSS Version: 1.107.0 (user setup)
    Commit: e0b7a2bcf575cfba10528c4e7c10bd3ce2d7769a
    Date: 2026-06-17T22:39:43.962Z
    Electron: 39.2.3
    Chromium: 142.0.7444.175
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.26200
    Language Server CL: 933924006