Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

Tool dispatch gains a 'detached' result path, and hook-output-mismatch errors now carry reason codes

Tool results get a new 'detached' stop path, and hook output errors now carry machine-readable reason codes

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaTool Validationwhat it touches
KindInternal Changesin v2.1.277,
Under the hood

Tool results get a new 'detached' stop path, and hook output errors now carry machine-readable reason codes

What

Tool result handling now checks for a detached flag; when set, it shows a distinct message and stops early, sometimes reporting 'Execution stopped by hook' if a hook triggered it. Separately, when a PostToolUse hook's updatedToolOutput (a hook's replacement for a tool's result) fails validation or mapping, the error message now includes a machine-readable reason code — schema_invalid issues=..., mapper_undefined, or mapper_throw — alongside the existing human-readable message.

Why

The reason codes make it easier to diagnose exactly why a hook's tool-output rewrite was rejected, rather than only seeing a generic failure message. The detached path gives tool execution a distinct, clearly-labeled way to stop when a hook halts it.

See this entry in the whole of v2.1.277 →