Skip to content

fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.336 - #71

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/anthropic-ai-claude-agent-sdk-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/anthropic-ai-claude-agent-sdk-0.x

Conversation

@renovate

@renovate renovate Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@anthropic-ai/claude-agent-sdk 0.3.207 → 0.3.336 age confidence

Release Notes

anthropics/claude-agent-sdk-typescript (@​anthropic-ai/claude-agent-sdk)

v0.3.336

Compare Source

  • Added config to PermissionDecisionClassification, so a host can report a permission answer that it made without asking anyone
  • Fixed SDK-hosted Remote Control sessions losing messages and tool results when an upload was rejected: it is now sent again in smaller parts, leaving out oversized content
  • Fixed query() throwing only an exit code, without the error's text, when a background agent reported back after a failed turn
  • Updated to parity with Claude Code v2.1.336

v0.3.335

Compare Source

  • Added the Interrupt hook event and InterruptHookInput type
  • Added utilization_precise to the get_usage response's rate-limit windows and model_scoped rows: the same percentage to one decimal place, when the server sends it
  • Changed the Agent tool's tool_use_result so content no longer opens with the list of tools a subagent called
  • Changed Read's PDF page results: read the images from tool_result, or in a PostToolUse hook the call waits for, not from file.outputDir afterwards
  • Updated to parity with Claude Code v2.1.335

v0.3.334

Compare Source

  • Added duration_ms to task_notification for shell commands: how long the command ran
  • Added consumer_terms_review_in_terminal and consumer_terms_accept_on_web to startup_failure_reason, for a start that ends because the updated Consumer Terms wait for an answer
  • Added old_cell_type to NotebookEdit tool results for replace and delete operations
  • Added tool_use_result to a subagent's PushNotification result message, and to its WebFetch result message when the fetch got no page
  • Added resume_target_not_found to startup_failure_reason, for the result Claude Code writes when --resume finds no conversation to load
  • Fixed SYSTEM_PROMPT_DYNAMIC_BOUNDARY being ignored on Bedrock, Agent Platform, Foundry, gateways or with experimental betas off: the text above it gets a cache breakpoint. The text sent is unchanged
  • Fixed the browser SDK's WebSocket transport leaving a pending write and a connection behind when closed or aborted before it connected
  • Fixed a tool call to an in-process MCP server ending early when the server sent a request of its own with the same id
  • Changed auto-compact's per-model default to near 400K on most current 1M models (rolling out; on now with third-party providers); to keep 1M, set a model's autoCompactWindow under modelSettings
  • Changed SlashCommand rows in commands lists: a command whose display name runs another command (no row if it is hidden) or can't be sent as a slash command is now listed under its own name
  • Updated to parity with Claude Code v2.1.334

v0.3.333

Compare Source

  • Breaking: Changed the mcpServersDelivery default to 'initialize': apps that start their own Claude Code older than 2.1.326 with stdio, HTTP or SSE mcpServers must update it or set 'argv'
  • Added description to tool_progress heartbeat messages of Bash, PowerShell, Agent and Monitor calls, so a host that connects mid-call can say what is running
  • Added optional gitOperation.pr.changed to Bash and PowerShell results: false when gh reported that it had nothing to do
  • Fixed getSubagentMessages() dropping tool calls and results when a subagent ran several tools in parallel
  • Fixed getSessionMessages hanging forever on transcripts over 2 GiB, and getSubagentMessages and forkSession on Bun
  • Fixed hosts not being told when some permission rules in their answer could not be saved to their settings file
  • Updated to parity with Claude Code v2.1.333

v0.3.332

Compare Source

  • Added tool_result_meta[].rewritten_by_plugin, set when a mod's session.append hook changed a tool result
  • Added the PreSkillShellCommand hook event with its input and output types
  • Fixed auto mode missing mid-turn user messages where feature flags aren't fetched, as on clouds or with telemetry off, from Opus 4.8 on. They count as the user's: mark other text isSynthetic: true
  • Changed Query.setPermissionMode() to resolve with { mode }, the mode now in effect, or undefined; code that holds its promise as Promise<void> no longer compiles
  • Updated to parity with Claude Code v2.1.332

v0.3.331

Compare Source

  • Added sideload_flags_disabled to startup_failure_reason, for a start that managed disableSideloadFlags refuses over a flag or launch option
  • Added processing_at to getCcrEvent(), and fixed browser SDK sse queries dropping the server's queued notices
  • Fixed the browser SDK ignoring Retry-After when a session's event stream is refused
  • Fixed the Edit and Write tool results not reporting that canUseTool changed the text through updatedInput
  • Fixed listSessions() without a limit opening every transcript at once, which could leave sessions out when the open-file limit was reached
  • Changed rewindFiles() to refuse under a managed fileCheckpointingEnabled: false, and fixed it deleting files after a restore had failed
  • Changed task_notification.output_file to name a foreground subagent's output file, as it already does for background subagents
  • Updated to parity with Claude Code v2.1.331

