Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.301 ·

SessionEnd hook timeout setting applies differently to organization hooks

If your organization defines SessionEnd hooks, CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS is read the organization's way, not straight from your setting

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

SessionEnd hooks are commands that run automatically when a session ends. CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS is an environment variable that sets how long they may run. Claude Code now checks who defined those hooks before using it:

  • If any are organization or managed hooks, the timeout is read the way organization hooks read it.
  • If all are your own, your value is used directly, as before.
  • If Claude Code cannot tell who defined them, it logs an error and reads the timeout the organization's way.
Why

A value you set yourself can no longer shorten or lengthen the time allowed for SessionEnd hooks your organization defines.

Read from
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 Hooks reference. ![Hook lifecycle diagram showing optional Setup feeding into SessionStart, then a per-turn loop containing UserPromptSubmit, UserPromptExpansion for slash commands, the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostT… hooks see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up SessionEnd, on Hooks reference.

See this entry in the whole of v2.1.301 →

Feedback