Skip to content

Bump Claude Agent SDK and add Opus 4.7 models#1

Merged
aletc1 merged 1 commit intomainfrom
claude/magical-lederberg-154380
Apr 17, 2026
Merged

Bump Claude Agent SDK and add Opus 4.7 models#1
aletc1 merged 1 commit intomainfrom
claude/magical-lederberg-154380

Conversation

@aletc1
Copy link
Copy Markdown
Owner

@aletc1 aletc1 commented Apr 17, 2026

Summary

  • Bumps @anthropic-ai/claude-agent-sdk from 0.2.45 to 0.2.112 and the bundled Claude Code CLI from 2.1.45 to 2.1.112 (Opus 4.7 support requires CLI ≥ 2.1.111).
  • Updates the model picker to match Claude Code's own UX: Opus 4.7, Opus 4.7 1M, Sonnet 4.6, Haiku 4.5.
  • The 1M variant uses the 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:download script versions
  • src/renderer/features/agents/lib/models.ts — picker entries
  • src/renderer/features/agents/atoms/index.tsMODEL_ID_MAP passthrough for opus[1m]
  • src/renderer/features/agents/ui/agent-context-indicator.tsxCONTEXT_WINDOWS entry for the 1M variant (1,000,000)
  • bun.lock — regenerated

Notes for reviewers

  • Opus 4.6 is intentionally dropped from the picker to match the Claude Code reference UX. The underlying model remains available via the API if needed, but is no longer a first-class option here.
  • The existing opus alias still auto-routes to the latest Opus; only the display label changed (4.6 → 4.7).
  • Effort levels (low/medium/high/xhigh/max) visible in the Claude Code CLI reference are out of scope and would require a separate UI + SDK parameter pass-through.
  • Pre-existing TypeScript drift in src/main/lib/trpc/routers/claude.ts (unrelated to this change) became visible after bun install refreshed the lockfile from 0.2.32 to 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 installed
  • bun run claude:download — 2.1.112 CLI binary downloaded (SHA verified)
  • bun run build — main + preload + renderer build cleanly
  • bun run dev — Electron app boots, auth + protocol handlers init without errors
  • Open the model picker and confirm entries: Opus 4.7 · Opus 4.7 1M · Sonnet 4.6 · Haiku 4.5
  • Select Opus 4.7, send a message, confirm response streams and tool calls render
  • Switch to Opus 4.7 1M mid-chat, send another message, confirm it still works
  • Send a message on Sonnet 4.6 and Haiku 4.5
  • Session resume works on a second turn (proves resume/continue option shape is unchanged)

🤖 Generated with Claude Code

- @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 aletc1 merged commit 42cfe1f into main Apr 17, 2026
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>
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.

1 participant