You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(deps): update dependency @anthropic-ai/claude-agent-sdk to v0.3.336 - #71
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
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
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
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
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
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
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
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)
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.
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'
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
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
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
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
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
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()
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
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
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
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
Added wakeup_source to the command_lifecyclestarted 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
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
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
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
Added per-tool permission policies to sdk-type MCP server configs: tools entries with permission_policyalways_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
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
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__
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
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
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
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
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
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
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
renovateBot
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
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.
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
0.3.207→0.3.336Release Notes
anthropics/claude-agent-sdk-typescript (@anthropic-ai/claude-agent-sdk)
v0.3.336Compare Source
configtoPermissionDecisionClassification, so a host can report a permission answer that it made without asking anyonequery()throwing only an exit code, without the error's text, when a background agent reported back after a failed turnv0.3.335Compare Source
Interrupthook event andInterruptHookInputtypeutilization_preciseto theget_usageresponse's rate-limit windows andmodel_scopedrows: the same percentage to one decimal place, when the server sends ittool_use_resultsocontentno longer opens with the list of tools a subagent calledtool_result, or in aPostToolUsehook the call waits for, not fromfile.outputDirafterwardsv0.3.334Compare Source
duration_mstotask_notificationfor shell commands: how long the command ranconsumer_terms_review_in_terminalandconsumer_terms_accept_on_webtostartup_failure_reason, for a start that ends because the updated Consumer Terms wait for an answerold_cell_typetoNotebookEdittool results forreplaceanddeleteoperationstool_use_resultto a subagent's PushNotification result message, and to its WebFetch result message when the fetch got no pageresume_target_not_foundtostartup_failure_reason, for the result Claude Code writes when--resumefinds no conversation to loadSYSTEM_PROMPT_DYNAMIC_BOUNDARYbeing ignored on Bedrock, Agent Platform, Foundry, gateways or with experimental betas off: the text above it gets a cache breakpoint. The text sent is unchangedautoCompactWindowundermodelSettingsSlashCommandrows incommandslists: 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 namev0.3.333Compare Source
mcpServersDeliverydefault to'initialize': apps that start their own Claude Code older than 2.1.326 with stdio, HTTP or SSEmcpServersmust update it or set'argv'descriptiontotool_progressheartbeat messages of Bash, PowerShell, Agent and Monitor calls, so a host that connects mid-call can say what is runninggitOperation.pr.changedto Bash and PowerShell results:falsewhen gh reported that it had nothing to dogetSubagentMessages()dropping tool calls and results when a subagent ran several tools in parallelgetSessionMessageshanging forever on transcripts over 2 GiB, andgetSubagentMessagesandforkSessionon Bunv0.3.332Compare Source
tool_result_meta[].rewritten_by_plugin, set when a mod'ssession.appendhook changed a tool resultPreSkillShellCommandhook event with its input and output typesisSynthetic: trueQuery.setPermissionMode()to resolve with{ mode }, the mode now in effect, orundefined; code that holds its promise asPromise<void>no longer compilesv0.3.331Compare Source
sideload_flags_disabledtostartup_failure_reason, for a start that manageddisableSideloadFlagsrefuses over a flag or launch optionprocessing_attogetCcrEvent(), and fixed browser SDKssequeries dropping the server's queued noticesRetry-Afterwhen a session's event stream is refusedcanUseToolchanged the text throughupdatedInputlistSessions()without a limit opening every transcript at once, which could leave sessions out when the open-file limit was reachedrewindFiles()to refuse under a managedfileCheckpointingEnabled: false, and fixed it deleting files after a restore had failedtask_notification.output_fileto name a foreground subagent's output file, as it already does for background subagentsv0.3.330Compare Source
system/informationalwarning, taggedsettings_not_in_effect, whensettingsor a user, project or local settings file fails validation and is not in effectstopTask()stopped just as it finishedSessionStarthook writes toCLAUDE_ENV_FILEnot reaching the Bash tool with thecontinueoptionfastModeinsettingswhen the model comes fromANTHROPIC_MODELor a settings file; such sessions now bill at the fast mode pricefast_mode_statedescribing the default model instead of the model the session runsidof 1,048,576 or morequery()to fail with an error whensettingsis a JSON string that doesn't parsev0.3.329Compare Source
system/informationalwarning, taggedmanaged_hooks_not_loaded, when hooks in managed settings fail to loadpermissions.workingDirectoriesExcludeto theSettingstype: paths, read only from--settingsand settings the host sends, that the working-directory read and write blocks treat as outsideSpareProcess.claim()ignoringautoCompactWindowfrom the folder's settings or the claim'ssettings--replay-user-messages: the SDK no longer keeps echoes of its own tool results and permission answersreload_pluginsran, in headless and SDK sessionsrewind_conversationremoving history under a message sent right after a model change: the request is now refused with "commands queued", and callers can send it againerroris nowinvalid_request, notauthentication_failed, andapi_error_statusisnull, not 401v0.3.328Compare Source
onFailuretomcp_toolhooks in theSettingstype: with"block", a hook whose call fails blocks the action it guardsCLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME: set it in theenvoption to stopresumeandcontinuefrom running a tool call that a hook deferred; settings can't set itallowManagedModsOnlyoption in host-suppliedmanagedSettings; an admin's managed settings still winagentoption: an inline definition inagentsnow wins over a user, project, plugin or built-in agent of the same name for model, prompt and hooksagentoption: an agent from an agents directory now keeps its system prompt whensystemPromptis not setCLAUDE_CODE_FORK_SUBAGENT=0is setPermissionRequesthook: the rewrite's own permission check now decides the sandbox, so a sandbox-excluded rewrite runs outside it;canUseToolis unchangedresolveSettings()on Windows to re-read registry policy every 6 hours while none is set (was 30 minutes)v0.3.327Compare Source
query(),startup()andprewarm()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.hooks. A Set, generator, plain object,trueor number is now refused.task_startedsending Claude Code's own text, such as a task notification, aspromptwhen a background subagent is woken; such an event now has nopromptcanUseToolfor 30 seconds or moreidof requests to an SDK MCP server back from a string to a numbercreateSdkMcpServer()servers in an agent'smcpServers: ignored with a warning, and other options apply. Move them to top-levelmcpServers, which gives the main session their tools.v0.3.326Compare Source
mcpServersDelivery: 'initialize': sendsmcpServersin the initialize request instead of on Claude Code's command line; needs the bundled Claude Code or newergetSessionInfo()to the/coreentrymessage_uuidtocancel_async_messageresponses, naming the dropped messagesystem/informationalmessage when a tool list has an entry that doesn't look like a complete rulesystem/informationalwarning, taggedmanaged_mcp_arrived, when an administrator'smanaged-mcp.jsonarrives during a session and your own MCP servers stop loadingsetMcpServers(), or reporting that it needs authentication; the call is now refusedresumeSessionAtfailing on an empty reply, and a resumed session losing recent turns after a crash when the previous turn ended with onedescriptionpassed tocanUseTool;inputitself is unchangedSpareProcess.claim(): it no longer waits up to 500 ms for the stdio MCP servers the claim starts, where tool search loads their tools on demandidof requests to an SDK MCP server from a number to a stringrewindFiles()on macOS, Linux and WSL to leave some files untouched when the sandbox is on, and report them as skippedregister_repo_rootcontrol request to refuse some folders it used to acceptmcpServerson 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'v0.3.325archiveSession()andunarchiveSession(), and anarchivedfield on the sessions thatlistSessions()andgetSessionInfo()returnrefuseIfBusytoQuery.reloadPlugins()so a host can have a reload refused while the session is busymanaged_locktoplugin_errorsentries onsystem/init, naming the managedenabledPluginsentry that dropped a plugin copysystem/informationalwarning, taggedhook_no_verdict, when aPreToolUsehook can't run or answer, or times out, without refusing its tool callinvalid_config_fileto theconfig_file_invalidstartup failure result: the broken config file's path and its backup's path as fieldsdisallowedTools,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 andsystem/initsupportedEffortLevelsin model info listing effort levels above the organization's effort cap or themaxEffortLevelsettingsandboxoption: sandboxed Bash commands are no longer auto-approved unlessautoAllowBashIfSandboxed: trueis setapplyFlagSettings()to reject when a value would make Claude Code discard its settings layer, applying nothing and keeping settings from earlier callssuggestionsoncanUseToolfor Bash and Monitor: a list of rules alone is sent only when saving it would allow that commandProposeSkillsInputtype: a proposal can carryedits, andskillMdis optionalv0.3.324v0.3.323Compare Source
machinePolicy.didNotLoad(alpha) toresolveSettings()'s result, which tells a host when a machine policy source may be there and did not loadmatchDeniedModels()(alpha), which tells a host which models adeniedModelslist blocks, by Claude Code's own entry rulestool_progressheartbeat while a turn waits on long-running hooks;tool_nameis the hook event,tool_use_idbeginshook-,parent_tool_use_idmay name no tool callCLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES: set to1to turn off subagent progress summaries even whenagentProgressSummariesistrue(available since 0.3.318)tool_use_resultto a subagent's WebSearch result message when the search did not run or found nothingresolveSettings()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 failedforkSession()withupToMessageId: forking at a compaction summary no longer brings back the messages kept after it, and forking at a compaction boundary keeps the conversation before itgetSessionMessagesleaving out a queued prompt that directly follows a compaction summarycanUseToolsuggestions including a Bash allow rule for commands that write to sensitive paths such as.gitor.claude, where the rule did not stop the next requestinitializeoptions, such as agents and skills, being ignored when aSessionStarthook supplied the first messagesetMcpServers()stayingneeds-authwith no tools when a tool call had tried to reach it in betweeninit.plugin_errorsomitting a plugin that only project settings enable but that isn't installed; it now reports it as not installed, with the install commandinit.plugin_errorsto 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=1waits)supersedeson assistant messages to also be sent after a response whose tool call could not be parsedPreToolUsehook allowed the call: it now goes tocanUseTool, or is refused when there is no callbackv0.3.322Compare Source
v0.3.321Compare Source
canUseToolgetting the app's own PreToolUse hook reason indecisionReasonwhen another hook also askedaskbeing lost when another hook'sdeferfinished first and could not be honoredhooksoption is set toundefinedWarmQuery.query()with a string prompt hanging afterstartup()withresumewhen the resumed session finished a turn of its own before the prompt was sentsetMcpServersclosing a folder's.mcp.jsonor local-scope MCP server when passed an in-process server of the same name, in sessions bound withSpareProcess.claim()reloadSkills(),reloadPlugins()andsystem/initdropping project skills, commands or agents that a worktree lacks after Claude entered itimportSessionToStore()never rejecting, when memory ran out while a transcript was being readresumeandcontinueon the bundled Claude Code binary:initializeis read during boot, so start-up work is less likely to run before your hooks are registeredresultwithnum_turns: 0claude-in-chrometo follow the organization's Claude in Chrome policy: where the policy denies it, the server is not connectedv0.3.319Compare Source
CLAUDE_AUTO_BACKGROUND_TASKS=1and streaming input, an MCP task runs in the background withtask_type"mcp_task"claude_code.session.countmetric countingprewarm()processes that were never claimed; a pre-started process now counts once, whenSpareProcess.claim()succeedssession_writes_lostlisting the wrong session intranscript_session_idsafter/clearin a session resumed from a transcript file outside the projects folderdeleteSession()to reject withENOTEMPTYif the session's folder could not be fully deletedsession_writes_lostto be sent only when the CLI exits 0; a run that ends on an error result now gets only the stderr linev0.3.318Compare Source
credential_expires_atfield to result messages: when the stored claude.ai sign-in in use endsconfig_file_invalidstartup failure reason, reported when a configuration file read at startup isn't valid JSONcancel_queued, and stopped at start-up as a queued message isagentProgressSummaries: 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 firststatusinPushNotificationInputto optionalv0.3.317Compare Source
onFailureto hook matchers: with"block", a hook that throws or returns invalid output blocks the actionsession_writes_lostsystem message, sent after the last result when a full disk or disk quota kept the CLI from saving the session transcript or ~/.claude.jsoninitialize_not_firsttostartup_failure_reason, for a--await-initializelaunch whose first stdin line is not the initialize requesttask.descriptionto the TaskCreate tool'stool_use_result: the description the task was created withlossytoreadFile()utf-8 answers:truewhen decoding replaced bytes that are not valid UTF-8file_unchangedvariant ofFileReadOutputinsdk-tools.d.ts; a repeated Read now returns the file contentsetMcpServersclosing a folder's.mcp.jsonand local-scope MCP servers in sessions started withprewarm()and bound withSpareProcess.claim()v0.3.316permissions.blockReadsExemptPathsto theSettingstype: paths, read only from--settingsand settings the host sends, thatblockReadsOutsideWorkingDirectorieslets through without making them working directoriesv0.3.315v0.3.314Compare Source
sandbox_required_unavailabletostartup_failure_reason, for the result Claude Code writes when a required sandbox cannot runpermissions.blockWritesOutsideWorkingDirectoriesto theSettingstypeprewarm()(alpha) to the@anthropic-ai/claude-agent-sdk/coreentry pointsettingSourcesstill supplying some settings, such as auto mode rules and saved permission consentsv0.3.312Compare Source
autoMode,skipAutoPermissionPrompt,useAutoModeDuringPlanandpermissions.disableAutoModeto theSettingstypeunanswered(skipped,replied_in_chatordismissed) to AskUserQuestion answers' per-questionannotations; send it only whensystem/initlists theask_user_question_unanswered_v1capabilityresolveSettings()returning mistyped managed auto-mode settings, such aspermissions.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 CLIv0.3.311Compare Source
cacheCreationEphemeral5mInputTokensandcacheCreationEphemeral1hInputTokenstoModelUsage, splittingcacheCreationInputTokensby cache lifetimev0.3.310Compare Source
v0.3.309Compare Source
managedSettingsdroppingdisableAllHooks,disableSkillShellExecutionand emptyallowedHttpHookUrls/httpHookAllowedEnvVarslistsextractFromBunfs()to extract the embedded CLI into its own per-user temp directory (claude-agent-sdk-<uid>, orclaude-agent-sdkon Windows) instead of Claude Code's temp rootextractFromBunfs()to reuse an already-extracted file only when its bytes match the embedded binary, replacing it otherwisev0.3.308Compare Source
v0.3.307Compare Source
wakeup_sourceto thecommand_lifecyclestartedframe of a scheduled wakeup or task, andscheduled_forfor a wakeup (capabilitylifecycle_wakeup_source_v1), so a host can tell which one firedsupportedDialogKindsto browser SDKquery(), sent oninitialize; a non-empty list requiresonUserDialogv0.3.306Compare Source
v0.3.305Compare Source
recommendationsandfixto theget_usageresponse's behavior windowssetMcpServersbeing replaced later in the session by a same-named server from the user's own settingsstartup()withinitializeTimeoutMs: nullcounting time spent in SessionStart or Setup hooks against its 60-second limit;nullnow works like leaving the option outstartup()andprewarm()timeout error for a start with no open SessionStart or Setup hook: it lists possible causes and no longer says to check authentication and networkv0.3.304Compare Source
suspendSseStream(query)andresumeSseStream(query)to the browser SDK: close a query's event stream and reopen it later without ending the querygetContextUsage(), and, when the CLI answers on its own stdio, plugin ids, agent and skill file paths, and per-server MCP instruction token sharesstartup()timing out while a SessionStart or Setup command hook was running when noinitializeTimeoutMsis 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 reportedstartup()keeping everyhook_progressmessage of a running SessionStart or Setup hook in memory until it resolved; it now keeps only the newest one for each hookv0.3.303Compare Source
v0.3.302Compare Source
structured_outputwhen the API refused that response; the result is now an error with no payloadpermissionModeto start indefaultmode on third-party providers, with telemetry off or on a fresh install; passpermissionMode: 'auto'to keep auto modesubagent_type: "fork") to be on by default in SDK sessions, as in the terminal;run_in_backgroundis still offered, andCLAUDE_CODE_FORK_SUBAGENT=0turns them offv0.3.301Compare Source
toolsentries withpermission_policyalways_askoralways_deny, applied oninitializeandsetMcpServers()BUILTIN_TOOL_NAMESandLEGACY_TOOL_NAME_ALIASESexports: the public built-in tool names and their earlier names, for checking permission rules and tool settingsaddPluginstoQuery.reloadPlugins()so a host can load more plugin folders into a running sessionsetModel()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 limiterroris nowinvalid_request, notauthentication_failed, andapi_error_statusisnull, not 401mcpServerStatus()to still report a tool's_meta.ui.visibilitywhen the rest of its_meta.uifails validationv0.3.300Compare Source
importSessionToStoreskipping transcript rows that contain a Unicode line or paragraph separator (U+2028, U+2029) on Node 24 and Bunrewind_conversationwithinterrupt_if_runningstopping the running turn before refusing with "unseen later turn"canUseTooloptions carryingsuppressAlwaysAllowRule: truefor connector tools that an organization set to require approval (added in 0.3.292)@anthropic-ai/claude-agent-sdk/browser): 40% smaller to download, by no longer bundling a Nodecryptopolyfillthinking: { type: 'disabled' }andmaxThinkingTokens: 0to run as adaptive thinking on models that can't turn thinking offupdatedInputfrom PreToolUse and PermissionRequest hook callbacks: it is now validated like Claude's own input and unknown keys are dropped;canUseToolis unchangedv0.3.299Compare Source
nextFireAt(epoch ms of the next run) to the CronCreate and CronList tool outputsproperty_orderto theelicitationcontrol request: a form's field names in the order the MCP server listed them, for hosts whose transport keeps no JSON object key orderrewind_conversationanswering "target not found" for a message stopped during its prompt hooks or plugins: until a reply or input follows, it answersrewound: truewith a nullprefillTextconstructorortoStringbeing silently dropped when aprewarm()process is claimed withSpareProcess.claim()origin.bodyon a user message that merges several queued peer messages (from other sessions or agents) carrying only the first message's text; it is now omittedinitialize,mcp_set_serversandclaim_sessionto refuse the reserved MCP server names__proto__,__defineGetter__,__defineSetter__,__lookupGetter__,__lookupSetter__v0.3.296Compare Source
claude_code_versionto theinitializecontrol response so clients know the CLI version before the first turnautoCompactWindowtoAgentDefinition, so a subagent can auto-compact earlier than the main conversation's windowsandboxoption discarding an inlinesettings.sandboxblock: the two now merge, the option's values win, and deny and credential lists from both sides are combinedupdatedPermissionsentries count as a denial, and a malformed list is ignored as a wholev0.3.295Compare Source
overageEnabledtoSDKRateLimitInfo: on usage-limit warnings, whether the account has extra usage turned onmcp_set_serverssometimes keeping an outdated tool list when another server in the same request connected latercitationsin streamed responsestoggleMcpServer()rate_limit_eventwith statusallowed_warningomittingoverageStatus,overageResetsAtandoverageDisabledReason, whichallowedandrejectedevents already carryupdatedPermissionsholds over 4,096 updates, rules and directories to count as a denialtool_result_meta[].non_execution_kindto be absent when a mod withheld the result of a tool that ran without error; it waspermission-rulepasted_contenton user messages to be ignored when it holds over 1,000 entries and blocks in all--flag=value)tool_use_resultfor MCP Apps tools:structuredContentor_metaover 8,388,608 JSON characters is left off, and_meta.uiwith noui://resource no longer lifts the ordinary capstool_use_resultfor 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 muchtool_use_resultfor MCP tools: a result_metaover 1,048,576 JSON characters is left off, except for SDK-server tools; so is text blocks'_metathat totals over 65,536v0.3.294Compare Source
v0.3.293Compare Source
subagent_typetobackground_tasks_changedtask entries, so hosts can name each subagent's type without pairing withtask_startedv0.3.292Compare Source
agent_idto theassistantandusermessages a subagent produces; it equals thetask_idon that subagent's task events and stays the same when the subagent is resumedparent_task_idtotask_startedevents andbackground_tasks_changedentries, naming the subagent task that launched a taskrun_idto background task events andorigin.runIdto task notifications, so a host can tell a resumed task's runs apartsectionsandnotesto theListAgentstool'stool_use_result, so hosts can list agents without parsing its textrecipient_kindto SendMessagetool_useinputs on assistant messages, and their top-levelapproveis now always a boolean, so hosts no longer infer them from the raw inputReadNotificationstool output:read_at, when the tool read the session's queued notifications, andarrived_aton each notification, when it reached the sessionbackground_tasks_changedfor a finishing background task to arrive after that task'stask_updatedandtask_notificationcanUseTooloptions to carrysuppressAlwaysAllowRule: truefor connector tools that an organization set to require approval, so hosts can hide their "always allow" choicev0.3.291Compare Source
v0.3.290Compare Source
offsetfield to the WebFetch tool input for reading on through long pages_meta: when the result has one,tool_use_resultis now{ content, _meta }, as for other MCP toolstoolAliasestools when written with a wildcard (Bash*), a match-all pattern (Bash(**), also on the mapped name), or an input field also indisallowedToolsuuidbeing replayed (--replay-user-messages) while the first copy still waited for its turn; its replay now comes when a turn takes itincludePartialMessagesstreams leaving a message withoutmessage_stopwhen the stream was cut, interrupted or fell back to non-streaminguser_message_uuid,user_message_uuidsandresume_reasonto also be set on a turn a restarted worker resumes from a permission answer or from tool calls still in flightv0.3.289Compare Source
v0.3.288Compare Source
v0.3.287Compare Source
first_text_post_queue_wait_ms,first_text_post_queued_behind) to the success result messageincludePartialMessagesstreams sending a cut-short reply'smessage_stoplate or never, so apps could show the reply as still in progresstoggleMcpServer()disabled the server orsetMcpServers()removed itcommands_changedarriving beforeinit, or twice, at session start: theinitializeresponse now includes commands registered at startuptool_use_resultfor a WebFetch or WebSearch call that steps aside for a priority "now" message to{ detachedToolCall: true }; the result follows in a later turntool_use_resultfor MCP tools:structuredContentover 1,048,576 JSON characters is left off andstructuredContentOmitted: trueset, except for SDK-server and MCP Apps toolsv0.3.286Compare Source
sdk_mcp_manifests_parkedand thesystem/initcapabilitiessdk_mcp_manifestsandsdk_mcp_tools_list_changedtoolsorallowedToolstoggleMcpServer()not disconnecting, and failing to re-enable, an in-process MCP server created withcreateSdkMcpServer(), except one namedclaude-in-chromenowmessage to move running shell commands, agents and MCP calls to the background and join the running turn instead of stopping itpermissionModeto Claude Code, so a settingsdefaultModenow applies and, on third-party providers or with telemetry off, the session starts in auto mode likeclaude -p; passpermissionMode: 'default'for manual approvalsv0.3.285Compare Source
read.title(the artifact's stored title) to the Artifact tool's structured read resultprovider_not_allowedtostartup_failure_reasonandallowedProvidersto theSettingstypeCLAUDE_CODE_FORK_SUBAGENT=1: a subagent's own Agent call now runs in the foreground, so the subagent gets the child's resultgetSessionMessages()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 betweentoggleMcpServer(name, false)leaving the connection open for a server that had not yet connected when the sessConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.