Skip to content

Bump Claude Agent SDK and add Opus 4.7 models#198

Open
aletc1 wants to merge 1 commit into21st-dev:mainfrom
aletc1:claude/magical-lederberg-154380
Open

Bump Claude Agent SDK and add Opus 4.7 models#198
aletc1 wants to merge 1 commit into21st-dev:mainfrom
aletc1:claude/magical-lederberg-154380

Conversation

@aletc1
Copy link
Copy Markdown

@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>
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