v0.3.330

Compare Source

  • Added a system/informational warning, tagged settings_not_in_effect, when settings or a user, project or local settings file fails validation and is not in effect
  • Fixed Claude still waiting for a background agent that stopTask() stopped just as it finished
  • Fixed variables that a SessionStart hook writes to CLAUDE_ENV_FILE not reaching the Bash tool with the continue option
  • Fixed Google Cloud's Agent Platform sessions ignoring fastMode in settings when the model comes from ANTHROPIC_MODEL or a settings file; such sessions now bill at the fast mode price
  • Fixed the initialize response's fast_mode_state describing the default model instead of the model the session runs
  • Fixed a lost or swapped tool result from an SDK MCP server when a call overlapped a reconnect; while an earlier request is unanswered, a new one can carry an id of 1,048,576 or more
  • Changed the TypeScript SDK's query() to fail with an error when settings is a JSON string that doesn't parse
  • Updated to parity with Claude Code v2.1.330

v0.3.329

Compare Source

  • Added a system/informational warning, tagged managed_hooks_not_loaded, when hooks in managed settings fail to load
  • Added permissions.workingDirectoriesExclude to the Settings type: paths, read only from --settings and settings the host sends, that the working-directory read and write blocks treat as outside
  • Fixed sessions bound with SpareProcess.claim() ignoring autoCompactWindow from the folder's settings or the claim's settings
  • Fixed retained memory when an in-process MCP server does not answer its start-up handshake
  • Fixed memory growth in long sessions that use --replay-user-messages: the SDK no longer keeps echoes of its own tool results and permission answers
  • Fixed an MCP server that a plugin started at launch staying connected after the plugin was disabled or uninstalled and reload_plugins ran, in headless and SDK sessions
  • Fixed rewind_conversation removing history under a message sent right after a model change: the request is now refused with "commands queued", and callers can send it again
  • Improved memory use of idle SDK sessions: after 30 seconds idle, large tool result data that no model request reads is released, except while Remote Control is on
  • Changed the error when the macOS Keychain can't save a refreshed login: error is now invalid_request, not authentication_failed, and api_error_status is null, not 401
  • Updated to parity with Claude Code v2.1.329

v0.3.328

Compare Source

  • Added onFailure to mcp_tool hooks in the Settings type: with "block", a hook whose call fails blocks the action it guards
  • Added CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME: set it in the env option to stop resume and continue from running a tool call that a hook deferred; settings can't set it
  • Added support for the policy plugin's allowManagedModsOnly option in host-supplied managedSettings; an admin's managed settings still win
  • Fixed the agent option: an inline definition in agents now wins over a user, project, plugin or built-in agent of the same name for model, prompt and hooks
  • Fixed the agent option: an agent from an agents directory now keeps its system prompt when systemPrompt is not set
  • Fixed the model saying background agents were still running after an SDK interrupt had stopped them
  • Changed subagents to wait for their own subagents by default when CLAUDE_CODE_FORK_SUBAGENT=0 is set
  • Changed a shell command rewritten by a PermissionRequest hook: the rewrite's own permission check now decides the sandbox, so a sandbox-excluded rewrite runs outside it; canUseTool is unchanged
  • Changed resolveSettings() on Windows to re-read registry policy every 6 hours while none is set (was 30 minutes)
  • Updated to parity with Claude Code v2.1.328

v0.3.327

Compare Source

  • Breaking: Changed query(), startup() and prewarm() to refuse options that can't be sent to Claude Code, such as an agent with a circular or BigInt field. Fix the named option.
  • Breaking: Changed hook options to require arrays: a hook event's value and a matcher's hooks. A Set, generator, plain object, true or number is now refused.
  • Fixed task_started sending Claude Code's own text, such as a task notification, as prompt when a background subagent is woken; such an event now has no prompt
  • Fixed Claude reporting a background agent as still running when its permission request had waited on canUseTool for 30 seconds or more
  • Reverted 0.3.326's fix for a tool result from an SDK MCP server being lost, or delivered to another call, after a reconnect
  • Changed the JSON-RPC id of requests to an SDK MCP server back from a string to a number
  • Changed background retries for most MCP servers on other machines, reached by hostname over https, to go on for about a day after a drop, up from at most about 27 minutes
  • Deprecated createSdkMcpServer() servers in an agent's mcpServers: ignored with a warning, and other options apply. Move them to top-level mcpServers, which gives the main session their tools.
  • Updated to parity with Claude Code v2.1.327

