Skip to content

feat(claude): upgrade Agent SDK to 0.3.322 for Fable 5.2 - #260

Open
bbsngg wants to merge 1 commit into
mainfrom
claude/fable-5-2
Open

bbsngg wants to merge 1 commit into
mainfrom
claude/fable-5-2

Conversation

@bbsngg

@bbsngg bbsngg commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade @anthropic-ai/claude-agent-sdk from 0.3.226 to 0.3.322 (bundled Claude Code CLI 2.1.322). The old CLI predates Claude Fable 5.2, so model discovery could not list it. The new CLI reports it, both as fable and as the recommended default, so the model picker shows Fable 5.2 without a hand-written entry.
  • Drop alwaysShow from Sonnet 5.5: the new CLI reports it as sonnet. Fable 5.2 and Sonnet 5.5 stay in the built-in table only as the fallback for when discovery fails.
  • Always pass permissionMode to the SDK. Since 0.3.322 an omitted permissionMode is left to Claude Code, so a user's settings defaultMode (or auto mode) would replace the mode chosen in dr-claw. Previously default was sent by omission.
  • Record Fable 5.2's 1M context window (claude-fable-5-2, fable).

The lockfile change is only the SDK package and its eight platform packages (0.3.226 -> 0.3.322).

Behaviour changes from the SDK upgrade worth knowing

  • On Fable 5, Opus 4.8, Sonnet 5 and newer models, the task-tracking tools (TodoWrite, TaskCreate/Get/Update/List) are no longer in Claude Code's default tool set, so the chat's todo list may not appear with those models. This PR leaves the upstream default in place. Plan mode still adds TodoWrite to allowedTools.
  • Fork subagents are on by default in SDK sessions.
  • Minimum Node.js is now 18.14.0.

Test plan

  • npx vitest run: 63 files, 571 tests pass (after rebasing on 1.3.1)
  • npx tsc --noEmit passes
  • Ran getModelsForProvider('claude') against the new SDK: the picker lists Default (Fable 5.2), Opus 5.5, Fable 5.2, Sonnet 5.5, Haiku 5.5, then the older versions
  • Not yet run: a real chat turn on Fable 5.2 through dr-claw

🤖 Generated with Claude Code

The CLI bundled with Agent SDK 0.3.226 predates Claude Fable 5.2, so model
discovery could not list it. The 0.3.322 CLI reports it (as `fable` and as
the recommended default), so the picker picks it up without a hand-written
entry. Sonnet 5.5 is now reported the same way (`sonnet`), so its
`alwaysShow` override is dropped; both stay in the built-in table only as
the fallback used when discovery fails.

Since 0.3.322 an omitted `permissionMode` is left to Claude Code, which
would let a user's settings `defaultMode` (or auto mode) replace the mode
chosen in dr-claw. Always pass it explicitly.

Also record Fable 5.2's 1M context window (`claude-fable-5-2`, `fable`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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