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
feat(antigravity-acp): add gemini-4-hydrogen and gemini-4-neon to catalog - #9082
The antigravity-acp static catalog (AGY_ACP_SEED_MODELS and modelContextWindows) omitted gemini-4-hydrogen and gemini-4-neon even though agy acp offers them.
Changes
Add "gemini-4-hydrogen" and "gemini-4-neon" to AGY_ACP_SEED_MODELS in src/providers/registry/agy-acp-models.ts.
Add 1_048_576 context window entries for both models in src/providers/registry/entries-extended.ts.
Add assertions in tests/config/agy-acp-config.test.ts.
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
New Features
Added Gemini 4 Hydrogen and Gemini 4 Neon to the available Antigravity ACP models.
Both models support a context window of up to 1,048,576 tokens, matching the existing long-context options. Users can now select either model for supported workflows that benefit from processing larger amounts of context.
No actionable comments were generated in the recent review.
Walkthrough
The Antigravity ACP seed catalog and context-window map now include gemini-4-hydrogen and gemini-4-neon, each with a 1,048,576-token context window. Registry tests assert both entries.
Changes: Antigravity ACP catalog
Layer / File(s)
Summary
Add models and verify registry metadata src/providers/registry/agy-acp-models.ts, src/providers/registry/entries-extended.ts, tests/config/agy-acp-config.test.ts
The seed catalog adds gemini-4-hydrogen and gemini-4-neon. The context-window map assigns each 1,048,576 tokens. Registry tests assert both models and their context windows.
lidge-jun/opencodex#8794: Introduces the antigravity-acp provider and its static seed catalog, which this change extends.
Merge Risk: Minimal · up to 2699d
This adds the two missing Gemini models to the Antigravity ACP catalog with their context windows, and the tests cover both. No remaining merge risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the feature (adding gemini-4-hydrogen and gemini-4-neon to the antigravity-acp catalog). That matches the main change in the changeset, which adds both models to the seed list, the con…
Linked Issues check
Directly linked issue #9037 requires that gemini-4-hydrogen and gemini-4-neon appear in the antigravity-acp catalog without manual configuration. The issue offers the static seed plus `modelCont…
Out of Scope Changes check
All changes support the objective in #9037. The seed constant change in agy-acp-models.ts adds only the two named models. The entries-extended.ts change adds context-window metadata for the same t…
Full details: Title check
Explanation
The title names the feature (adding gemini-4-hydrogen and gemini-4-neon to the antigravity-acp catalog). That matches the main change in the changeset, which adds both models to the seed list, the context-window registry entries, and the registry test. The title is specific and follows the conventional-commit style.
Full details: Linked Issues check
Explanation
Directly linked issue #9037 requires that gemini-4-hydrogen and gemini-4-neon appear in the antigravity-acp catalog without manual configuration. The issue offers the static seed plus modelContextWindows entries as a minimal fix; dynamic discovery is not required. At the reviewed head (2699d22), src/providers/registry/agy-acp-models.ts sets AGY_ACP_SEED_MODELS to gemini-3.8-flash, gemini-4-argon, gemini-4-hydrogen, gemini-4-neon, gemini-3.7-flash. That satisfies the catalog requirement for both models. src/providers/registry/entries-extended.ts imports AGY_ACP_SEED_MODELS, so the registry derives the models from this seed. The PR summary reports 1_048_576 context-window entries for both models in entries-extended.ts, and the test file adds assertions for them. The entries-extended.ts hunk was not read directly because the diff tool failed and the antigravity-acp block lies beyond the 16000-byte truncation limit. The context-window claim therefore rests on the PR summary. The issue does not make the test a separate requirement. The issue's #8480, #8794, #8954, and #8957 references are context only and were not treated as objectives.
Full details: Out of Scope Changes check
Explanation
All changes support the objective in #9037. The seed constant change in agy-acp-models.ts adds only the two named models. The entries-extended.ts change adds context-window metadata for the same two models, as the issue suggests. The test change asserts the two models and their context windows. No unrelated provider, routing, or dependency changes appear in the PR summary. The diff tool was unavailable, so the absence of other edits rests on the PR summary and the reported line counts (+7/-1, +7/-1, +4/-0), not on a full diff read.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 9e0e298 and 2699d22.
Files selected for processing: 3
src/providers/registry/agy-acp-models.ts
src/providers/registry/entries-extended.ts
tests/config/agy-acp-config.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Closing as a duplicate of #9039, which was opened first for #9037 and keeps the registry change to one line. The exact context-window value assertions from this PR are a good addition there. Thank you!
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
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.
Closes #9037.
The
antigravity-acpstatic catalog (AGY_ACP_SEED_MODELSandmodelContextWindows) omittedgemini-4-hydrogenandgemini-4-neoneven thoughagy acpoffers them.Changes
"gemini-4-hydrogen"and"gemini-4-neon"toAGY_ACP_SEED_MODELSinsrc/providers/registry/agy-acp-models.ts.1_048_576context window entries for both models insrc/providers/registry/entries-extended.ts.tests/config/agy-acp-config.test.ts.Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit