Skip to content

Conversation

@mynameistito
Copy link

@mynameistito mynameistito commented Feb 11, 2026

Summary

Remove all references to Claude Opus 4.5 model (claude-opus-4-5-thinking) from codebase since it has been deprecated on the Antigravity API. Users should use Claude Opus 4.6 instead.

Changes

Source Code (2 files):

  • src/plugin/config/models.ts - Removed antigravity-claude-opus-4-5-thinking definition
  • src/plugin/transform/model-resolver.ts - Removed 3 MODEL_ALIASES entries for opus-4-5 variants
    Test Files (6 files):
  • src/plugin/transform/model-resolver.test.ts - Updated test expectations to use Opus 4.6
  • src/plugin/transform/cross-model-sanitizer.test.ts - Updated model references to Opus 4.6
  • src/plugin/transform/claude.test.ts - Updated isClaudeModel/isClaudeThinkingModel tests
  • src/plugin/cross-model-integration.test.ts - Updated integration test models
  • src/plugin/config/models.test.ts - Removed Opus 4.5 from expected models list
  • src/plugin/accounts.test.ts - Updated quota group test
    Scripts (4 files):
  • script/test-regression.ts - Updated CLAUDE_OPUS constant to Opus 4.6
  • script/test-models.ts - Removed Opus 4.5 test entries
  • script/test-cross-model.ts - Updated model references to Opus 4.6
  • script/test-cross-model-e2e.sh - Updated all 8 shell script model references to Opus 4.6
    Documentation (4 files):
  • README.md - Updated model examples from Opus 4.5 to 4.6
  • AGENTS.md - Updated overview to reference Opus 4.6
  • docs/ANTIGRAVITY_API_SPEC.md - Removed Opus 4.5 from model list, marked 4.6 as verified
  • .github/ISSUE_TEMPLATE/bug_report.yml - Removed Opus 4.5 from model dropdown
    Comment Update (1 file):
  • src/plugin/request.ts - Updated comment example from Opus 4.5 to 4.6

Verification

  • ✅ All 833 tests pass
  • ✅ TypeScript type checking passes
  • ✅ Build succeeds
  • ✅ No remaining opus-4-5 references in codebase (except this PR)

Fixes #424

Fixes: NoeFabris#424

 - Removed `antigravity-claude-opus-thinking-4-5` from `README.md`
- modified `antigravity-claude-opus-thinking-4-5` on `bug_report.yml`
Signed-off-by: Tito <github@mynameistito.com>
- Remove antigravity-claude-opus-4-5-thinking from model definitions
- Remove Opus 4.5 MODEL_ALIASES entries
- Update all tests to use Opus 4.6 instead of 4.5
- Update scripts (test-regression, test-models, test-cross-model, test-cross-model-e2e.sh)
- Update documentation (README, AGENTS.md, API spec, bug report template)
- Update comment in request.ts

All 833 tests pass, typecheck and build succeed.

Fixes NoeFabris#424
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 11, 2026

Walkthrough

This pull request removes references to Claude Opus 4-5 and replaces them with Claude Opus 4-6 across the repository. Changes include deleting the antigravity-claude-opus-4-5-thinking model definition and related alias mappings, updating tests, scripts, and examples to use 4-6 variants, updating documentation and templates (README, AGENTS.md, ANTIGRAVITY_API_SPEC, bug report template), and adjusting cross-model E2E and regression test entries. No functional logic or exported signatures are introduced beyond removing the 4-5 model and its aliases.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'chore: remove antigravity-claude-opus-4-5-thinking' clearly and specifically describes the main change—removing the deprecated Opus 4.5 model from the codebase.
Description check ✅ Passed The PR description is well-structured and clearly related to the changeset, providing a comprehensive summary of changes across source code, tests, scripts, documentation, and verification results.
Linked Issues check ✅ Passed The PR successfully addresses all coding requirements from issue #424: removes Opus 4.5 definitions from 2 source files, updates 6 test files, modifies 4 script files, and updates 4 documentation files as specified.
Out of Scope Changes check ✅ Passed All changes are directly aligned with the objective of removing Opus 4.5 references and migrating to Opus 4.6; no out-of-scope changes detected beyond the specified scope.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
docs/ANTIGRAVITY_API_SPEC.md (1)

