You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] google-antigravity Claude 400s after compaction: assistant message prefill #2065
google-antigravity Claude turns fail after context compaction with HTTP 400:
This model does not support assistant message prefill. The conversation must end with a user message.
I expected the compacted turn to continue. The Anthropic adapter already appends a user (continue) nudge when history ends on an assistant turn (src/adapters/anthropic.ts, commit 30d17526). The Google adapter does not apply the same guard on the Claude-on-Antigravity path, so a model-tail history reaches Cloud Code Assist and Claude rejects it.
Gemini-native Antigravity models are unaffected. Anthropic direct (anthropic/claude-*) is unaffected.
Reproduction
ocx start --port 10100
In Codex App, select google-antigravity/claude-opus-4-6-thinking.
Run a long turn until context compaction fires.
On the next automatic continuation, the proxy returns 400.
The same 400 reproduces from a minimal assistant-tail history, without waiting for compaction: user text followed by an assistant text turn and no trailing user message.
Version
2.25.0
Operating system
macOS 15
Provider and model
google-antigravity / claude-opus-4-6-thinking
Logs or error output
Provider error 400: Antigravity invalid request: {"type":"error","error":{"type":"invalid_request_error","message":"This model does not support assistant message prefill. The conversation must end with a user message."}}
I removed secrets, tokens, account details, request credentials, and personal data.
Related: #1916 already contains a broader Claude CCA prefill change (stripTrailingClaudePrefill), but that PR is draft, hygiene-blocked, and conflicted. There is no standalone issue for this 400.
Fixed on dev by #2066 (9636998): when a Claude-on-Antigravity history ends with a model-role message (compaction, previous_response_id expansion, interrupted-turn replay), the google adapter now appends a user "(continue)" nudge — mirroring the anthropic adapter's tail guard — so CCA no longer rejects the turn with the assistant-prefill 400.
Activity
fix(google): append continue nudge for Claude-on-Antigravity prefill (#…
lidge-jun commentedon Aug 19, 2026
Fixed on
devby #2066 (9636998): when a Claude-on-Antigravity history ends with a model-role message (compaction, previous_response_id expansion, interrupted-turn replay), the google adapter now appends a user "(continue)" nudge — mirroring the anthropic adapter's tail guard — so CCA no longer rejects the turn with the assistant-prefill 400.fix(google): append continue nudge for Claude-on-Antigravity prefill (l…