Errors with Opus 4.5 through Antigravity that I don't get with Opus 4.5 through Claud Pro #3804

Closed
opened 2026-02-16 17:41:32 -05:00 by yindo · 7 comments
Owner

Originally created by @bcardarella on GitHub (Dec 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

These seems to happen from time to time

Edit: to be clear, I can use Opus 4.5 through Antigravity without issue then randomly these errors happen. I cannot continue in that agent with that context history. If I /undo I can continue but of course loose whatever context that had built between those prompts.

The link above is from /share but doesn't seem to be loading. Maybe you all have the data on your end to inspect still?

{"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable `thinking`. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking"},"request_id":"req_vrtx_011CWQKuoNZWVxLby78G47pT"}
[Debug Info]
Requested Model: claude-opus-4-5-thinking
Effective Model: claude-opus-4-5-thinking
Project: groovy-spanner-nxhhm
Endpoint: https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:streamGenerateContent?alt=sse
Status: 400
Request ID: N/A
Tool Debug Missing: 13
Tool Debug Summary: decl=bash,src=functionDeclarations,hasSchema=y | decl=read,src=functionDeclarations,hasSchema=y | decl=glob,src=functionDeclarations,hasSchema=y | decl=grep,src=functionDeclarations,hasSchema=y | decl=list,src=functionDeclarations,hasSchema=y | decl=edit,src=functionDeclarations,hasSchema=y | decl=write,src=functionDeclarations,hasSchema=y | decl=task,src=functionDeclarations,hasSchema=y | decl=webfetch,src=functionDeclarations,hasSchema=y | decl=todowrite,src=functionDeclarations,hasSchema=y | decl=todoread,src=functionDeclarations,hasSchema=n | decl=skill,src=functionDeclarations,hasSchema=y | decl=prune,src=functionDeclarations,hasSchema=y | decl=bd_ready,src=functionDeclarations,hasSchema=y | decl=bd_create,src=functionDeclarations,hasSchema=y | decl=bd_update,src=functionDeclarations,hasSchema=y | decl=bd_close,src=functionDeclarations,hasSchema=y | decl=bd_reopen,src=functionDeclarations,hasSchema=y | decl=bd_show,src=functionDeclarations,hasSchema=y | decl=bd_list,src=functionDeclarations,hasSchema=y
Tool Debug Payload:

OpenCode version