v0.3.326

Compare Source

  • Added mcpServersDelivery: 'initialize': sends mcpServers in the initialize request instead of on Claude Code's command line; needs the bundled Claude Code or newer
  • Added getSessionInfo() to the /core entry
  • Added message_uuid to cancel_async_message responses, naming the dropped message
  • Added a warning on stderr and as a system/informational message when a tool list has an entry that doesn't look like a complete rule
  • Added a system/informational warning, tagged managed_mcp_arrived, when an administrator's managed-mcp.json arrives during a session and your own MCP servers stop loading
  • Fixed a tool call in a running turn reconnecting to an MCP server just removed with setMcpServers(), or reporting that it needs authentication; the call is now refused
  • Fixed resumeSessionAt failing on an empty reply, and a resumed session losing recent turns after a crash when the previous turn ended with one
  • Fixed a tool result from an SDK MCP server being lost, or delivered to another call, when a long call overlapped a reconnect of the SDK MCP servers
  • Fixed a hook request that arrives while the SDK is still starting up being refused instead of answered
  • Improved how secrets are masked in the description passed to canUseTool; input itself is unchanged
  • Improved the first turn after SpareProcess.claim(): it no longer waits up to 500 ms for the stdio MCP servers the claim starts, where tool search loads their tools on demand
  • Changed the JSON-RPC id of requests to an SDK MCP server from a number to a string
  • Changed rewindFiles() on macOS, Linux and WSL to leave some files untouched when the sandbox is on, and report them as skipped
  • Changed the register_repo_root control request to refuse some folders it used to accept
  • Deprecated sending mcpServers on Claude Code's command line (today's default, 'argv'): a future release defaults to 'initialize'; apps running an older Claude Code must update it or set 'argv'
  • Updated to parity with Claude Code v2.1.326

v0.3.325

  • Added archiveSession() and unarchiveSession(), and an archived field on the sessions that listSessions() and getSessionInfo() return
  • Added refuseIfBusy to Query.reloadPlugins() so a host can have a reload refused while the session is busy
  • Added managed_lock to plugin_errors entries on system/init, naming the managed enabledPlugins entry that dropped a plugin copy
  • Added a system/informational warning, tagged hook_no_verdict, when a PreToolUse hook can't run or answer, or times out, without refusing its tool call
  • Added invalid_config_file to the config_file_invalid startup failure result: the broken config file's path and its backup's path as fields
  • Fixed deny rules (disallowedTools, permissions.deny, always_deny) that name an in-process SDK MCP tool or its server, or match it with a glob, leaving it in Claude's tool list and system/init
  • Fixed supportedEffortLevels in model info listing effort levels above the organization's effort cap or the maxEffortLevel setting
  • Changed the sandbox option: sandboxed Bash commands are no longer auto-approved unless autoAllowBashIfSandboxed: true is set
  • Changed read-only git commands in a repository that isn't the working directory's, an additional directory's or a trusted one to go through the permission flow instead of being auto-approved
  • Changed applyFlagSettings() to reject when a value would make Claude Code discard its settings layer, applying nothing and keeping settings from earlier calls
  • Changed suggestions on canUseTool for Bash and Monitor: a list of rules alone is sent only when saving it would allow that command
  • Changed the ProposeSkillsInput type: a proposal can carry edits, and skillMd is optional
  • Updated to parity with Claude Code v2.1.325

v0.3.324

  • Updated to parity with Claude Code v2.1.324

v0.3.323

