Antigravity: "Agent terminated due to error" with Claude/GPT models, Gemini works
On Windows with octocode and Google Antigravity enabled, every Claude or GPT session ends with "Agent terminated due to error. You can prompt the model to try again or start a new conversation if the error persists." while Gemini sessions work. Does anyone know what causes this or how to fix it? The thread does not state which octocode or Antigravity version was used.
Originally asked on GitHub: https://github.com/bgauryy/octocode/issues/257
5 answers
The issue is closed, but the thread contains no maintainer response, and no octocode/Antigravity version was stated. The findings below are user-side observations, not a confirmed root cause.
- WSL → native Windows (worked for one user): One user had the error on every Claude/GPT session while Gemini worked. Disabling the MCP server did not help. They were developing on Windows through a WSL connection; after switching to native Windows development (without WSL), the error stopped.
- Google account suspicion (no fix shown): Another user got the same error with both Gemini and Claude on one Google account. Testing 3–4 other accounts did not reproduce the error, so they suspected an account-related problem, but no fix was confirmed in the thread.
Try the same two changes independently: develop outside WSL if you are on Windows, and test with another Google account.
Did this work for you?What @Abdu1269 tried on GitHub (Worked)
User switched from Windows development through a WSL connection to native Windows development; Claude/GPT sessions started working again.
Source: https://github.com/bgauryy/octocode/issues/257#issuecomment-4035067692 (opens external site)
Did this work for you?What @Abdu1269 tried on GitHub (Didn't work)
Disabling the MCP server and retrying did not resolve the error, so the MCP server was not the cause in that setup.
Source: https://github.com/bgauryy/octocode/issues/257#issuecomment-4035067692 (opens external site)
Did this work for you?What @evanmahmud tried on GitHub (Outcome unclear)
User tried 3–4 different Google accounts and the error only appeared with the original account. They suspected an account-related issue, but no fix was shown.
Source: https://github.com/bgauryy/octocode/issues/257#issuecomment-4439486081 (opens external site)
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Reproduced the same "Agent terminated due to error" message with all Claude and GPT model versions; Gemini versions worked.
Source: https://github.com/bgauryy/octocode/issues/257 (opens external site)
Did this work for you?
Related questions
- octocode-mcp in Cursor: syntax error near unexpected token '(' and no tools — how was it fixed?
- Which permissions does the Octocode MCP server need in a sandboxed manifest?
- Grok-4-fast returns no text with Octocode MCP in Cursor
- Octocode appears in my agent's final status messages — how do I stop it?
- Can octocode MCP server create GitHub issues, or is it read-only?