Skip to content

Fix Gemini chats with Rex and other tool plugins enabled - #358

Open
wabarurse wants to merge 1 commit into
mainfrom
fix/gemini-plugin-tools
Open

wabarurse wants to merge 1 commit into
mainfrom
fix/gemini-plugin-tools

Conversation

@wabarurse

Copy link
Copy Markdown
Owner

What changed

A Gemini chat previously rejected even a plain text prompt if a plugin such as Rex registered a tool hook. This happened before Orca sent any request to Google.

Chats with plugins now run the official signed-in Antigravity agent through ACP and give it the orchestrator’s Orca tools over a private, turn-scoped MCP connection. Calls go through the existing Orca tool dispatcher, including confirmation, command guards and before/after hooks. The CLI can grant a single call to a registered Orca tool when its session, tool name, call ID and arguments match the pending request. Other permission requests are declined.

Gemini owns the model loop and its account stays in the official CLI. Each Orca chat and profile has its own managed Gemini history. Existing plain-CLI conversations keep their transcript when first switching to an Orca-tool session. An incompatible model-request hook still blocks the turn and names the responsible plugin.

Verification

  • Reproduced the original refusal using the main build and the Rex plugin in an isolated Orca chat.
  • Used a signed-in agy 1.5.22 to execute an Orca shell command whose result depended on Rex supplying a randomly generated viewer value. The follow-up recalled the same value without another shell call.
  • Confirmed a native file read that would bypass the bridge was denied. Regression tests also exercise blocked and rewritten commands, after-tool results, replay, cancellation, and scoped permissions.
  • Type checking, lint, and all 16 focused Gemini tests passed. The full test suite reported the same four unrelated failures as a clean checkout of main (argumentless commands, text selection, command inventory, and span report indentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant