Skip to content

Add Gemini 4 Neon to the Antigravity model list - #33

Merged
mergify[bot] merged 1 commit into
mainfrom
HOUSE-133-neon
Nov 18, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
HOUSE-133-neon

Conversation

@ericlitman

@ericlitman ericlitman commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Supplement the Antigravity catalog with Gemini 4 Neon Low, Medium, and High.
  • Keep upstream entries authoritative per ID and preserve Google account entitlement filtering.
  • Use Google discovery metadata for limits and modalities.

Evidence

  • Before, Studio2's authenticated model list omitted Neon and the proxy returned model_not_found.
  • Google discovery with Studio2's OAuth credential returned all four Neon IDs. Direct generation verified Low, Medium, and High with explicit reasoning levels and identified the response model as gemini-4-neon.
  • go test ./internal/registry ./sdk/cliproxy and go build ./cmd/server passed. The regression test checks upstream precedence and additive fallback registration.

Merge Danger

Door Two-way. Revert the catalog supplement to remove it.

Blast Radius Antigravity model discovery. Codex still uses the same fallback behavior through the shared helper.

Acceptance

Studio2's normal proxy endpoint lists Neon and successfully generates with Neon. Production proof follows deployment. The public catalog continues to refresh.

Scope

XHigh is excluded. Google accepts the XHigh model ID by itself and rejects explicit thinkingLevel: xhigh.

Enable Neon on Studio2 (HOUSE-133)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@mergify
mergify Bot merged commit 4e348c7 into main Nov 18, 2026
8 of 9 checks passed
@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

✅ Merged into main as 4e348c7 at 22:55 UTC

Less than a minute in the queue, with no time running CI.

So far

  • ✅ Entered the queue Wed 18 Nov, 22:54 · rule default · triggered by merge protections
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged 22:55 · 4e348c7
9 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule Mergify merge protections
  • -draft · required by Merge Protections rule Required checks
  • -label = hold · required by Merge Protections rule Required checks
  • check-success = Analyze (actions) · required by Merge Protections rule Required checks
  • check-success = Analyze (go) · required by Merge Protections rule Required checks
  • check-success = Analyze (javascript-typescript) · required by Merge Protections rule Required checks
  • check-success = e2e-hermetic · required by Merge Protections rule Required checks
  • check-success = go · required by Merge Protections rule Required checks
  • any of · required by GitHub repository ruleset rule Mergify merge protections:
    • check-success = @mergify/Mergify Merge Protections
    • check-neutral = @mergify/Mergify Merge Protections
    • check-skipped = @mergify/Mergify Merge Protections

Times in UTC · dashboard · how the merge queue works

@unfret

unfret Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🛑 2 blocking findings

🟡 Medium · Preserve fallback metadata for aliased Neon routes

🔵 Low · Shadowed publish error violates the repository naming rule

Walkthrough

This PR makes Gemini 4 Neon Low, Medium, and High show up in the Antigravity model list even when the upstream catalog leaves them out. It does this with an embedded fallback catalog that only fills in IDs the upstream catalog is missing, so upstream entries still take precedence. The Codex paid-plan fallback logic is generalized into a shared helper that both providers now use. It also adds a regression test for upstream precedence and for the Low and Medium Neon fallbacks with their single reasoning levels. The author reports live Google discovery and generation checks against Studio2, plus passing builds and tests; production proof is expected after deployment.

Area What changes Review notes
Antigravity model catalog GetAntigravityModels now adds Gemini 4 Neon Low, Medium, and High from an embedded fallback JSON when the upstream catalog does not list those IDs. Each entry carries a 1M context window, a 262K output limit, multimodal input, and a single fixed thinking level. XHigh is intentionally left out. Preserve fallback metadata for aliased Neon routes
Shared fallback helper The Codex-specific fallback parser and merge function become a generic parseModelFallbacks and withModelFallbacks. Codex Team, Plus, and Pro tiers now call the shared helper, and their behavior is unchanged.
Tests Adds a test that publishes a stubbed remote catalog. It checks that remote Argon and Neon High entries win over fallbacks, that no IDs are duplicated, and that the Neon Low and Medium fallbacks are added with the correct reasoning levels. Shadowed publish error violates the repository naming rule
Since the last review
  • New: Preserve fallback metadata for aliased Neon routes
  • New: Shadowed publish error violates the repository naming rule
Repair prompt

Read the Unfret check run for mobilyze-llc/CLIProxyAPI#33 at head d99ebcefcaeade02a6b94b9c30f0c51b4a48a6f5 (run panel:d99ebcefcaeade02a6b94b9c30f0c51b4a48a6f5:sLYq0-O_cxg:LFbXnzC1_8Y, check). Use the check's App id and GET /repos/mobilyze-llc/CLIProxyAPI/check-runs/135194884987; its output.text contains the structured result. Compare it with the current code and head, verify that each listed mandatory finding still applies, repair only those that do, honor the repository constraints, and validate the changes. Leave advisories and accepted risks alone. A manually resolved thread is not a waiver.

Details
Lane / stage Model Effort Outcome Duration
broad-gpt-5.6-sol-xhigh / review openai/gpt-5.6-sol → gpt-5.6-sol · primary xhigh succeeded 3 min 14 s
broad-opus-5.5-max / review anthropic/claude-opus-5-5 → claude-opus-5-5 · primary max succeeded 4 min 16 s
focal-gpt-5.6-sol-xhigh copy / review Not recorded Not recorded failed Not recorded
focal-gpt-5.6-sol-xhigh copy 2 / review openai/gpt-6.1-sol → gpt-6.1-sol · primary xhigh succeeded 9 min 54 s
judge / judge openai/gpt-6-astra → gpt-6-astra · primary high succeeded 4 min 9 s

First review of this pull request.
3 reviewers finished.
Commit d99ebce.
Check run.
Run: GET /unfret/run/panel:d99ebcefcaeade02a6b94b9c30f0c51b4a48a6f5:sLYq0-O_cxg:LFbXnzC1_8Y.

@unfret review · @unfret status · @unfret help

@unfret unfret Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 2 blocking findings
🟡 Medium · Preserve fallback metadata for aliased Neon routes
🔵 Low · Shadowed publish error violates the repository naming rule
Check

// GetAntigravityModels returns the standard Antigravity model definitions.
func GetAntigravityModels() []*ModelInfo {
return cloneModelInfos(getModels().Antigravity)
return withModelFallbacks(cloneModelInfos(getModels().Antigravity), antigravityModelFallbacks)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Preserve fallback metadata for aliased Neon routes

When Neon is registered only under an OAuth alias with fork:false or a model prefix, execution resolves back to an upstream ID absent from the dynamic registry. LookupStaticModelInfo still scans raw data.Antigravity, so it cannot find these fallbacks. A reproduced high-effort Neon request consequently emits thinkingBudget:24576 instead of thinkingLevel:"high", bypassing the new level-only normalization. The effective fallback definitions also need to be available through static lookup.

if err != nil {
t.Fatal(err)
}
if _, err := publishCatalogBytes(data); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low · Shadowed publish error violates the repository naming rule

This initializer shadows the err declared by data, err := json.Marshal(remote) at line 25. AGENTS.md explicitly requires method-suffixed names for shadowed variables. Use a call-specific name such as errPublish for this new error binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant