Repository navigation
Description
Note
Written by Claude Opus 5.5 for a T3 Code user.
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Add several Antigravity instances with the same auth method (
oauth-personal) and sign each one in. In our case all of them ran the sameagybuild, and every session started with the samemodelconfig option: Gemini 4 Neon at High. - After sign-in finishes, open the model picker for each instance and look at the default thinking level T3 shows for the current model (Gemini 4 Neon).
- Sign one instance out and back in, then check again.
Expected behavior
Every instance shows the level the session started with (High), and the default stays the same across sign-ins.
Actual behavior
The default differs between identical instances and can change after a new sign-in: some show High, others Medium.
Source (AntigravityDriver.publishCatalog in the server bundle): after sign-in it calls runtime.setModel for every model in antigravityModelOptions(configOptions), and finally runtime.setModel(current) with only the model id. For that last call the agent answers with a ConfigOptionsUpdated in which the current model's level is Medium (the agent's default for a bare model switch), not the level from sessionSetupResult.
observeThinkingLevels keeps the last update seen for each model: thinkingLevels.set(model.currentValue, antigravityThinkingConfig(configOptions)). The events are consumed by a forked runForEach over runtime.getEvents(), so whether the stored default for the current model ends up as the setup value (High) or the value from the final bare setModel (Medium) depends on which update is processed last.
Impact
Minor bug or occasional failure
Version or commit
v0.1.12-nightly.20261122.5111
Environment
Windows 11, T3 Code desktop, Antigravity CLI 1.5.14, oauth-personal, six instances.
Logs or stack traces
ACP log of one instance right after sign-in (session id redacted). The catalog walk switches to each model by id only, and the last line is the bare switch back to the current model, which the agent resolves to Neon at Medium although the session started at High:
config_options.go:51] Switching model in session <id> to: Gemini 4 Argon (High) (enum: MODEL_PLACEHOLDER_M417)
config_options.go:51] Switching model in session <id> to: Gemini 4 Hydrogen (High) (enum: MODEL_PLACEHOLDER_M525)
config_options.go:51] Switching model in session <id> to: Orchestrator (Neon) (enum: MODEL_PLACEHOLDER_M537)
config_options.go:51] Switching model in session <id> to: Orchestrator (Argon) (enum: MODEL_PLACEHOLDER_M668)
config_options.go:51] Switching model in session <id> to: Gemini 3.8 Flash (Medium) (enum: MODEL_PLACEHOLDER_M319)
config_options.go:51] Switching model in session <id> to: Claude Opus 5.5 (Medium) (enum: MODEL_PLACEHOLDER_M401)
config_options.go:51] Switching model in session <id> to: Claude Sonnet 5.5 (Medium) (enum: MODEL_PLACEHOLDER_M404)
config_options.go:51] Switching model in session <id> to: GPT-OSS 120B (Medium) (enum: MODEL_OPENAI_GPT_OSS_120B_MEDIUM)
config_options.go:51] Switching model in session <id> to: Gemini 4 Neon (Medium) (enum: MODEL_PLACEHOLDER_M533)When a level is sent explicitly (t3_thread_configure with thought_level: xhigh), the same log shows Gemini 4 Neon (XHigh) (enum: MODEL_PLACEHOLDER_M535), so only the default is affected.
Workaround
Set the thinking level explicitly on every thread (t3_thread_configure with a thought_level option, or the composer menu) instead of relying on the default.
Possible fix: remember the level from sessionSetupResult for the current model and pass it to the final setModel(current), or skip recording levels from the catalog walk for the model that was current at setup.
Activity