Compare Source

  • Added machinePolicy.didNotLoad (alpha) to resolveSettings()'s result, which tells a host when a machine policy source may be there and did not load
  • Added matchDeniedModels() (alpha), which tells a host which models a deniedModels list blocks, by Claude Code's own entry rules
  • Added the periodic tool_progress heartbeat while a turn waits on long-running hooks; tool_name is the hook event, tool_use_id begins hook-, parent_tool_use_id may name no tool call
  • Added CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES: set to 1 to turn off subagent progress summaries even when agentProgressSummaries is true (available since 0.3.318)
  • Added tool_use_result to a subagent's WebSearch result message when the search did not run or found nothing
  • Fixed progress notifications from SDK MCP servers being dropped for tool calls that were still running when the set of SDK MCP servers changed
  • Fixed resolveSettings() keeping its first reading of a macOS MDM profile or Windows registry policy for the life of the process: it now re-reads after 30 minutes, and sooner after a read that failed
  • Fixed forkSession() with upToMessageId: forking at a compaction summary no longer brings back the messages kept after it, and forking at a compaction boundary keeps the conversation before it
  • Fixed getSessionMessages leaving out a queued prompt that directly follows a compaction summary
  • Fixed canUseTool suggestions including a Bash allow rule for commands that write to sensitive paths such as .git or .claude, where the rule did not stop the next request
  • Fixed most initialize options, such as agents and skills, being ignored when a SessionStart hook supplied the first message
  • Fixed an MCP server removed and re-added with setMcpServers() staying needs-auth with no tools when a tool call had tried to reach it in between
  • Fixed init.plugin_errors omitting a plugin that only project settings enable but that isn't installed; it now reports it as not installed, with the install command
  • Changed init.plugin_errors to also list load errors of plugins that managed settings enable; a check on it can trip before the background install ends (CLAUDE_CODE_SYNC_PLUGIN_INSTALL=1 waits)
  • Changed supersedes on assistant messages to also be sent after a response whose tool call could not be parsed
  • Changed what happens when a tool's permission check fails with an error after a PreToolUse hook allowed the call: it now goes to canUseTool, or is refused when there is no callback
  • Updated to parity with Claude Code v2.1.323

v0.3.322

Compare Source

  • Updated to parity with Claude Code v2.1.322

v0.3.321

Compare Source

  • Fixed canUseTool getting the app's own PreToolUse hook reason in decisionReason when another hook also asked
  • Fixed a PreToolUse hook's ask being lost when another hook's defer finished first and could not be honored
  • Fixed every hook being dropped when one event in the hooks option is set to undefined
  • Fixed WarmQuery.query() with a string prompt hanging after startup() with resume when the resumed session finished a turn of its own before the prompt was sent
  • Fixed setMcpServers closing a folder's .mcp.json or local-scope MCP server when passed an in-process server of the same name, in sessions bound with SpareProcess.claim()
  • Fixed reloadSkills(), reloadPlugins() and system/init dropping project skills, commands or agents that a worktree lacks after Claude entered it
  • Fixed sessions hanging on save, and importSessionToStore() never rejecting, when memory ran out while a transcript was being read
  • Improved resume and continue on the bundled Claude Code binary: initialize is read during boot, so start-up work is less likely to run before your hooks are registered
  • Changed queued subagent reports in auto mode to share one model call: each keeps its own message and result, and all but the last end in an empty result with num_turns: 0
  • Changed an SDK MCP server named claude-in-chrome to follow the organization's Claude in Chrome policy: where the policy denies it, the server is not connected
  • Updated to parity with Claude Code v2.1.321

v0.3.319

Compare Source

  • Added MCP task support in SDK sessions (not on Bedrock, Vertex or Foundry): with CLAUDE_AUTO_BACKGROUND_TASKS=1 and streaming input, an MCP task runs in the background with task_type "mcp_task"
  • Fixed the OpenTelemetry claude_code.session.count metric counting prewarm() processes that were never claimed; a pre-started process now counts once, when SpareProcess.claim() succeeds
  • Fixed session_writes_lost listing the wrong session in transcript_session_ids after /clear in a session resumed from a transcript file outside the projects folder
  • Improved deleteSession() to reject with ENOTEMPTY if the session's folder could not be fully deleted
  • Changed session_writes_lost to be sent only when the CLI exits 0; a run that ends on an error result now gets only the stderr line
  • Updated to parity with Claude Code v2.1.319

v0.3.318

Compare Source

  • Added an optional credential_expires_at field to result messages: when the stored claude.ai sign-in in use ends
  • Added the config_file_invalid startup failure reason, reported when a configuration file read at startup isn't valid JSON
  • Fixed the interrupt response missing a message held behind a model change: it is now listed, cancelled with cancel_queued, and stopped at start-up as a queued message is
  • Changed agentProgressSummaries: while the subagent waits for a response on a likely-cold prompt cache, a summary can wait up to 5 minutes, and is not sent if the subagent ends first
  • Changed status in PushNotificationInput to optional
  • Updated to parity with Claude Code v2.1.318

v0.3.317

Compare Source

  • Added onFailure to hook matchers: with "block", a hook that throws or returns invalid output blocks the action
  • Added a warning message in the stream when a hook callback fails
  • Added a session_writes_lost system message, sent after the last result when a full disk or disk quota kept the CLI from saving the session transcript or ~/.claude.json
  • Added initialize_not_first to startup_failure_reason, for a --await-initialize launch whose first stdin line is not the initialize request
  • Added task.description to the TaskCreate tool's tool_use_result: the description the task was created with
  • Added lossy to readFile() utf-8 answers: true when decoding replaced bytes that are not valid UTF-8
  • Removed the file_unchanged variant of FileReadOutput in sdk-tools.d.ts; a repeated Read now returns the file content
  • Fixed setMcpServers closing a folder's .mcp.json and local-scope MCP servers in sessions started with prewarm() and bound with SpareProcess.claim()
  • Updated to parity with Claude Code v2.1.317

