Repository navigation
fix(agy-acp): seed gemini-4-hydrogen and gemini-4-neon in the antigravity-acp catalog #9039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| /** Static catalog metadata shared by registry derivation and structural config validation. */ | ||
| export const AGY_ACP_DEFAULT_MODEL = "gemini-3.8-flash"; | ||
| export const AGY_ACP_SEED_MODELS = [AGY_ACP_DEFAULT_MODEL, "gemini-4-argon", "gemini-3.7-flash"] as const; | ||
| export const AGY_ACP_SEED_MODELS = [AGY_ACP_DEFAULT_MODEL, "gemini-4-argon", "gemini-3.7-flash", "gemini-4-hydrogen", "gemini-4-neon"] as const; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For users following the ACP setup guide, AGENTS.md reference: src/AGENTS.md:L29-L29 Useful? React with 👍 / 👎. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shared bare model IDs can make valid custom-provider selectors fail ACP validation.
staticRoutingIdsreserves the ACP seed models for the ACP provider.selectorCandidateProvidersthen returns every provider that claims a selector. A baregemini-4-hydrogenthat a custom provider already lists now resolves to both that provider andantigravity-acp.agyAcpUnattendedTargetIssuestreats any ACP candidate as a match. It rejects that selector insubagentModelFallback. A JEVdecisionModelwith the same selector is rejected by the check atagy-acp-references.ts:204. This applies only when the selector is bare and used in those validated fields. Explicit provider-qualified selectors are not affected by this ambiguity.To keep existing custom routes valid, the config check should resolve an explicitly qualified custom selector to its custom provider before it applies the ACP refusal. Add a test with a custom provider that lists
gemini-4-hydrogen, and assert that its qualified selector is still accepted.Existing ACP configurations with a saved
modelslist do not receive the new seed IDs.When enrichment finds a saved
modelslist, it does not merge in later seed IDs (src/providers/derive.ts:585). For a static row, the catalog builds its IDs from that saved list andretainModelsonly (src/codex/catalog/provider-models.ts:272-276, static branch at:310).gemini-4-hydrogenandgemini-4-neoncan therefore stay absent from/v1/modelsand the dashboard for those installs, which conflicts with the PR goal of availability without manual configuration.The new registry test checks the seed row, not an existing saved list, so it does not cover this path.
Existing saved lists must receive the new seed IDs. The fix must not re-add models a user removed on purpose. The mechanism is a policy choice, so it is not prescribed here. Add a regression test that starts from a saved list that predates this change.