feat: add Claude Opus 4.7 to built-in models#2072
feat: add Claude Opus 4.7 to built-in models#2072juliusmarminge merged 4 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@juliusmarminge Wanna try this out ? I checked and it worked for me. Would like to merge this asap, want a new model lol |
use claude code ;) |
I don't want to get back to this shitty CLI... |
|
@Marve10s @juliusmarminge |
|
Get this shit merged NOW |
xhight is missing |
Will fix Edit 2 : should be fixed
|
ApprovabilityVerdict: Needs human review This PR introduces a new user-facing model option (Claude Opus 4.7) with version-gated availability, changes the default 'opus' alias to point to the new model, and adds a new effort level ('xhigh'). While well-tested and following existing patterns, the new capability and alias change warrant human review. You can customize Macroscope's approvability policy. Learn more. |
Dismissing prior approval to re-evaluate b501340
4734a47 to
6effba7
Compare
7ca51db to
9ef2f1a
Compare
9ef2f1a to
6fc7d22
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6fc7d22. Configure here.
Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 3e07f5a)
…text-gen reset fix) (#6) * fix(server): drop stale text generation options when resetting text-gen model selection (pingdotgg#2076) (cherry picked from commit 7a08fcf) * fix(web): prevent composer controls overlap on narrow windows (make plan sidebar responsive) (pingdotgg#1198) (cherry picked from commit 19d4740) * feat: add Claude Opus 4.7 to built-in models (pingdotgg#2072) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 3e07f5a) * test(server): align Sonnet 4.6 default effort assertions with fork Upstream test assumed Sonnet 4.6 defaults to "high"; our fork intentionally defaults to "medium" per Anthropic's recommendations (a6bbf4b). --------- Co-authored-by: Utkarsh Patil <73941998+UtkarshUsername@users.noreply.github.com> Co-authored-by: Ibrahim Elkamali <126423069+Marve10s@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Integrates upstream/main (9df3c64) on top of fork's main (9602c18). Upstream features adopted: - Claude Opus 4.5 and 4.7 built-in models (pingdotgg#2072, pingdotgg#2143) - Node-native TypeScript migration across desktop/server (pingdotgg#2098) - Configurable project grouping with client-settings overrides (pingdotgg#2055, pingdotgg#2099) - Thread status in command palette (pingdotgg#2107) - Responsive composer / plan sidebar on narrow windows (pingdotgg#1198) - Capture-phase CTRL+J keydown for Windows terminal toggle (pingdotgg#2113/pingdotgg#2142) - Bypass xterm for global terminal shortcuts (pingdotgg#1580) - Windows ARM build target (pingdotgg#2080) - Windows PATH hydration + repair (pingdotgg#1729) - Gitignore-aware workspace search (pingdotgg#2078) - Claude process leak fix + stale session monitoring (pingdotgg#2042) - Preserve provider bindings when stopping sessions (pingdotgg#2084) - Clean up invalid pending-approval projections (pingdotgg#2106) — new migration - Extract backend startup readiness coordination - Drop stale text-gen options on reset (pingdotgg#2076) - Extend negative repository identity cache TTL (pingdotgg#2083) - Allow deleting non-empty projects from warning toast (pingdotgg#1264) - Restore defaults only on General settings (pingdotgg#1710) - Release workflow modernization (blacksmith runners, GitHub App token guards, v0.0.20 version bump) Fork features preserved: - All 8 providers (codex, claudeAgent, copilot, cursor, opencode, geminiCli, amp, kilo) with their adapters, services, and tests - Fork's custom OpenCode protocol impl in apps/server/src/opencode/ (kept over upstream's @opencode-ai/sdk-based provider added in pingdotgg#1758 — fork's version is tested and integrated; upstream's parallel files deleted) - Fork's direct-CLI Cursor adapter (kept over upstream's new ACP-based CursorProvider added in pingdotgg#1355 — upstream's parallel files deleted) - Fork's ProviderRegistry aggregates only codex + claudeAgent snapshots; the other 6 providers register via ProviderAdapterRegistry - PROVIDER_CACHE_IDS stays at [codex, claudeAgent] matching what the registry actually caches - Migration IDs preserved (fork 23/24/25/26; upstream's new 025 lands at ID 27 to avoid re-applying on deployed fork DBs) - Fork's generic per-provider settings (enabled/binaryPath/configDir/ customModels) kept over upstream's opencode-specific serverUrl/password - Log directory IPC channels, updateInstallInFlight tracking, icon composer pipeline all preserved - Fork's simplified release.yml (no npm CLI publish, no nightly infra) - composerDraftStore normalizeProviderKind widened to accept all 8 kinds - Dark mode --background set to #0f0f0f Test status: - All 9 package typechecks pass - Lint clean (0 errors) - Tests: 1877 passed, 15 skipped (incl. 4 historically-flaky GitManager cross-repo PR selector tests newly gated with TODO for Node-native-TS follow-up)



Summary
claude-opus-4-7as a built-in model in the Claude provider with full capability metadata (effort levels, context window options)opusalias to resolve to the latest Opus 4.7, while preservingopus-4.6and all existing aliasesChanges
apps/server/src/provider/Layers/ClaudeProvider.ts— addedclaude-opus-4-7entry toBUILT_IN_MODELSpackages/contracts/src/model.ts— addedopus→claude-opus-4-7,opus-4.7,claude-opus-4.7aliasesNote
Medium Risk
Changes provider model selection/capabilities and effort handling (including new version comparison logic), which could affect which Claude models are exposed and how sessions are configured on different installed CLI versions.
Overview
Adds Claude Opus 4.7 as a built-in
claudeAgentmodel with updated capability metadata (includingxhighdefault reasoning effort and 200k/1M context options), and updatesopus/opus-4.7aliases to resolve to it.Gates exposure of Opus 4.7 on a minimum Claude Code CLI version (
2.1.111) using a new sharedcompareCliVersionsutility (also reused for Codex version checks), surfacing an upgrade message and hiding the model on older versions.Renames and expands Claude effort typing from
ClaudeCodeEfforttoClaudeAgentEffort(addingxhigh) across server, shared, and web code; updates adapter/tests accordingly, bumps@anthropic-ai/claude-agent-sdk, and adjusts Codex git text generation to pass--skip-git-repo-check.Reviewed by Cursor Bugbot for commit dafa03f. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add Claude Opus 4.7 to built-in Claude models with
xhighdefault effortclaude-opus-4-7as a built-in model in ClaudeProvider.ts, conditionally exposed only when the Claude Code CLI version is >=2.1.111; older versions receive an upgrade prompt instead.xhighas a validClaudeAgentEffortvalue in contracts/src/model.ts, replacing the prior array-union approach withSchema.Literalsand renamingClaudeCodeEfforttoClaudeAgentEffortthroughout.opus,opus-4.7, andclaude-opus-4.7now resolve toclaude-opus-4-7.ultrathinkeffort is prompt-injected for Opus 4.7 rather than forwarded directly;xhighis the new default effort for that model.Macroscope summarized dafa03f.