fix(config): resolve Antigravity/Native Gemini config conflict#1892
fix(config): resolve Antigravity/Native Gemini config conflict#1892Sladck wants to merge 1 commit intocode-yeongyu:devfrom
Conversation
|
Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA). To sign the CLA, please comment on this PR with: This is a one-time requirement. Once signed, all your future contributions will be automatically accepted. I have read the CLA Document and I hereby sign the CLA OpenCode Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: PR adds provider model transformations safely; no regressions detected by AI and changes are minor and well-contained.
This PR fixes a conflict where enabling Antigravity auth would overwrite existing native Gemini CLI configurations.
Changes:
add-provider-config.tsto merge Antigravity settings with existing Google provider configuration instead of replacing it. This preserves API keys and other custom settings.provider-model-id-transform.tsandfallback-chain-resolution.tsto automatically inject theantigravity-prefix into model IDs when Antigravity integration is active. This ensures the correct model IDs (e.g.,antigravity-gemini-3-pro) are used in the generated agent configuration while still allowing fallback to native IDs if needed.Why:
Users utilizing both Antigravity auth (for high-tier tasks) and native Gemini CLI auth (for other tasks or fallbacks) were experiencing configuration overrides and incorrect model ID usage.
Summary by cubic
Fixes the conflict between Antigravity auth and native Gemini config. Preserves existing Google provider settings and uses Antigravity-prefixed model IDs only when Antigravity is active.
Written for commit 8263dda. Summary will update on new commits.