v0.3.316

  • Added permissions.blockReadsExemptPaths to the Settings type: paths, read only from --settings and settings the host sends, that blockReadsOutsideWorkingDirectories lets through without making them working directories
  • Updated to parity with Claude Code v2.1.316

v0.3.315

  • Updated to parity with Claude Code v2.1.315

v0.3.314

Compare Source

  • Added sandbox_required_unavailable to startup_failure_reason, for the result Claude Code writes when a required sandbox cannot run
  • Added permissions.blockWritesOutsideWorkingDirectories to the Settings type
  • Added prewarm() (alpha) to the @anthropic-ai/claude-agent-sdk/core entry point
  • Fixed a settings file left out of settingSources still supplying some settings, such as auto mode rules and saved permission consents
  • Updated to parity with Claude Code v2.1.314

v0.3.312

Compare Source

  • Added autoMode, skipAutoPermissionPrompt, useAutoModeDuringPlan and permissions.disableAutoMode to the Settings type
  • Added unanswered (skipped, replied_in_chat or dismissed) to AskUserQuestion answers' per-question annotations; send it only when system/init lists the ask_user_question_unanswered_v1 capability
  • Fixed resolveSettings() returning mistyped managed auto-mode settings, such as permissions.disableAutoMode: true, as written instead of reading them as the CLI does; a user or project settings file whose auto-mode keys hold an invalid value is now skipped, as in the CLI
  • Updated to parity with Claude Code v2.1.312

v0.3.311

Compare Source

  • Added cacheCreationEphemeral5mInputTokens and cacheCreationEphemeral1hInputTokens to ModelUsage, splitting cacheCreationInputTokens by cache lifetime
  • Changed background start-up work to wait until the first model request is sent, for about 10 seconds at most, when the first message arrives during start-up
  • Changed the minimum supported Node.js version from 18.0.0 to 18.14.0
  • Updated to parity with Claude Code v2.1.311

v0.3.310

Compare Source

  • Updated to parity with Claude Code v2.1.310

v0.3.309

Compare Source

  • Fixed host-supplied managedSettings dropping disableAllHooks, disableSkillShellExecution and empty allowedHttpHookUrls / httpHookAllowedEnvVars lists
  • Changed extractFromBunfs() to extract the embedded CLI into its own per-user temp directory (claude-agent-sdk-<uid>, or claude-agent-sdk on Windows) instead of Claude Code's temp root
  • Changed extractFromBunfs() to reuse an already-extracted file only when its bytes match the embedded binary, replacing it otherwise
  • Updated to parity with Claude Code v2.1.309

v0.3.308

Compare Source

  • Updated to parity with Claude Code v2.1.308

v0.3.307

Compare Source

  • Added wakeup_source to the command_lifecycle started frame of a scheduled wakeup or task, and scheduled_for for a wakeup (capability lifecycle_wakeup_source_v1), so a host can tell which one fired
  • Added supportedDialogKinds to browser SDK query(), sent on initialize; a non-empty list requires onUserDialog
  • Updated to parity with Claude Code v2.1.307

v0.3.306

Compare Source

  • Updated to parity with Claude Code v2.1.306

v0.3.305

Compare Source

  • Added recommendations and fix to the get_usage response's behavior windows
  • Fixed servers set with setMcpServers being replaced later in the session by a same-named server from the user's own settings
  • Fixed startup() with initializeTimeoutMs: null counting time spent in SessionStart or Setup hooks against its 60-second limit; null now works like leaving the option out
  • Changed the startup() and prewarm() timeout error for a start with no open SessionStart or Setup hook: it lists possible causes and no longer says to check authentication and network
  • Updated to parity with Claude Code v2.1.305

v0.3.304

Compare Source

  • Added suspendSseStream(query) and resumeSseStream(query) to the browser SDK: close a query's event stream and reopen it later without ending the query
  • Added stable row ids to getContextUsage(), and, when the CLI answers on its own stdio, plugin ids, agent and skill file paths, and per-server MCP instruction token shares
  • Fixed startup() timing out while a SessionStart or Setup command hook was running when no initializeTimeoutMs is passed: up to 10 minutes of that time no longer counts toward the 60-second limit, and the timeout error now says what the process reported
  • Fixed startup() keeping every hook_progress message of a running SessionStart or Setup hook in memory until it resolved; it now keeps only the newest one for each hook
  • Updated to parity with Claude Code v2.1.304