4-4: Consider bumping the "Last Updated" date and adding a changelog entry.

The spec's "Last Updated" still reads December 13, 2025, and the changelog at Line 634-635 doesn't mention the Opus 4.5 → 4.6 change. A quick date bump and changelog line would keep the doc consistent.

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between bdc66bb and 77a80b8.

📒 Files selected for processing (5)
  • AGENTS.MD
  • README.md
  • docs/ANTIGRAVITY_API_SPEC.md
  • src/plugin/accounts.test.ts
  • src/plugin/request.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • AGENTS.MD
  • src/plugin/request.ts
🧰 Additional context used
🧬 Code graph analysis (1)
src/plugin/accounts.test.ts (1)
src/plugin/accounts.ts (1)
  • resolveQuotaGroup (238-243)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Greptile Review
🔇 Additional comments (4)
src/plugin/accounts.test.ts (1)

1848-1848: LGTM!

Model version string correctly updated from claude-opus-4-5 to claude-opus-4-6 in the test expectation, consistent with the broader migration.

docs/ANTIGRAVITY_API_SPEC.md (1)

83-83: LGTM! Model table correctly updated to show Claude Opus 4.6 Thinking as ✅ Verified, replacing the removed 4.5 entry.

README.md (2)

9-9: LGTM!

Description and "What You Get" list correctly updated to reference Claude Opus 4.6.

Also applies to: 13-13


124-124: LGTM!

Model reference table and full JSON configuration consistently updated: Opus 4.5 entries removed, Opus 4.6 entries in place with matching variants and limits.

Also applies to: 195-203

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
docs/ANTIGRAVITY_API_SPEC.md (1)

4-4: ⚠️ Potential issue | 🟡 Minor

Update the "Last Updated" date.

The spec header still shows December 13, 2025 but the model availability table has been modified. Consider updating this to reflect the current change.

src/plugin/transform/claude.test.ts (1)

57-58: ⚠️ Potential issue | 🟡 Minor

Missed 4-5 → 4-6 update on line 58.

Line 58 still references Claude-Opus-4-5-Thinking while all other opus references in this file have been updated to 4-6. This appears to be an oversight in the migration.

Proposed fix
-    expect(isClaudeThinkingModel("Claude-Opus-4-5-Thinking")).toBe(true);
+    expect(isClaudeThinkingModel("Claude-Opus-4-6-Thinking")).toBe(true);
🧹 Nitpick comments (1)
.opencode/plans/1770840700772-proud-garden.md (1)

62-77: Consider adding a search for alias/variant patterns in verification.

The grep on line 75 only searches for opus-4-5. You might also want to search for opus-4.5 (with dot) or opus_4_5 (with underscores) to catch any alternative formatting of the version string.

Proposed addition to verification step
 # 4. Verify no remaining references
 grep -r "opus-4-5" --include="*.ts" --include="*.md" --include="*.sh" --include="*.yml"
 # Should return 0 matches
+grep -r "opus.4.5\|opus_4_5\|Opus 4.5" --include="*.ts" --include="*.md" --include="*.sh" --include="*.yml" --include="*.json"
+# Should also return 0 matches
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between f7e0c50 and bdc66bb.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (18)
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .opencode/plans/1770840700772-proud-garden.md
  • AGENTS.MD
  • README.md
  • docs/ANTIGRAVITY_API_SPEC.md
  • script/test-cross-model-e2e.sh
  • script/test-cross-model.ts
  • script/test-models.ts
  • script/test-regression.ts
  • src/plugin/accounts.test.ts
  • src/plugin/config/models.test.ts
  • src/plugin/config/models.ts
  • src/plugin/cross-model-integration.test.ts
  • src/plugin/request.ts
  • src/plugin/transform/claude.test.ts
  • src/plugin/transform/cross-model-sanitizer.test.ts
  • src/plugin/transform/model-resolver.test.ts
  • src/plugin/transform/model-resolver.ts