1.0.193

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @bcardarella on GitHub (Dec 23, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description [These seems to happen from time to time ](https://opncd.ai/share/hw7uG3qn) Edit: to be clear, I can use Opus 4.5 through Antigravity without issue then randomly these errors happen. I cannot continue in that agent with that context history. If I `/undo` I can continue but of course loose whatever context that had built between those prompts. The link above is from `/share` but doesn't seem to be loading. Maybe you all have the data on your end to inspect still? ``` {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable `thinking`. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking"},"request_id":"req_vrtx_011CWQKuoNZWVxLby78G47pT"} [Debug Info] Requested Model: claude-opus-4-5-thinking Effective Model: claude-opus-4-5-thinking Project: groovy-spanner-nxhhm Endpoint: https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:streamGenerateContent?alt=sse Status: 400 Request ID: N/A Tool Debug Missing: 13 Tool Debug Summary: decl=bash,src=functionDeclarations,hasSchema=y | decl=read,src=functionDeclarations,hasSchema=y | decl=glob,src=functionDeclarations,hasSchema=y | decl=grep,src=functionDeclarations,hasSchema=y | decl=list,src=functionDeclarations,hasSchema=y | decl=edit,src=functionDeclarations,hasSchema=y | decl=write,src=functionDeclarations,hasSchema=y | decl=task,src=functionDeclarations,hasSchema=y | decl=webfetch,src=functionDeclarations,hasSchema=y | decl=todowrite,src=functionDeclarations,hasSchema=y | decl=todoread,src=functionDeclarations,hasSchema=n | decl=skill,src=functionDeclarations,hasSchema=y | decl=prune,src=functionDeclarations,hasSchema=y | decl=bd_ready,src=functionDeclarations,hasSchema=y | decl=bd_create,src=functionDeclarations,hasSchema=y | decl=bd_update,src=functionDeclarations,hasSchema=y | decl=bd_close,src=functionDeclarations,hasSchema=y | decl=bd_reopen,src=functionDeclarations,hasSchema=y | decl=bd_show,src=functionDeclarations,hasSchema=y | decl=bd_list,src=functionDeclarations,hasSchema=y Tool Debug Payload: ``` ### OpenCode version 1.0.193 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:32 -05:00
yindo closed this issue 2026-02-16 17:41:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2025):

This issue might be related to similar model provider/integration issues in OpenCode Zen. Please check:

  • #6050: Gemini 3 integration fail (model-specific integration issues)
  • #6056: moonshot AI kimi k2 all get error (Moonshot/Kimi model errors)
  • #6039: Malformed thinking block in toolcall (glm-4.7-free) (Zen-related GLM model issue)
  • #5759: AI_TypeValidationError on Grok Fast 1 (Zen mode type validation error)
  • #5645: Kimi K2 Keeps Stopping (Another Kimi K2 issue in Zen)

Feel free to ignore if your specific issue with Opus 4.5 through Antigravity is different from these other model provider errors.

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be related to similar model provider/integration issues in OpenCode Zen. Please check: - #6050: Gemini 3 integration fail (model-specific integration issues) - #6056: moonshot AI kimi k2 all get error (Moonshot/Kimi model errors) - #6039: Malformed thinking block in toolcall (glm-4.7-free) (Zen-related GLM model issue) - #5759: AI_TypeValidationError on Grok Fast 1 (Zen mode type validation error) - #5645: Kimi K2 Keeps Stopping (Another Kimi K2 issue in Zen) Feel free to ignore if your specific issue with Opus 4.5 through Antigravity is different from these other model provider errors.
Author
Owner

@shekohex commented on GitHub (Dec 23, 2025):

Can you try https://github.com/shekohex/opencode-google-antigravity-auth plugin instead of the other one? lmk if you still face this issue with that plugin.

@shekohex commented on GitHub (Dec 23, 2025): Can you try https://github.com/shekohex/opencode-google-antigravity-auth plugin instead of the other one? lmk if you still face this issue with that plugin.
Author
Owner

@bcardarella commented on GitHub (Dec 23, 2025):

@shekohex that plugin wasn't able to detect my Ultra AI subscription and just put me at free tier.

@bcardarella commented on GitHub (Dec 23, 2025): @shekohex that plugin wasn't able to detect my Ultra AI subscription and just put me at free tier.
Author
Owner

@shekohex commented on GitHub (Dec 23, 2025):

@shekohex that plugin wasn't able to detect my Ultra AI subscription and just put me at free tier.

interesting, can you open a bug report there? I will happily fix it.

@shekohex commented on GitHub (Dec 23, 2025): > [@shekohex](https://github.com/shekohex) that plugin wasn't able to detect my Ultra AI subscription and just put me at free tier. interesting, can you open a bug report there? I will happily fix it.
Author
Owner

@rekram1-node commented on GitHub (Dec 23, 2025):

I think this may be a bug w/ your plugin rather than one for opencode?

@rekram1-node commented on GitHub (Dec 23, 2025): I think this may be a bug w/ your plugin rather than one for opencode?
Author
Owner

@bcardarella commented on GitHub (Dec 23, 2025):

@rekram1-node perhaps, I'll try there thanks

@bcardarella commented on GitHub (Dec 23, 2025): @rekram1-node perhaps, I'll try there thanks
Author
Owner

@zeroaddresss commented on GitHub (Dec 31, 2025):

@bcardarella what plugin are you using for antigravity to opencode?

@zeroaddresss commented on GitHub (Dec 31, 2025): @bcardarella what plugin are you using for antigravity to opencode?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3804