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.334,
ImprovementsSection of the release
Unclear It is not clear what turns on the option that makes resumed sessions report "startup".
What
A SessionStart hook is a command you set up to run when a session begins or resumes. It receives a source value saying how the session started. For a resumed session that value was always "resume" or "fork".
When a new option is set, Claude Code now gives these hooks the source "startup" instead.
Why
A hook that checks the source value may see "startup" for a session that was actually resumed.
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 sinceAnthropic's documentation has since written up SessionStart, on Hooks reference.When you start an interactive session, resume a conversation at launch with `--continue` or `--resume`, or run `/clear`, you can type while SessionStart hooks run. A conversation you resumed at launch appears without waiting for the hooks.…hookssee 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 doubtIt is not clear what turns on the option that makes resumed sessions report "startup".
Anthropic's documentation agreesAnthropic's documentation has since written up SessionStart, on Hooks reference.