[DOCS] Hooks reference missing `SessionStart` `hookSpecificOutput.sessionTitle` support on startup and resume
Documentation Type
Incorrect/outdated documentation
Documentation Location
https://code.claude.com/docs/en/hooks
Section/Topic
SessionStart decision control
Current Documentation
The SessionStart decision-control table currently lists:
|additionalContext| String added to Claude's context at the start of the conversation, before the first prompt. See [Add context for Claude](#add-context-for-claude) for how the text is delivered and what to put in it | |initialUserMessage| String used as the first user message of the session. Applies in non-interactive mode (-p), where it becomes the first turn even if no prompt is provided. If a prompt is provided, it follows as the next turn. UnlikeadditionalContext, which attaches to an existing turn, this creates the turn | |watchPaths| Array of absolute paths to watch for [FileChanged](#filechanged) events during this session |
The same page later documents sessionTitle only under UserPromptSubmit:
| sessionTitle | Sets the session title. Use to name sessions automatically based on the prompt content |
What's Wrong or Missing?
As of v2.1.152, SessionStart hooks can set the session title with hookSpecificOutput.sessionTitle on both startup and resume, but the SessionStart section still omits that field entirely.
That leaves the reference out of date: readers can discover sessionTitle for UserPromptSubmit, but not for the newly supported SessionStart flow that names sessions automatically when they start or resume.
Suggested Improvement
Add sessionTitle to the SessionStart decision-control table and example JSON, with wording that makes the scope explicit, for example:
| sessionTitle | Sets the session title when the session starts or resumes |
Also mention that this support was added in v2.1.152 so the SessionStart section stays aligned with the changelog.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Context |
|------|---------|
| https://code.claude.com/docs/en/hooks | SessionStart decision control omits hookSpecificOutput.sessionTitle |
| https://code.claude.com/docs/en/changelog | v2.1.152 says: ` SessionStart hooks can now set the session title via hookSpecificOutput.sessionTitle on startup and resume ` |
Total scope: 2 pages affected
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