Repository navigation
fix(server): keep per-model Antigravity thinking levels after restart - #39398
tensorcopy wants to merge 6 commits into
Conversation
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.
|
Note Reviews pausedIt 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
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
81d67b9 to
e61c256
Compare
|
Hit this exact issue on live
Dropping the |
…bserved-thinking-levels
|
Building on @rune-gh's note about models with no There's one edge case left with Even with this PR, So for any existing user upgrading from Flagging this in case you want to distinguish "unobserved" vs "explicitly observed as having no thinking options" here (while keeping Cursor's |
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.
…bserved-thinking-levels
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.