[DOCS] Model Field Doesn't Exist on SessionStartHookInput

Resolved 💬 3 comments Opened Feb 3, 2026 by DavidHanover Closed Mar 5, 2026

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://docs.anthropic.com/en/docs/claude-code/hooks

Section/Topic

SessionStart input

Current Documentation

⏺ The docs at https://docs.anthropic.com/en/docs/claude-code/hooks claim:

"SessionStart hooks receive source, model, and optionally agent_type"

What's Wrong or Missing?

But the TypeScript SDK type definition in those same docs shows:

type SessionStartHookInput = BaseHookInput & {
hook_event_name: 'SessionStart';
source: 'startup' | 'resume' | 'clear' | 'compact';
}

No model field in the type! The docs text and the actual type
definition contradict each other.

Suggested Improvement

Either: Add model to the SessionStartHookInput. Or remove it from the docs.

Impact

High - Prevents users from using a feature

Additional Context

Here is all the input data i'm receiving from the SessionStart hook:
{
"session_id": "8f035809-af61-43e9-a704-492abc2b50cb",
"transcript_path": "/Users/myUser/.claude/proje
cts/-path-to-my-project/8f075802-af6
4-43e9-a704-494abc2b50cf.jsonl",
"cwd": "/Volumes/myVolume/myProject/mySubProject/project_name",
"hook_event_name": "SessionStart",
"source": "startup"
}

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