v0.3.303

Compare Source

  • Updated to parity with Claude Code v2.1.303

v0.3.302

Compare Source

  • Fixed structured output results delivering a response's output as structured_output when the API refused that response; the result is now an error with no payload
  • Changed an omitted permissionMode to start in default mode on third-party providers, with telemetry off or on a fresh install; pass permissionMode: 'auto' to keep auto mode
  • Changed fork subagents (subagent_type: "fork") to be on by default in SDK sessions, as in the terminal; run_in_background is still offered, and CLAUDE_CODE_FORK_SUBAGENT=0 turns them off
  • Updated to parity with Claude Code v2.1.302

v0.3.301

Compare Source

  • Added per-tool permission policies to sdk-type MCP server configs: tools entries with permission_policy always_ask or always_deny, applied on initialize and setMcpServers()
  • Added BUILTIN_TOOL_NAMES and LEGACY_TOOL_NAME_ALIASES exports: the public built-in tool names and their earlier names, for checking permission rules and tool settings
  • Added addPlugins to Query.reloadPlugins() so a host can load more plugin folders into a running session
  • Fixed setModel() with a model ID failing while the account is at its five-hour or weekly usage limit; the model now applies and the next message reports the limit
  • Changed the error when a full disk keeps the login from being refreshed: error is now invalid_request, not authentication_failed, and api_error_status is null, not 401
  • Changed mcpServerStatus() to still report a tool's _meta.ui.visibility when the rest of its _meta.ui fails validation
  • Updated to parity with Claude Code v2.1.301

v0.3.300

Compare Source

  • Fixed importSessionToStore skipping transcript rows that contain a Unicode line or paragraph separator (U+2028, U+2029) on Node 24 and Bun
  • Fixed a background subagent's final report in auto mode being joined into one turn with another message from the same subagent; the report now always runs as its own turn
  • Fixed rewind_conversation with interrupt_if_running stopping the running turn before refusing with "unseen later turn"
  • Reverted canUseTool options carrying suppressAlwaysAllowRule: true for connector tools that an organization set to require approval (added in 0.3.292)
  • Improved the browser SDK bundle (@anthropic-ai/claude-agent-sdk/browser): 40% smaller to download, by no longer bundling a Node crypto polyfill
  • Changed thinking: { type: 'disabled' } and maxThinkingTokens: 0 to run as adaptive thinking on models that can't turn thinking off
  • Changed updatedInput from PreToolUse and PermissionRequest hook callbacks: it is now validated like Claude's own input and unknown keys are dropped; canUseTool is unchanged
  • Updated to parity with Claude Code v2.1.300

v0.3.299

Compare Source

  • Added an optional nextFireAt (epoch ms of the next run) to the CronCreate and CronList tool outputs
  • Added property_order to the elicitation control request: a form's field names in the order the MCP server listed them, for hosts whose transport keeps no JSON object key order
  • Fixed rewind_conversation answering "target not found" for a message stopped during its prompt hooks or plugins: until a reply or input follows, it answers rewound: true with a null prefillText
  • Fixed in-process SDK MCP servers named constructor or toString being silently dropped when a prewarm() process is claimed with SpareProcess.claim()
  • Fixed queued user messages with content-block arrays running together without a line break when merged into one turn
  • Fixed origin.body on a user message that merges several queued peer messages (from other sessions or agents) carrying only the first message's text; it is now omitted
  • Changed initialize, mcp_set_servers and claim_session to refuse the reserved MCP server names __proto__, __defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__
  • Updated to parity with Claude Code v2.1.299

v0.3.296

Compare Source

  • Added claude_code_version to the initialize control response so clients know the CLI version before the first turn
  • Added autoCompactWindow to AgentDefinition, so a subagent can auto-compact earlier than the main conversation's window
  • Fixed the sandbox option discarding an inline settings.sandbox block: the two now merge, the option's values win, and deny and credential lists from both sides are combined
  • Changed the default limit on MCP tool descriptions sent up front and on MCP server instructions, in-process SDK servers included, from 2,048 to 4,096 characters
  • Changed permission answers that arrive after a restart to be parsed like live ones: over 4,096 updatedPermissions entries count as a denial, and a malformed list is ignored as a whole
  • Updated to parity with Claude Code v2.1.296

v0.3.295

