gemini-cli - 💡(How to fix) Fix Gemini 3.1 Pro hangs indefinitely in Antigravity 1.23.2 and returns HTTP 500 INTERNAL

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Gemini models in Antigravity 1.23.2 fail to return responses and remain stuck in a perpetual "Generating..." state. Claude models work correctly on the same machine/environment.

Eventually the request surfaces a backend error:

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

Error Message

Eventually the request surfaces a backend error: "error": { "message": "Internal error encountered.", 5. Observe indefinite loading followed by backend 500 error

Error Details

Raw error: "error": { "message": "Internal error encountered.",

Root Cause

Gemini models in Antigravity 1.23.2 fail to return responses and remain stuck in a perpetual "Generating..." state. Claude models work correctly on the same machine/environment.

Eventually the request surfaces a backend error:

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

Code Example

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

---

Reply with only "ok"

---

9197729e-0a5b-4271-94da-35dbf2a5f667

---

0x7c26c0a62befff5b

---

{
  "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"],
  "Content-Length": ["109"],
  "Content-Type": ["text/event-stream"],
  "Date": ["Fri, 08 May 2026 15:10:38 GMT"],
  "Server": ["ESF"],
  "Server-Timing": ["gfet4t7; dur=11348"],
  "Vary": ["Origin","X-Origin","Referer"],
  "X-Cloudaicompanion-Trace-Id": ["7c26c0a62befff5b"],
  "X-Content-Type-Options": ["nosniff"],
  "X-Frame-Options": ["SAMEORIGIN"],
  "X-Xss-Protection": ["0"]
}

---

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

---

About Gemini CLI│                                                                                                                      │
CLI Version                              0.41.2Git Commit                               b0c7a1722                                                                   │
Model                                    gemini-3-flash-preview                                                      │
Sandbox                                  no sandbox                                                                  │
OS                                       darwin                                                                      │
Auth Method                              Signed in with Google (kevin.dsouza@ttc.dev)Tier                                     Gemini Code Assist for individuals                                          │
RAW_BUFFERClick to expand / collapse

What happened?

Summary

Gemini models in Antigravity 1.23.2 fail to return responses and remain stuck in a perpetual "Generating..." state. Claude models work correctly on the same machine/environment.

Eventually the request surfaces a backend error:

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

Environment

  • Antigravity version: 1.23.2
  • OS: Mac M2
  • Network: Home
  • Google account type: Workspace and Personal
  • Models affected: Gemini 3.1 Pro (High), Gemini 3.1 Pro (Low), Gemini 3 Flash
  • Models working: All Claude models, GPT OSS 120B (Medium

Behavior

When prompting Gemini models:

  • UI remains stuck on "Generating..."
  • No response tokens are streamed
  • Eventually returns HTTP 500 INTERNAL

Claude models work normally in the same app/session.

Reproduction Steps

  1. Open Antigravity 1.23.2

  2. Start a fresh conversation

  3. Select Gemini 3.1 Pro

  4. Enter a trivial prompt such as:

    Reply with only "ok"
  5. Observe indefinite loading followed by backend 500 error

Expected Behavior

Gemini should return a normal response stream.

Actual Behavior

Request hangs indefinitely and eventually fails with INTERNAL 500.

Error Details

Trajectory ID:

9197729e-0a5b-4271-94da-35dbf2a5f667

Trace ID:

0x7c26c0a62befff5b

Response headers:

{
  "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"],
  "Content-Length": ["109"],
  "Content-Type": ["text/event-stream"],
  "Date": ["Fri, 08 May 2026 15:10:38 GMT"],
  "Server": ["ESF"],
  "Server-Timing": ["gfet4t7; dur=11348"],
  "Vary": ["Origin","X-Origin","Referer"],
  "X-Cloudaicompanion-Trace-Id": ["7c26c0a62befff5b"],
  "X-Content-Type-Options": ["nosniff"],
  "X-Frame-Options": ["SAMEORIGIN"],
  "X-Xss-Protection": ["0"]
}

Raw error:

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

Additional Notes

  • Gemini works on another person's machine

  • Claude works on this machine

  • This may indicate either:

    • account-specific backend issue
    • local auth/session corruption
    • Gemini routing/backend regression in 1.23.2

Troubleshooting Attempted

  • Switched models
  • Started fresh conversations
  • Retried prompts
  • Verified Claude works
  • Verified Gemini works elsewhere

What did you expect to happen?

Should have got a successful response.

Client information

<details> <summary>Client Information</summary>
│ About Gemini CLI                                                                                                     │
│                                                                                                                      │
│ CLI Version                              0.41.2                                                                      │
│ Git Commit                               b0c7a1722                                                                   │
│ Model                                    gemini-3-flash-preview                                                      │
│ Sandbox                                  no sandbox                                                                  │
│ OS                                       darwin                                                                      │
│ Auth Method                              Signed in with Google ([email protected])                                │
│ Tier                                     Gemini Code Assist for individuals                                          │
</details>

Login information

I'm logging in using my Google account. This is a Workspace account. I tried another personal account of mine, and Antigravity responded in the same manner.

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING