Claude Code v2.1.335 · 2 Dec 2026
Stopping a session now records where the stop came from
The session.stop command now carries source and via details saying what stopped the session
Under the hood Tier: how much it should matter to you
2 Useful: my rating, 1 to 5
2 Signal: worth watching, 1 to 5
Sessions Area: what it touches
Internal Changes Kind: in v2.1.335, 02 Dec 26
Internal Changes Section of the release
What
The session.stop command, which ends a session, now carries two more details, source and via, beside whether a turn was running. A session is one run of Claude Code from start to finish. Both details are also kept when the command is restored.
Why
Code that reacts to a session stopping, such as hooks or mods, can now tell where the stop came from.
How sure we are
One source agrees One thing we can check says the same as this entry.
Anthropic's release notes agree Added source and via to the session.stop mod event, saying who sent the Stop and how it arrived
See this entry in the whole of v2.1.335 →
2 Dec 2026 · 454 entries, this one is #383.
Use it now20 You'll notice251 Nothing to try yet36 Under the hood147
Open the release →
Names in this entry
setting session.stop A hook run that comes from session.stop and not session.start is now recorded as session.stop instead of its first event
setting source You can now run a hook whenever a directory is added mid-session, including via /add-dir.
Anthropic's note
Upstream's own release notes for v2.1.335 name something this entry names, so the two are probably about the same change. Probably: the pairing is made on a shared name rather than on the words around it.
Added source and via to the session.stop mod event, saying who sent the Stop and how it arrived
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 382 of 454
Remote sessions can now report which skills Claude may start on its own
Under the hood Sessions
In v2.1.335 Internal Changes release-page order
Next → · 384 of 454
Remote sessions can re-send messages that may have been lost
Under the hood Sessions