Bug: Agent fails to execute terminal commands with "unexpected user interaction type: not permission"

Environment:

  • OS: Ubuntu 24.04
  • IDE: Google Antigravity

Description:
When the Antigravity AI Agent attempts to use the run_command tool to execute terminal commands, the step execution fails immediately with the error: unexpected user interaction type: not permission. It seems the internal handler fails to process the permission prompt correctly, blocking the agent from running any automated terminal commands.

Steps to Reproduce:

  1. Open the Antigravity IDE on an Ubuntu 24.04 machine.
  2. Ask the agent to run a simple command in the terminal (e.g., python -c "print('hello world')").
  3. The agent attempts to make the tool call to execute the command.
  4. The tool call fails and returns the following error output to the agent:
    Encountered error in step execution: unexpected user interaction type: not permission

Troubleshooting Attempted (Did not resolve the issue):

  • Cleared the daemon logs (~/.gemini/antigravity/daemon/*.log).
  • Cleared the context state (~/.gemini/antigravity/context_state/*) and prompting cache.
  • Restarted the IDE using Developer: Reload Window.
  • The issue completely persists despite starting a fresh session and clearing the cache.

Expected Behavior:
The IDE should correctly prompt the user for execution permission (Approve/Reject) or auto-run the command if marked as safe, rather than failing with an unhandled interaction type error.

I’m having the exact same issue on Windows 11.

Specifically, it doesn’t work when using keyboard shortcuts, but it works fine when I manually click the button to approve it.

The error message I’m getting is:
Encountered error in step execution: unexpected user interaction type: not permission