Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.265 ·

Permission-behavior helpers now require strict string/boolean typing

Permission decisions from hooks now require exact string and boolean types instead of loose truthy checks

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaHookswhat it touches
KindInternal Changesin v2.1.265,
Under the hood

Permission decisions from hooks now require exact string and boolean types instead of loose truthy checks

What

Hooks (custom scripts that can intercept and influence Claude Code's actions) can return values that tell Claude Code to allow, ask about, or deny an action. The code that builds these deny/ask/allow decisions now checks values more strictly: it requires typeof e === "string", typeof n === "string", and r === true explicitly, rather than accepting any value that happens to be truthy.

Why

This tightens how hook output is validated, so a hook returning an unexpected value type (like a number or an object) won't be silently treated as if it meant "allow" or "deny." It makes permission decisions driven by hooks more predictable.

See this entry in the whole of v2.1.265 →

Feedback