Bump Claude Agent SDK and add Opus 4.7 models#1
Merged
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>
aletc1
added a commit
that referenced
this pull request
Apr 17, 2026
* Bump Claude Agent SDK and add Opus 4.7 models (#1) - @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> * Swap Enter/Shift+Enter in agents prompt editor (#3) Enter now inserts a newline and Shift+Enter submits (Opt+Shift+Enter force-submits). Applies to both the new-workspace prompt and the active-chat input, since they share AgentsMentionsEditor. Multi-line prompts are much easier to compose without an accidental send. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Bugfix/white page startup (#4) * FIX: White screen issue when loading * FIX: Updated nullable ollama * Feature/aside version (#5) * FIX: White screen issue when loading * FIX: Updated nullable ollama * FEATURE: Aside version * fix(windows): normalize git paths to POSIX so sidebar tree view works (#7) The sidebar files section rendered as a flat list on Windows because paths occasionally contained backslashes, so the tree builder's `path.split("/")` produced a single segment. Normalize all paths emitted by the git status/diff parsers to forward slashes at the single backend boundary. Git stores paths with "/" on every platform, and Node fs / path.join accept "/" on Windows, so downstream functionality (file reads, diffs, numstat lookups) is unaffected. The renderer's many `split("/")` call sites keep working unchanged on both platforms. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * ui(agents): widen chat column from max-w-2xl to max-w-4xl (#8) Chat content was capped at 672px, leaving excessive whitespace on wide windows and cramping bash/tool output. Bumps the message column, input area, status cards, and loading wrapper to 896px (+33%) so they stay aligned and tool renderers (which inherit width) breathe. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat(agents): add Claude thinking effort selector Replaces the binary on/off toggle with a per-subChat Off/Low/Medium/High/XHigh/Max selector (filtered per model) using the SDK's new `effort` option; drops the deprecated `maxThinkingTokens`. A one-time migration seeds the new atom from the old boolean so existing preferences carry over. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- 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