Skip to content

chore(deps): bump @anthropic-ai/claude-agent-sdk to 0.3.273 - #1594

Merged
backnotprop merged 1 commit into
mainfrom
chore/bump-claude-agent-sdk
Sep 22, 2026
Merged

backnotprop merged 1 commit into
mainfrom
chore/bump-claude-agent-sdk

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Bumps @anthropic-ai/claude-agent-sdk from 0.3.260 to 0.3.273 (range ^0.3.252 → ^0.3.273). Only package.json and bun.lock change.

Why 0.3.273 and not 0.3.280: 0.3.280 was published on 2026-09-22, so minimumReleaseAge (7 days, bunfig.toml) blocks it. 0.3.273 is the newest release that clears the policy, and the policy is left unchanged. 0.3.280 becomes eligible on 2026-09-29 and can come in through the normal Dependabot flow.

Compatibility

  • Peer dependencies are the same as in 0.3.260 (@anthropic-ai/sdk >=0.93.0, @modelcontextprotocol/sdk ^1.29.0, zod ^4.0.0).
  • The Ask AI provider (packages/ai/providers/claude-agent-sdk.ts) is the only code that imports the SDK, and it loads it at runtime. The review, guide and tour Claude jobs launch the CLI directly and don't use the SDK. The Pi extension vendors the provider's source file but does not depend on the SDK. No built output is committed, so nothing needed a rebuild.
  • None of the query options the provider sets changed incompatibly.

Changelog notes (0.3.261 to 0.3.273)

  • 0.3.265: the shell working directory now persists across turns. Before this release, a multi-turn session reset the shell to the cwd option at each new user message. Now a cd the agent makes carries over, as it does in the interactive app. Effect on Ask AI: a follow-up question in the same session (which resumes the session) now starts in whatever directory the previous turn left the shell in, not the session cwd. Relative paths in a follow-up resolve from there. The provider's cwd still sets where the session starts.
  • 0.3.265: user_message_uuid / user_message_uuids are now set on synthetic turns and on turns Claude Code starts itself. The provider doesn't read them.
  • 0.3.267: custom and appended system prompts are now recorded by default. A mid-session prompt change takes effect at the next compaction. The provider sets the claude_code preset plus its append only on the first query and resumes after that, so its behavior is unchanged.
  • 0.3.268:
    • The task-tracking tools (TodoWrite, TaskCreate and similar) are default tools only on older models. The provider passes an explicit allowedTools, so this doesn't affect it.
    • setModel() now checks a model id it doesn't know with the API instead of refusing it.
    • Adds defaultToNo and suppressAlwaysAllowRule hints to the canUseTool options, and result_index, resume_reason and local_command to messages. All of these are additive.
  • 0.3.269: plan mode now sends writes through canUseTool even when allowDangerouslySkipPermissions is set. The provider sets that flag only with bypassPermissions, so this doesn't affect it. Also fixes result.permission_denials leaving out Read, Edit and Write calls blocked by a path-scoped deny rule.
  • 0.3.271: adds omitClaudeMd to AgentDefinition and removes persistent from the MonitorInput tool type. The provider uses neither.
  • 0.3.273: a Stop or SessionStart hook callback that times out now counts as no decision instead of a failure. Adds a usage_report for headless /usage.

Seen with a newer CLI: with Claude Code 2.1.280, a resumed session's result total_cost_usd continues from the earlier turns instead of starting at zero, so the provider's costUsd on a follow-up covers the whole session. Nothing in the repo reads costUsd today.

Verification

  • bash apps/pi-extension/vendor.sh then bun run typecheck: clean.
  • bun test: 4991 pass, 1192 skip, 0 fail (6183 tests across 536 files).
  • bun test packages/ai: 132 pass, 0 fail.
  • Real smoke test with a throwaway script that called ClaudeAgentSDKProvider directly. It used a temporary PLANNOTATOR_DATA_DIR (still empty afterwards) and opened no browser. It created a plan-review session on claude-haiku-4-5 and sent two queries, the second resuming the session. It ran twice:
    • With the SDK's bundled CLI binary: "OK" and then "OK2" streamed back (text_delta → text → result success) with the same session id both times, in about 6.7 s and 3.9 s. The process exited cleanly (exit 0).
    • With the installed claude 2.1.280 via claudeExecutablePath: the same result, in about 2.4 s and 2.2 s, exit 0.
    • supportedModels() answered in both setups: default, opus[1m], claude-fable-5-1[1m], sonnet, haiku.

@backnotprop
backnotprop merged commit 2ba4032 into main Sep 22, 2026
28 checks passed
@backnotprop
backnotprop deleted the chore/bump-claude-agent-sdk branch September 22, 2026 21:05
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