💤 Files with no reviewable changes (5)
  • src/plugin/config/models.ts
  • src/plugin/transform/model-resolver.ts
  • script/test-models.ts
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • src/plugin/config/models.test.ts
🧰 Additional context used
🧬 Code graph analysis (6)
script/test-cross-model.ts (2)
src/plugin/transform/index.ts (2)
  • getModelFamily (25-25)
  • getModelFamily (66-66)
src/plugin/transform/cross-model-sanitizer.ts (1)
  • getModelFamily (30-34)
src/plugin/transform/claude.test.ts (2)
src/plugin/transform/index.ts (2)
  • isClaudeModel (35-35)
  • isClaudeThinkingModel (36-36)
src/plugin/transform/claude.ts (2)
  • isClaudeModel (27-29)
  • isClaudeThinkingModel (34-37)
src/plugin/cross-model-integration.test.ts (3)
src/plugin/transform/model-resolver.ts (1)
  • getModelFamily (270-279)
src/plugin/transform/index.ts (2)
  • getModelFamily (25-25)
  • getModelFamily (66-66)
src/plugin/transform/cross-model-sanitizer.ts (1)
  • getModelFamily (30-34)
src/plugin/accounts.test.ts (1)
src/plugin/accounts.ts (1)
  • resolveQuotaGroup (249-254)
src/plugin/transform/cross-model-sanitizer.test.ts (3)
src/plugin/transform/model-resolver.ts (1)
  • getModelFamily (270-279)
src/plugin/transform/index.ts (2)
  • getModelFamily (25-25)
  • getModelFamily (66-66)
src/plugin/transform/cross-model-sanitizer.ts (1)
  • getModelFamily (30-34)
src/plugin/transform/model-resolver.test.ts (1)
src/plugin/transform/model-resolver.ts (2)
  • resolveModelWithTier (159-265)
  • resolveModelWithVariant (359-407)
🪛 LanguageTool
.opencode/plans/1770840700772-proud-garden.md

