A SessionStart hook is a command you set up to run when a session begins or resumes. Claude Code can now wait for these hooks to finish before it reads your first message at startup. If they are still running when the time limit passes, Claude Code goes ahead without them, and their output is added to a later turn instead.
The wait is skipped when any of these is present:
- a required plugin
- a mod
- plugin hooks Claude Code does not recognise
Two switches that Claude Code reads from Anthropic's servers control it, one for a short wait and one for a full wait. Both are off unless they are switched on remotely, and when they are off there is no wait.
When the wait applies, the first answer can take your SessionStart hook output into account instead of only seeing it a turn later.
tengu_lucky_forest Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.333: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
tengu_zippy_pine Off in both readingsThe flag server returned off for the account this site reads and for the anonymous baseline. A reading of off cannot rule out a rollout these two readings sit outside of.
This account: off · anonymous baseline: off · compiled default in v2.1.333: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.333. It isn't a statement about your account. What a flag value here can and cannot tell you
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.
The first time a `Stop` or `SessionStart` callback times out in the main session, your message stream also includes an [`SDKInformationalMessage`](https://code.claude.com/docs/en/agent-sdk/typescript#sdkinformationalmessage) object saying …agent-sdk/hooks see the edit
* Fixed a plugin's SessionStart hook being skipped in terminal and background sessions when the plugin finished loading after the session started; a mod on that event can now hear it twicechangelog see the edit
Anthropic's documentation has since written up SessionStart, on Claude Code changelog.
New in this build: tengu_lucky_forest