Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Explicitly selected, unlisted Antigravity models are now validated by the agent instead of rejected locally. Default selection behavior and agent error propagation remain unchanged. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…s test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The automated pipeline stopped on this pull request and will not merge it: the fix is written and reviewed, but proving it needs something no worker has:
It stays open for a person to finish or close. |
Problem
An existing Antigravity session rejects newly available models before asking the provider. Its cached choices can be older than the catalog refreshed in a separate session. Fixes #35693.
Change
For an explicit model absent from cached choices, send the existing
setConfigOption("model", value, { allowUnlistedValue: true })request. Let the provider accept or reject it, preserving errors through the existing mapper. Advertised choices, defaults, and legacy aliases retain their existing paths.Scope
A small validation fix in one provider helper, covered by CONTRIBUTING.md's small obvious bug-fix exception. The session remains in place and provider rejection propagates without a fallback.
Related #28433 fixes catalog discovery and #32167 isolates catalog refresh failures. This fix handles explicit selection in an already-open session whose cached choices are stale.
Verification
On base
121f0cf014, four regression cases fail: an unlisted explicit model is rejected locally, and three provider-rejection cases receive the local error instead of the provider's mapped error. With this change, the acceptance case returns the selected model after exactly one unlisted-model request; the rejection cases preserve the provider error and issue no fallback request.vp test run --project t3 apps/server/src/provider/acp/AntigravityAcpSupport.test.ts apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts apps/server/src/textGeneration/AntigravityTextGeneration.test.ts: 101 tests passed, including defaults, advertised/grouped choices, legacy aliases, and caller behavior.node scripts/check-changed.ts --concurrency 2: formatting, lint, both unused-code passes, GraphQL validation, three package type checks, and 54 selected tests passed. Test selection excludedbrowserandrendersprojects for the CLI-only workflow. Commit hooks passed.TMPDIRandT3CODE_HOME, frozen dependencies. No live T3 data was used.This proves deterministic server selection and error propagation. A live account rollout and UI model switch were not verified. Current main has no additional changes to the two files in this fix.
Model and harness: GPT-6 via Codex desktop.