[uncategorized] ~54-~54: The official name of this software platform is spelled with a capital “H”.
Context: ...| Remove Opus 4.5 from model list | |.github/ISSUE_TEMPLATE/bug_report.yml:48` | Rem...

(GITHUB)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Greptile Review
🔇 Additional comments (19)
AGENTS.MD (1)

7-7: LGTM! Model reference updated consistently with the broader migration.

src/plugin/request.ts (1)

722-723: LGTM! Comment updated to reflect the new model version; logic unchanged.

src/plugin/accounts.test.ts (1)

1838-1838: LGTM! Test input updated consistently; "claude-opus-4-6" still matches the "claude" family correctly.

docs/ANTIGRAVITY_API_SPEC.md (1)

83-83: LGTM! Model availability table correctly updated from Opus 4-5 to Opus 4-6 with Verified status.

src/plugin/transform/claude.test.ts (1)

19-19: LGTM! Model version strings updated consistently across isClaudeModel and isClaudeThinkingModel tests.

Also applies to: 26-26, 32-32, 51-53, 63-63, 68-68

script/test-cross-model.ts (1)

62-62: LGTM! E2E test model references updated consistently.

Also applies to: 75-75

src/plugin/transform/model-resolver.test.ts (2)

117-123: LGTM! Test correctly updated for the opus 4-6 thinking model with expected budget and quota settings.


211-218: LGTM! Backward compatibility tests updated consistently to 4-6 variants with correct budget expectations.

src/plugin/transform/cross-model-sanitizer.test.ts (1)

14-14: LGTM! All cross-model sanitizer test expectations updated consistently to opus 4-6 variants.

Also applies to: 304-304, 432-432, 519-519

README.md (3)

9-19: LGTM — model references and feature list updated consistently.

All Claude Opus references updated from 4.5 to 4.6, and the new feature bullets are a welcome addition to the documentation.


118-125: Model table updated correctly.

The antigravity-claude-opus-4-5-thinking row has been replaced with the 4-6 variant.


195-203: Full config JSON updated correctly.

The copy-paste-ready configuration now references antigravity-claude-opus-4-6-thinking.

script/test-cross-model-e2e.sh (1)

1-10: All model references updated consistently across all 8 test cases.

The E2E script correctly replaces all opus-4-5 references with opus-4-6 for both anthropic/claude-opus-4-6 and google/antigravity-claude-opus-4-6-thinking-low model identifiers.

src/plugin/cross-model-integration.test.ts (4)

58-71: Test model references updated correctly.

The claude-opus-4-6-thinking-medium model string will be correctly identified by getModelFamily (which checks for "claude" substring), so these test expectations remain valid.


130-199: Bug reproduction scenario updated consistently.

Both the model field and targetModel option correctly reference the 4-6 variant.


361-366: Model family detection test updated.

The new model string claude-opus-4-6-thinking-medium is correctly expected to return "claude".


433-435: Batch format edge case test updated.

Target model changed to claude-opus-4-6 — consistent with the migration.

script/test-regression.ts (1)

55-58: CLAUDE_OPUS constant correctly updated.

Only the Opus constant is changed to 4-6 while CLAUDE_SONNET (sonnet-4-5) is correctly left unchanged, matching the scope of this deprecation.

.opencode/plans/1770840700772-proud-garden.md (1)

1-110: Well-structured migration plan.

The plan thoroughly documents all affected files across source, tests, scripts, docs, and comments. The verification step with grep -r "opus-4-5" is a good safeguard against missed references.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 11, 2026

Greptile Overview

Greptile Summary

This PR systematically removes all references to the deprecated claude-opus-4-5-thinking model and replaces them with claude-opus-4-6-thinking. The changes span source code, tests, scripts, and documentation.

Key changes:

  • Removed antigravity-claude-opus-4-5-thinking model definition from models.ts
  • Removed 3 MODEL_ALIASES entries for opus-4-5 variants in model-resolver.ts
  • Updated 6 test files to use opus-4-6 in assertions and expectations
  • Updated 4 script files to reference opus-4-6
  • Updated documentation (README, AGENTS.MD, API spec) to reflect the model change
  • Removed opus-4-5 from bug report template dropdown

Issue found:

  • One test case in src/plugin/transform/claude.test.ts:58 still references Claude-Opus-4-5-Thinking in a case-insensitive test

The changes are well-structured and comprehensive, addressing the deprecation across all relevant areas of the codebase.

Confidence Score: 4/5

  • Safe to merge after fixing the missed test reference
  • The PR is comprehensive and well-executed, with one small oversight: a test case on line 58 of claude.test.ts still references opus-4-5. All other changes correctly replace opus-4-5 with opus-4-6. The version bump and dependency changes in package-lock.json appear routine.
  • Fix the test case in src/plugin/transform/claude.test.ts:58 before merging

Important Files Changed

Filename Overview
src/plugin/config/models.ts Removed deprecated antigravity-claude-opus-4-5-thinking model definition
src/plugin/transform/model-resolver.ts Removed 3 MODEL_ALIASES entries for opus-4-5 thinking variants
src/plugin/transform/claude.test.ts Updated test cases to use opus-4-6, but missed one case-insensitive test on line 58
src/plugin/config/models.test.ts Removed opus-4-5 from expected models list and removed variant test
src/plugin/transform/model-resolver.test.ts Updated all test cases to use opus-4-6 instead of opus-4-5
README.md Updated documentation to reference opus-4-6, removed opus-4-5 from model table and example config
docs/ANTIGRAVITY_API_SPEC.md Removed opus-4-5 from supported models, marked opus-4-6 as verified

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

18 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 11, 2026

Additional Comments (1)

src/plugin/transform/claude.test.ts
Missed reference - should use Claude-Opus-4-6-Thinking

    expect(isClaudeThinkingModel("Claude-Opus-4-6-Thinking")).toBe(true);
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/plugin/transform/claude.test.ts
Line: 58:58

Comment:
Missed reference - should use `Claude-Opus-4-6-Thinking`

```suggestion
    expect(isClaudeThinkingModel("Claude-Opus-4-6-Thinking")).toBe(true);
```

How can I resolve this? If you propose a fix, please make it concise.

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] Opus-4-5 is deprecated on Antigravity

1 participant