Skip to content

fix(config): resolve Antigravity/Native Gemini config conflict#1892

Open
Sladck wants to merge 1 commit intocode-yeongyu:devfrom
Sladck:fix/antigravity-config-merge
Open

fix(config): resolve Antigravity/Native Gemini config conflict#1892
Sladck wants to merge 1 commit intocode-yeongyu:devfrom
Sladck:fix/antigravity-config-merge

Conversation

@Sladck
Copy link

@Sladck Sladck commented Feb 16, 2026

This PR fixes a conflict where enabling Antigravity auth would overwrite existing native Gemini CLI configurations.

Changes:

  1. Deep Merge for Google Provider: Modified add-provider-config.ts to merge Antigravity settings with existing Google provider configuration instead of replacing it. This preserves API keys and other custom settings.
  2. Model ID Prefix Injection: Updated provider-model-id-transform.ts and fallback-chain-resolution.ts to automatically inject the antigravity- 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.

  • Bug Fixes
    • Deep-merge Antigravity Google provider config with existing values to keep API keys and custom settings.
    • Auto-prefix Gemini model IDs with antigravity- for Google when Antigravity is enabled; keep native IDs otherwise.
    • Align fallback chain resolution with the same model ID logic to ensure valid provider/model pairs.

Written for commit 8263dda. Summary will update on new commits.

@github-actions
Copy link
Contributor

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:

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

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.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

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.

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