r/ClaudeCode • • 5d ago

Bug / Issue SessionEnd hook

Can anyone clarify when the SessionEnd hook is fired when using Claude Code desktop app?
I understand how it would apply when using the CLI, but one never actually exit sessions in the desktop app, you just open a new one leaving the old one available whenever. The Claude documentation is not very helpful on this topic.

1 Upvotes

3 comments sorted by

•

u/AutoModerator 5d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Fuckreddit6973 5d ago

Quitting the app, logging out, or deleting/archiving the session.

Same as in CLI assuming you leave the tab open and don't /clear.

1

u/mtokarev 1h ago

from my experiments it has never fired in the desktop app (macOS). I just tried again:
- deleted a project with open sessions inside - no hook;

- quit the app completely (from background) - also nothing.