Compare Source

  • Added overageEnabled to SDKRateLimitInfo: on usage-limit warnings, whether the account has extra usage turned on
  • Fixed an MCP server added with mcp_set_servers sometimes keeping an outdated tool list when another server in the same request connected later
  • Fixed assistant text blocks losing their citations in streamed responses
  • Fixed Claude being told "disabled by the user" about an in-process MCP server that was switched off with toggleMcpServer()
  • Fixed rate_limit_event with status allowed_warning omitting overageStatus, overageResetsAt and overageDisabledReason, which allowed and rejected events already carry
  • Changed MCP tool descriptions the model loads through tool search, including those from in-process SDK servers, to be cut at 16,384 characters instead of 2,048
  • Changed a permission answer whose updatedPermissions holds over 4,096 updates, rules and directories to count as a denial
  • Changed tool_result_meta[].non_execution_kind to be absent when a mod withheld the result of a tool that ran without error; it was permission-rule
  • Changed pasted_content on user messages to be ignored when it holds over 1,000 entries and blocks in all
  • Changed how the SDK passes option values to Claude Code: the values of its named options are now sent in the same argument as their flag (--flag=value)
  • Changed tool_use_result for MCP Apps tools: structuredContent or _meta over 8,388,608 JSON characters is left off, and _meta.ui with no ui:// resource no longer lifts the ordinary caps
  • Changed tool_use_result for MCP tools: when a long result is saved to a file, or cut because it could not be, the text kept past 500,000 characters is dropped, with a note of how much
  • Changed tool_use_result for MCP tools: a result _meta over 1,048,576 JSON characters is left off, except for SDK-server tools; so is text blocks' _meta that totals over 65,536
  • Updated to parity with Claude Code v2.1.295

v0.3.294

Compare Source

  • Updated to parity with Claude Code v2.1.294

v0.3.293

Compare Source

  • Added an optional subagent_type to background_tasks_changed task entries, so hosts can name each subagent's type without pairing with task_started
  • Updated to parity with Claude Code v2.1.293

v0.3.292

Compare Source

  • Added agent_id to the assistant and user messages a subagent produces; it equals the task_id on that subagent's task events and stays the same when the subagent is resumed
  • Added parent_task_id to task_started events and background_tasks_changed entries, naming the subagent task that launched a task
  • Added run_id to background task events and origin.runId to task notifications, so a host can tell a resumed task's runs apart
  • Added typed sections and notes to the ListAgents tool's tool_use_result, so hosts can list agents without parsing its text
  • Added recipient_kind to SendMessage tool_use inputs on assistant messages, and their top-level approve is now always a boolean, so hosts no longer infer them from the raw input
  • Added two optional fields to the ReadNotifications tool output: read_at, when the tool read the session's queued notifications, and arrived_at on each notification, when it reached the session
  • Fixed subagents with a declared auto permission mode having their tool calls decided by the auto-mode classifier instead of the canUseTool callback when auto mode is unavailable
  • Changed background_tasks_changed for a finishing background task to arrive after that task's task_updated and task_notification
  • Changed canUseTool options to carry suppressAlwaysAllowRule: true for connector tools that an organization set to require approval, so hosts can hide their "always allow" choice
  • Updated to parity with Claude Code v2.1.292

v0.3.291

Compare Source

  • Updated to parity with Claude Code v2.1.291

v0.3.290

Compare Source

  • Added an optional offset field to the WebFetch tool input for reading on through long pages
  • Fixed failed Claude in Chrome tool calls dropping the result's _meta: when the result has one, tool_use_result is now { content, _meta }, as for other MCP tools
  • Fixed deny and ask rules missing toolAliases tools when written with a wildcard (Bash*), a match-all pattern (Bash(**), also on the mapped name), or an input field also in disallowedTools
  • Fixed a user message sent again under the same uuid being replayed (--replay-user-messages) while the first copy still waited for its turn; its replay now comes when a turn takes it
  • Fixed includePartialMessages streams leaving a message without message_stop when the stream was cut, interrupted or fell back to non-streaming
  • Changed user_message_uuid, user_message_uuids and resume_reason to also be set on a turn a restarted worker resumes from a permission answer or from tool calls still in flight
  • Updated to parity with Claude Code v2.1.290

v0.3.289

Compare Source

  • Updated to parity with Claude Code v2.1.289

v0.3.288

Compare Source

  • Updated to parity with Claude Code v2.1.288

v0.3.287

