Skip to content

feat(google-agy): recognise the agy provider id - #516

Open
AKOrojo wants to merge 1 commit into
slkiser:mainfrom
AKOrojo:feature/agy-provider-id
Open

AKOrojo wants to merge 1 commit into
slkiser:mainfrom
AKOrojo:feature/agy-provider-id

Conversation

@AKOrojo

@AKOrojo AKOrojo commented Nov 21, 2026

Copy link
Copy Markdown

What users see change

A session running a model from a provider registered under the id agy now maps to the Google AGY quota provider, so the AGY rows (Gemini and Claude/GPT, weekly and 5-hour) appear for it. Every other provider id is unaffected, so for everyone else nothing visible changes.

The id agy is what the Antigravity bridge registers when it drives Google's Antigravity CLI. The Google AGY provider already claimed google-agy, opencode-agy-auth and google-agy-auth; this adds the plain agy id to the same set rather than adding a second provider, so settings that hide or order the AGY rows keep working.

Linked issue

Refs #515

Before and after screenshots

Not applicable, and here is why: the agy provider id is not in any released OpenCode or any released plugin, so no existing installation shows a difference. The change is the id mapping, which the new tests cover directly:

  • tests/providers.google-agy.test.ts — the agy id maps to the google-agy provider, the existing Antigravity ids still do, and a model from agy/… is claimed by the AGY provider while google/gemini-3.8-flash and anthropic/claude-sonnet-4-6 are not.

Surfaces I did not test: the TUI sidebar, the status line, the toasts and the /quota window tabs, because this machine has no AGY quota to show. /quota_status reports google-agy as available: false here: the AGY quota path needs the opencode-antigravity-auth companion plugin that owns the login, and this account's Antigravity login lives in the Antigravity CLI's own keyring, so there is no AGY row set to photograph. The change only affects which provider id maps to that row set; it does not change how the quota is fetched.

Checklist

  • I ran pnpm verify
  • I tested on released OpenCode version: 2.3.2
  • For provider changes, I followed Provider Changes, or this does not apply — this is not a new provider. The Google AGY provider already exists; the change is one more runtime id for it.

The Google AGY provider already claims google-agy, opencode-agy-auth and
google-agy-auth. A provider registered under the plain id `agy` -- the id the
Antigravity bridge registers when it drives Google's Antigravity CLI -- was
not one of them, so a session on such a model was not matched to the AGY quota.

Adds the id to the provider's auth keys and runtime ids, so it maps to the same
Google AGY quota rows the other Antigravity ids do. Existing settings that
hide or order those rows keep working, because there is still one AGY row set.

Refs slkiser#515
Copilot AI balanced review requested due to automatic review settings November 21, 2026 15:34
@github-actions github-actions Bot added the feature New feature or behavior change label Nov 21, 2026

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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

Labels

feature New feature or behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants