-
-
Notifications
You must be signed in to change notification settings - Fork 205
fix: remove api:antigravity field causing auth issues #211
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
fix: remove api:antigravity field causing auth issues #211
Conversation
The api: "antigravity" field being added to opencode.json causes authentication failures with the antigravity plugin. Fixes: NoeFabris/opencode-antigravity-auth#49
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.
Pull request overview
This PR addresses an authentication issue by removing the api: "antigravity" field from the Google provider configuration in ANTIGRAVITY_PROVIDER_CONFIG. According to the linked issue, this field was causing authentication failures with the opencode-antigravity-auth plugin, and multiple users confirmed that manually removing it resolved the problem.
- Removes the problematic
api: "antigravity"field from the Google provider configuration - Fixes authentication failures for users of the opencode-antigravity-auth plugin
💡 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). | ||
| // If these are incomplete, models may appear but fail at runtime (e.g. 404). | ||
| models: { |
Copilot
AI
Dec 25, 2025
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.
The removal of the api: "antigravity" field creates an inconsistency with CODEX_PROVIDER_CONFIG, which still includes api: "codex" on line 408. While the PR description indicates this field causes authentication issues with the opencode-antigravity-auth plugin, the same field pattern exists in the codex configuration. Consider documenting why the field is removed here but retained for codex, or verify if the codex auth plugin has similar compatibility concerns.
|
@sisyphus-dev-ai review and please look at external sources too if required |
|
👋 Hey @code-yeongyu! I'm on it... |
✅ Review CompleteSummary: This is a clean, validated fix that resolves authentication failures for Antigravity users. 🔍 AnalysisProblem Confirmed:
Change Impact:
Code Quality:
📝 ObservationsCODEX_PROVIDER_CONFIG keeps const CODEX_PROVIDER_CONFIG = {
openai: {
api: "codex", // Still present
// ...
}
}This suggests different auth plugins have different requirements. The opencode-openai-codex-auth plugin may need this field, while opencode-antigravity-auth does not. ✅ RecommendationAPPROVE & MERGE This fix:
Post-merge suggestion: export const ANTIGRAVITY_PROVIDER_CONFIG = {
google: {
name: "Google",
// NOTE: Do not add api field - opencode-antigravity-auth plugin
// does not expect it and will fail with ERR_INVALID_URL
models: { /* ... */ }
}
}Great work, @tsanva! 🎉 |
|
@sisyphus-dev-ai i am not sure he signed cla, can you please check? |
|
👋 Hey @code-yeongyu! I'm on it... |
CLA Status Check ✅Author: @tsanva (vasant) CLA Signed: ✅ Yes Details:
The contributor has signed the CLA and is cleared to contribute! 🎉 |
|
@sisyphus-dev-ai please merge this |
|
👋 Hey @code-yeongyu! I'm on it... |
Summary
api: "antigravity"field fromANTIGRAVITY_PROVIDER_CONFIGthat was being written to~/.config/opencode/opencode.jsonRelated Issue
Fixes: NoeFabris/opencode-antigravity-auth#49
Multiple users confirmed that removing this field manually resolves the authentication issue.