Sourced from @anthropic-ai/claude-agent-sdk's releases.
v0.3.162
What's changed
- Refusal error messages now carry
stop_reason: "refusal"andstop_detailson the assistant message and in session transcripts, so SDK consumers can detect refusals without text-matching the error content- Agent SDK sessions on native builds now default to fast embedded
find/grepsearch in Bash, matching the interactive CLI, instead of always registering the dedicated Grep/Glob tools. To keep the dedicated tools (e.g. to intercept searches viacanUseToolor hooks), name them in thetoolsoption or reference them inallowedToolsUpdate
npm install @anthropic-ai/claude-agent-sdk@0.3.162 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.162 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.162 # or bun add @anthropic-ai/claude-agent-sdk@0.3.162v0.3.161
What's changed
- The
initializecontrol request is now idempotent: a secondinitializereturns the same success payload instead of anAlready initializederror.ControlResponsegains an optionalpending_permission_requestsfield, mirroringControlErrorResponseapplyFlagSettingsnow live-appliesagentchanges: switching the active agent (or passingnullto reset) takes effect on the next turn in a running sessionUpdate
npm install @anthropic-ai/claude-agent-sdk@0.3.161 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.161 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.161 # or bun add @anthropic-ai/claude-agent-sdk@0.3.161
Sourced from @anthropic-ai/claude-agent-sdk's changelog.
0.3.162
- Refusal error messages now carry
stop_reason: "refusal"andstop_detailson the assistant message and in session transcripts, so SDK consumers can detect refusals without text-matching the error content- Agent SDK sessions on native builds now default to fast embedded
find/grepsearch in Bash, matching the interactive CLI, instead of always registering the dedicated Grep/Glob tools. To keep the dedicated tools (e.g. to intercept searches viacanUseToolor hooks), name them in thetoolsoption or reference them inallowedTools0.3.161
- The
initializecontrol request is now idempotent: a secondinitializereturns the same success payload instead of anAlready initializederror.ControlResponsegains an optionalpending_permission_requestsfield, mirroringControlErrorResponseapplyFlagSettingsnow live-appliesagentchanges: switching the active agent (or passingnullto reset) takes effect on the next turn in a running session
e9f26a0
chore: Update CHANGELOG.md2f67c51
chore: Update CHANGELOG.md