Skip to content

Conversation

@tsanva
Copy link
Contributor

@tsanva tsanva commented Dec 25, 2025

Summary

  • Remove the api: "antigravity" field from ANTIGRAVITY_PROVIDER_CONFIG that was being written to ~/.config/opencode/opencode.json
  • This field causes authentication failures with the opencode-antigravity-auth plugin

Related Issue

Fixes: NoeFabris/opencode-antigravity-auth#49

Multiple users confirmed that removing this field manually resolves the authentication issue.

The api: "antigravity" field being added to opencode.json causes
authentication failures with the antigravity plugin.

Fixes: NoeFabris/opencode-antigravity-auth#49
Copilot AI review requested due to automatic review settings December 25, 2025 00:13
@github-actions
Copy link
Contributor

github-actions bot commented Dec 25, 2025

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

@tsanva
Copy link
Contributor Author

tsanva commented Dec 25, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Dec 25, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an authentication issue by removing the api: "antigravity" field from the Google provider configuration in ANTIGRAVITY_PROVIDER_CONFIG. According to the linked issue and user reports, this field causes authentication failures with the opencode-antigravity-auth plugin.

Key Changes:

  • Removed api: "antigravity" field from the Google provider object in ANTIGRAVITY_PROVIDER_CONFIG

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

google: {
name: "Google",
api: "antigravity",
// NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities).
Copy link

Copilot AI Dec 25, 2025

Choose a reason for hiding this comment

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

After removing the api: "antigravity" field from ANTIGRAVITY_PROVIDER_CONFIG, there's now an inconsistency with CODEX_PROVIDER_CONFIG which still contains api: "codex" at line 408.

If the api field causes authentication issues with the opencode-antigravity-auth plugin, consider whether:

  1. The api: "codex" field might cause similar issues with opencode-openai-codex-auth
  2. If both fields should be removed for consistency, or
  3. If the Codex provider needs this field while Antigravity doesn't (and document why)

Without understanding the different requirements of these two auth plugins, this inconsistency could lead to confusion or similar issues in the future.

Suggested change
// NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities).
// NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities).
// It does NOT rely on an `api` field here (unlike opencode-openai-codex-auth,
// which still uses `api: "codex"` in CODEX_PROVIDER_CONFIG). This is why
// ANTIGRAVITY_PROVIDER_CONFIG omits `api` while Codex retains it.

Copilot uses AI. Check for mistakes.
@tsanva
Copy link
Contributor Author

tsanva commented Dec 25, 2025

Note: bun run typecheck shows pre-existing TS2742 errors on master (zod type inference issues). These errors exist before this change and are unrelated to this fix.

@tsanva
Copy link
Contributor Author

tsanva commented Dec 25, 2025

Closing - need to verify correct base branch (dev vs master)

@tsanva tsanva closed this Dec 25, 2025
@tsanva tsanva deleted the fix/remove-antigravity-api-field-v2 branch December 25, 2025 00:27
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