Skip to content

fix: skip Google quota check when Antigravity is not configured#21

Open
Kagameow wants to merge 1 commit intovbgate:mainfrom
Kagameow:pr/fix-google-optional
Open

fix: skip Google quota check when Antigravity is not configured#21
Kagameow wants to merge 1 commit intovbgate:mainfrom
Kagameow:pr/fix-google-optional

Conversation

@Kagameow
Copy link
Copy Markdown

@Kagameow Kagameow commented Mar 29, 2026

Summary

Avoid noisy errors when Google/Antigravity is not configured.

What changed

  • return null from the Google quota checker when ~/.config/opencode/antigravity-accounts.json does not exist
  • keep Google quota checks opt-in, matching how other providers are skipped when no auth/config is available

Why

/mystatus currently reports an error for users who do not use Antigravity at all, because the Google checker always tries to read the Antigravity accounts file.

This makes the plugin noisier than necessary for setups where Google support is unused.

Result

Users without Antigravity configured no longer see an unnecessary error, while configured Google users keep the existing behavior.

Fixes #13

Avoid noisy errors when the optional Antigravity account file is missing by skipping Google quota checks unless it is configured.
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.

Complains about ~/.config/opencode/antigravity-accounts.json

1 participant