Skip to content

Conversation

@mmlmt2604
Copy link
Contributor

@mmlmt2604 mmlmt2604 commented Jan 15, 2026

Summary

  • Oh my opencode now missing models from antigravity, it now replace the opencode.json and provide config that missing some model (e.g, Antigravity Opus 4.5).

Changes

  • Update the ANTIGRAVITY_PROVIDER_CONFIG and update to complete configuration of antigravity model which suggested by project opencode-antigravity-auth

Screenshots

Before After

Testing

bun run typecheck
bun test

Related Issues

Closes #811


Summary by cubic

Fixes missing Antigravity models in the provider config so users regain access to the models they had. Aligns the Google provider models with the opencode-antigravity-auth schema, including new variants.

  • Bug Fixes
    • Replaced Google models config with the full Antigravity set, including Gemini 3 Pro and Gemini 3 Flash variants.
    • Added Claude Sonnet 4.5 and Opus 4.5 Thinking models with low/max thinking budgets.
    • Standardized limits and modalities and kept Gemini CLI models (2.5 Flash/Pro, 3 Flash/Pro preview).

Written for commit e813693. Summary will update on new commits.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

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

@mmlmt2604
Copy link
Contributor Author

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

github-actions bot added a commit that referenced this pull request Jan 15, 2026
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 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@kdcokenny
Copy link
Collaborator

please make sure that the related tests pass

- Update existing test to verify all models include full specifications.
- Add new tests to ensure Antigravity and Gemini CLI models have correct naming conventions.
- Introduce checks for models with variants to confirm the presence of required properties.
@mmlmt2604
Copy link
Contributor Author

Updated test for antigravty model and pass

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.

2 issues found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="src/cli/config-manager.test.ts">

<violation number="1" location="src/cli/config-manager.test.ts:182">
P2: Generated agent model still uses removed variant id `antigravity-gemini-3-pro-high`, which no longer exists in provider config</violation>

<violation number="2" location="src/cli/config-manager.test.ts:257">
P2: Test does not verify variants contain required thinkingConfig/thinkingLevel despite test intent</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

const required = [
"antigravity-gemini-3-pro-high",
"antigravity-gemini-3-pro-low",
"antigravity-gemini-3-pro",
Copy link

Choose a reason for hiding this comment

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

P2: Generated agent model still uses removed variant id antigravity-gemini-3-pro-high, which no longer exists in provider config

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/cli/config-manager.test.ts, line 182:

<comment>Generated agent model still uses removed variant id `antigravity-gemini-3-pro-high`, which no longer exists in provider config</comment>

<file context>
@@ -170,24 +170,32 @@ describe("fetchNpmDistTags", () => {
     const required = [
-      "antigravity-gemini-3-pro-high",
-      "antigravity-gemini-3-pro-low",
+      "antigravity-gemini-3-pro",
       "antigravity-gemini-3-flash",
+      "antigravity-claude-sonnet-4-5",
</file context>

Comment on lines +257 to +258
expect(Object.keys(model.variants).length).toBeGreaterThan(0)
}
Copy link

Choose a reason for hiding this comment

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

P2: Test does not verify variants contain required thinkingConfig/thinkingLevel despite test intent

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/cli/config-manager.test.ts, line 257:

<comment>Test does not verify variants contain required thinkingConfig/thinkingLevel despite test intent</comment>

<file context>
@@ -198,6 +206,57 @@ describe("config-manager ANTIGRAVITY_PROVIDER_CONFIG", () => {
+      const model = models[key]
+      // #then variants should exist
+      expect(model.variants).toBeTruthy()
+      expect(Object.keys(model.variants).length).toBeGreaterThan(0)
+    }
+  })
</file context>
Suggested change
expect(Object.keys(model.variants).length).toBeGreaterThan(0)
}
const variantEntries = Object.values(model.variants)
expect(variantEntries.length).toBeGreaterThan(0)
for (const variant of variantEntries) {
expect(variant.thinkingLevel || variant.thinkingConfig).toBeTruthy()
}

@kdcokenny
Copy link
Collaborator

I know some of these failures are preexisting.. I may need to clean up the dev branch b4 merging this. Just clean up the test as the cubic bot recommends and you should be good!

@GollyJer
Copy link
Collaborator

Antigravity is no longer supported directly in oMo. It will still work but config will happen in OpenCode itself.

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.

[Bug]: Overwrite original antigravity model config and miss model

3 participants