Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

SessionEnd hook failures can now go to the debug log instead of the screen

Under some conditions a failing SessionEnd hook's output now goes to the debug log rather than the error output

You'll notice Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release

Unclear The condition that sends the failure to the debug log is not known.

What

A SessionEnd hook is a command Claude Code runs when a session ends. When one fails, its output used to be written to the error output every time. Under a certain condition it now goes to the debug log, a file of detailed records, instead.

Why

Less error text appears when Claude Code exits. If a SessionEnd hook seems to fail silently, look in the debug log.

Read from
Names in the bundleSessionEnd
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up SessionEnd, on Intercept and control agent behavior with hooks. Claude Code runs each callback with a timeout, which you set in seconds with the `timeout` field on its `HookMatcher`. When you don't set one, Claude Code uses the event's default: 600 seconds for most events, 30 seconds for `UserPromptSub… agent-sdk/hooks see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe condition that sends the failure to the debug log is not known.
Anthropic's documentation agreesAnthropic's documentation has since written up SessionEnd, on Intercept and control agent behavior with hooks.

See this entry in the whole of v2.1.334 →

Feedback