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
fix(server): keep per-model Antigravity thinking levels after restart - #39398
After a restart, an Antigravity model could lose its own thinking levels and show the currently selected model's levels instead. For example, low/medium/high/xhigh became low/medium/high; each model should retain the levels it last reported.
Change
Stop giving unobserved models the selected model's thinking descriptor. They now report no descriptor until observed, so the registry merge retains their previously reported capabilities. Selected and observed models still use their own descriptors, including an explicit absence of thinking options.
Scope
This is a small fix for an obvious catalog bug, so no separate issue is needed. It changes only Antigravity's model catalog construction and its regression tests.
Verification
Added a regression that publishes deep with low/medium/high/xhigh, then merges a restarted provider snapshot that has observed only fast with low/medium/high. On main, deep incorrectly becomes low/medium/high; with this change, it keeps xhigh.
Updated the catalog test to require no descriptor for an unobserved model.
Ran the following in apps/server; six files with 211 tests passed:
vp test run src/provider/AntigravityProvider.test.ts src/provider/Drivers/AntigravityDriver.test.ts src/provider/ProviderRegistry.test.ts src/provider/providerStatusCache.test.ts src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts src/provider/acp/AntigravityAcpSupport.test.ts
packages/provider-acpsessionConfig.test.ts: six tests passed.
effect-tsgo tsrs --noEmit, vp lint, and vp fmt --check are clean for the changed files.
I did not run the full repository suite or a live Antigravity session.
Antigravity reports thinking levels only for the selected model. A model
the server had not observed yet was given the selected model's levels
(without a current value). Because that fallback was non-empty, the
registry merge replaced the levels the model had reported earlier, so a
model with more levels (for example xhigh) lost them after a restart.
An unobserved model now reports no thinking descriptor, which lets the
registry keep the levels it last reported.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The Antigravity provider reports null capabilities for models without observed thinking levels. Catalog merging retains prior capabilities for null incoming values and replaces them when incoming capabilities are present, including an empty set. Tests cover these states across restarts and snapshots.
Changes: Antigravity thinking capabilities
Layer / File(s)
Summary
Per-model capabilities and catalog merging apps/server/src/provider/AntigravityProvider.ts, apps/server/src/provider/ProviderRegistry.ts, apps/server/src/provider/AntigravityProvider.test.ts
The provider reports null capabilities when it has not observed thinking levels. For Antigravity, catalog merging retains prior capabilities only when incoming capabilities are null; explicit capability data replaces them. Tests cover retention across restart and clearing levels after an observed model has no thinking options.
pingdotgg/t3code#41699: This PR addresses the same registry merge behavior for unobserved Antigravity models after restart.
pingdotgg/t3code#42056: This PR changes the handling of cached Antigravity thought-level descriptors in the capability merge path.
Suggested labels:bugfix
Suggested reviewers:juliusmarminge
Merge Risk: Minimal · up to 4c38d
Antigravity models that were not observed after a restart keep their own previously reported thinking levels. Models confirmed to have no thinking options can clear stale ones and stay cleared. No remaining merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the fix (per-model Antigravity thinking levels kept after restart), which matches the changeset: unobserved models no longer receive the selected model's thinking descriptor, and the r…
Description check
The description follows the template sections: Problem, Change, Scope, and Verification. It explains the bug and the fix, links no issue but justifies that with a reason for a small obvious bug, gives…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix (per-model Antigravity thinking levels kept after restart), which matches the changeset: unobserved models no longer receive the selected model's thinking descriptor, and the registry merge retains prior capabilities. It follows conventional commit form and is specific.
Full details: Description check
Explanation
The description follows the template sections: Problem, Change, Scope, and Verification. It explains the bug and the fix, links no issue but justifies that with a reason for a small obvious bug, gives focused test commands with observed results, and states what was not run. It does not include the template's trailing agent/model attribution line in the expected form, but it does name the model and harness ('Claude Opus 5.5 in T3 Code'). The objectives mention a later commit that handles confirmed-empty capabilities, which the description does not cover; that gap is minor for this check.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Hit this exact issue on live agy acp1.5.14 (Windows):
After a T3 Code restart, running a session on gemini-4-neon (thought_level: low, high, xhigh) caused every unobserved Antigravity model in the picker to inherit Low / High / Extra—including claude-opus-5.5 (hiding Medium and offering Extra), claude-opus-4.6, and gpt-oss-120b-medium.
Direct JSON-RPC verification against agy acp1.5.14 confirms session/set_config_option (configId: "model", value: "claude-opus-5.5") returns thought_level options low (Low), medium (Medium), and high (High), and sending thought_level: "xhigh" to claude-opus-5.5 fails with -32602:
Thinking level "xhigh" is not offered for model "Claude Opus 5.5"
Likewise, claude-opus-4.6 / claude-sonnet-4.6 report only low / max, gemini-4-argon and gemini-3.1/3.5-flash-lite report low / high, and gpt-oss-120b-medium reports no thought_level option at all.
Dropping the currentThinking fallback for unobserved models here directly fixes the cross-model capability overwrite across restarts. +1!
Building on @rune-gh's note about models with no thought_level option (we hit the same thing with gemini-pro-orchestrator-neon / gemini-pro-orchestrator-g1-pro, where AcpAdapterV2.startTurn logs ACP session does not expose requested configuration option(s) and drops thought_level):
There's one edge case left with mergeProviderModels in apps/server/src/provider/ProviderRegistry.ts:
Even with this PR, thinkingCapabilities(observed) returns EMPTY_MODEL_CAPABILITIES ({ optionDescriptors: [] }) for both observed === undefined (unobserved) and observed === null (explicitly selected and observed to have nothought_level). Since hasModelCapabilities(model) checks (model.capabilities?.optionDescriptors?.length ?? 0) > 0, mergeProviderModels falls back to previousModel.capabilities in both cases.
So for any existing user upgrading from 0.1.11 whose cached provider snapshot already stored stale thought_level options on a non-thinking model (like gemini-pro-orchestrator-neon or gpt-oss-120b-medium) — or if a model ever drops thought_level later — selecting that model still cannot clear the stale option without signing out or wiping the cache.
Flagging this in case you want to distinguish "unobserved" vs "explicitly observed as having no thinking options" here (while keeping Cursor's mergeProviderSnapshot fallback test intact) or track it as a follow-up.
An Antigravity model observed without thinking options reported empty
capabilities, which the registry treated the same as an unobserved
model and replaced with the levels from an older snapshot.
Unobserved models now report null capabilities, which still inherit the
last reported levels. A model observed without options reports explicit
empty capabilities, and for Antigravity the registry no longer replaces
them, so stale levels clear. Other providers keep the existing fallback.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
300-300: Minor · Data Integrity & Integration · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Preserve known-empty capabilities for an unobserved model.
After a model reports no thinking options, its capabilities are { optionDescriptors: [] }. If the next snapshot leaves that model unobserved, its incoming capabilities are null. This guard returns the incoming model because the previous descriptors are empty.
The merge therefore discards confirmed absence instead of retaining the previous observation. For Antigravity, preserve any non-null previous capabilities when incoming capabilities are null. Keep explicit incoming empty capabilities authoritative.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).takeover:needs-juliusTakeover done; route gate says Julius decidesvouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After a restart, an Antigravity model could lose its own thinking levels and show the currently selected model's levels instead. For example,
low/medium/high/xhighbecamelow/medium/high; each model should retain the levels it last reported.Change
Stop giving unobserved models the selected model's thinking descriptor. They now report no descriptor until observed, so the registry merge retains their previously reported capabilities. Selected and observed models still use their own descriptors, including an explicit absence of thinking options.
Scope
This is a small fix for an obvious catalog bug, so no separate issue is needed. It changes only Antigravity's model catalog construction and its regression tests.
Verification
deepwithlow/medium/high/xhigh, then merges a restarted provider snapshot that has observed onlyfastwithlow/medium/high. Onmain,deepincorrectly becomeslow/medium/high; with this change, it keepsxhigh.apps/server; six files with 211 tests passed:packages/provider-acpsessionConfig.test.ts: six tests passed.effect-tsgo tsrs --noEmit,vp lint, andvp fmt --checkare clean for the changed files.I did not run the full repository suite or a live Antigravity session.
Claude Opus 5.5 in T3 Code.