{"version":"2.1.334","anchor":"resume-sessions-can-start-with-the-startup-hook-source","canonical_anchor":"resume-sessions-can-start-with-the-startup-hook-source","heading":"Resumed sessions can report \"startup\" to SessionStart hooks","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/resume-sessions-can-start-with-the-startup-hook-source","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Resumed sessions can report \"startup\" to SessionStart hooks\n\nWith a new option set, `SessionStart` hooks in a resumed session receive the source \"startup\" instead of \"resume\"\n\n**Unclear.** It is not clear what turns on the option that makes resumed sessions report \"startup\".\n\n**What**\n\nA `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\".\n\nWhen a new option is set, Claude Code now gives these hooks the source \"startup\" instead.\n\n**Why**\n\nA hook that checks the source value may see \"startup\" for a session that was actually resumed.\n\n- Area: Hooks\n- Names: `SessionStart`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}