Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

New session.stop event for hooks

A session.stop event was added, and hooks tied to session end are now attributed to it, along with some smaller internal limits

Group of 2 Under the hood Internal Changes
JSON All of v2.1.326
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
Internal ChangesKind: in v2.1.326,
Internal ChangesSection of the release

What

A hook is code that runs when something happens in a session, a session being one run of Claude Code. A new session.stop event was added.

  • When the events a hook came from include session.stop but not session.start, the hook is now attributed to session.stop. Before, it was attributed to the first event in its list.

Other changes shipped alongside it:

  • New limits: unprovenCallerMs of 10,000 (10 seconds) and unprovenCallersMax of 256.
  • A hasEnded value is now passed to the display that shows a tool's progress.
  • Adding directories now calls a new sync function, $wn.

Why

Hooks that run when a session ends are now reported under the event they actually belong to, instead of being labelled with an unrelated earlier event. The other pieces are internal and do not need anything from you.

Read from
Names in the bundlesession.stopsession.start
What the documentation says
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 session.stop, on Mods reference. | `session.stop` | The user stops Claude, such as with Esc during a turn. Requires Claude Code v2.1.326 or later. | `next(e)` | plugins/mods/reference see the edit
Confirmed since Anthropic's documentation has since written up session.start, on Use the mods API. Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](https://code.claude.com/docs/en/plugins/mods/reference.md#li… plugins/mods/api 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 session.start, on Use the mods API.

See this entry in the whole of v2.1.326 →

Feedback