Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v1.0.85 ·

SessionEnd Hook Event

Entry
JSON All of v1.0.85
EntryKind: in v1.0.85,
ChangesSection of the release

What: New hook event that fires when Claude Code shuts down, enabling cleanup actions How to use:

# Configure in your hooks file to run cleanup on exit:
# Hook will receive: {hook_event_name: "SessionEnd", reason: "logout" | "other"}

Details:

  • Triggers before Claude Code exits
  • Provides shutdown reason (logout vs other termination)
  • Allows external programs to perform cleanup
  • 2-second timeout ensures quick shutdown

See this entry in the whole of v1.0.85 →

Feedback