Bump Claude Agent SDK and add Opus 4.7 models#198
Open
aletc1 wants to merge 1 commit into21st-dev:mainfrom
Open
Bump Claude Agent SDK and add Opus 4.7 models#198aletc1 wants to merge 1 commit into21st-dev:mainfrom
aletc1 wants to merge 1 commit into21st-dev:mainfrom
Conversation
- @anthropic-ai/claude-agent-sdk 0.2.45 -> 0.2.112 - Bundled Claude Code CLI 2.1.45 -> 2.1.112 (required for Opus 4.7) - Model picker: Opus 4.7, Opus 4.7 1M, Sonnet 4.6, Haiku 4.5 - 1M variant uses the opus[1m] alias; Claude Code parses the suffix and enables the 1M context window on the same underlying model Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@anthropic-ai/claude-agent-sdkfrom0.2.45to0.2.112and the bundled Claude Code CLI from2.1.45to2.1.112(Opus 4.7 support requires CLI ≥ 2.1.111).opus[1m]alias — Claude Code parses the suffix and enables a 1M-token context window on the same underlying Opus 4.7 model (it's not a separate model ID).Why
The previous picker showed Opus 4.6 while Anthropic has shipped Opus 4.7 (current flagship) with a native 1M-token context window. The old SDK and bundled CLI predated Opus 4.7 support.
Files changed
package.json— SDK version +claude:downloadscript versionssrc/renderer/features/agents/lib/models.ts— picker entriessrc/renderer/features/agents/atoms/index.ts—MODEL_ID_MAPpassthrough foropus[1m]src/renderer/features/agents/ui/agent-context-indicator.tsx—CONTEXT_WINDOWSentry for the 1M variant (1,000,000)bun.lock— regeneratedNotes for reviewers
opusalias still auto-routes to the latest Opus; only the display label changed (4.6 → 4.7).src/main/lib/trpc/routers/claude.ts(unrelated to this change) became visible afterbun installrefreshed the lockfile from0.2.32to the declared version. It does not block the build (esbuild via electron-vite) and is not introduced by this PR.Test plan
bun install— SDK 0.2.112 installedbun run claude:download— 2.1.112 CLI binary downloaded (SHA verified)bun run build— main + preload + renderer build cleanlybun run dev— Electron app boots, auth + protocol handlers init without errorsresume/continueoption shape is unchanged)🤖 Generated with Claude Code