Compare Source

  • Added optional remote-session latency fields (first_text_post_queue_wait_ms, first_text_post_queued_behind) to the success result message
  • Fixed includePartialMessages streams sending a cut-short reply's message_stop late or never, so apps could show the reply as still in progress
  • Fixed the error for a revoked claude.ai login, which now reads "Failed to authenticate: OAuth token revoked" instead of a generic or "does not have access" message
  • Fixed a tool call to an in-process MCP server being left waiting after toggleMcpServer() disabled the server or setMcpServers() removed it
  • Fixed commands_changed arriving before init, or twice, at session start: the initialize response now includes commands registered at startup
  • Changed tool_use_result for a WebFetch or WebSearch call that steps aside for a priority "now" message to { detachedToolCall: true }; the result follows in a later turn
  • Changed tool_use_result for MCP tools: structuredContent over 1,048,576 JSON characters is left off and structuredContentOmitted: true set, except for SDK-server and MCP Apps tools
  • Updated to parity with Claude Code v2.1.287

v0.3.286

Compare Source

  • Added the initialize response field sdk_mcp_manifests_parked and the system/init capabilities sdk_mcp_manifests and sdk_mcp_tools_list_changed
  • Fixed foreground subagents sometimes not receiving the task-tracking tools listed in tools or allowedTools
  • Fixed an SDK MCP server listing no tools when one tool's schema cannot be converted to JSON Schema; that tool is now left out with a warning naming it
  • Fixed toggleMcpServer() not disconnecting, and failing to re-enable, an in-process MCP server created with createSdkMcpServer(), except one named claude-in-chrome
  • Changed a person's priority now message to move running shell commands, agents and MCP calls to the background and join the running turn instead of stopping it
  • Changed the TypeScript Agent SDK to leave an omitted permissionMode to Claude Code, so a settings defaultMode now applies and, on third-party providers or with telemetry off, the session starts in auto mode like claude -p; pass permissionMode: 'default' for manual approvals
  • Updated to parity with Claude Code v2.1.286

v0.3.285

Compare Source

  • Added an optional read.title (the artifact's stored title) to the Artifact tool's structured read result
  • Added provider_not_allowed to startup_failure_reason and allowedProviders to the Settings type
  • Fixed sessions with CLAUDE_CODE_FORK_SUBAGENT=1: a subagent's own Agent call now runs in the foreground, so the subagent gets the child's result
  • Fixed getSessionMessages() leaving out a message sent while Claude was working when the process stopped before the reply, or when another prompt followed it with no reply in between
  • Fixed toggleMcpServer(name, false) leaving the connection open for a server that had not yet connected when the sess

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 2883aa5 to 7ec82d5 Compare July 21, 2026 23:38
@codecov

codecov Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch 10 times, most recently from 1ac592b to 439be53 Compare July 22, 2026 19:40
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.217 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.218 Jul 22, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch 2 times, most recently from 727c105 to d04362d Compare July 23, 2026 06:34
@mergify

mergify Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch 14 times, most recently from 0610874 to 8240236 Compare July 24, 2026 07:08
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 2324e24 to 57789e3 Compare August 7, 2026 23:16
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.222 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.224 Aug 7, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.224 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.226 Aug 8, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch 2 times, most recently from 850b973 to bc53712 Compare August 11, 2026 04:02
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.226 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.227 Aug 11, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from bc53712 to 2c0d2b9 Compare August 16, 2026 08:04
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.227 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.233 Aug 16, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 2c0d2b9 to 85e4ce7 Compare August 21, 2026 03:49
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.233 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.238 Aug 21, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 85e4ce7 to 9ad367e Compare August 29, 2026 06:28
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.238 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.251 Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 9ad367e to 2cf5c77 Compare September 4, 2026 20:06
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.251 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.260 Sep 4, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 2cf5c77 to dfd34b5 Compare September 6, 2026 07:44
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.260 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.263 Sep 6, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from dfd34b5 to 1484a1f Compare September 12, 2026 20:12
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.263 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.270 Sep 12, 2026
@coderabbitai

coderabbitai Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0f2b2b68-b22d-4934-b2b1-32b1715b95e9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 1484a1f to ba8fad1 Compare September 20, 2026 01:01
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.270 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.278 Sep 20, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from ba8fad1 to 396b56a Compare October 2, 2026 19:53
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.278 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.287 Oct 2, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from 396b56a to f0188c9 Compare October 3, 2026 19:15
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.287 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.288 Oct 3, 2026
@renovate
renovate Bot force-pushed the renovate/anthropic-ai-claude-agent-sdk-0.x branch from f0188c9 to 6407e15 Compare October 4, 2026 15:49
@renovate renovate Bot changed the title fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.288 fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.289 Oct 4, 2026
@mergify

mergify Bot commented Nov 15, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

@mergify

mergify Bot commented Nov 21, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

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.

0 participants