[FEATURE] add session_name into hooks common fields

Resolved 💬 6 comments Opened Mar 26, 2026 by jtnord Closed Mar 31, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I often need to work with multiple projects and may leave claude to do some work, notifying me via a hook (and a system toast) when it requires some input.

The issue I have is if I have 10 of these knowing which one sent the input is non obvious.

Various workarounds exist such as obtaining the current working directory (but that is not obvious in a terminal title).

The hook injects the SessionID but there is no (supported) way to get the name of the current session from that.

NB on windows using windows terminal it is not possible to obtain the title of the tab that claude is running in.

Proposed Solution

the Hook json is extended to include session_name

Alternative Solutions

you can parse the json log for the session but this can be rather large and is not so performant.

extending claude to have a flag that prints all sessions IDs and names (/resume will not list in progress sessions just saved ones).

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

I have 10 claude sessions on the go, probably 3 windows with 3 or 4 tabs in each. Possibly some of these windows are on different desktops.

Setup a hook such that whenever claude needs some input (or it is waiting) it sends you a notification.

Your ability to react on that information requires you to know which claude session it came from.

The best thing to use is the session name, this is often added to the name of the tab in the window.

In the case where the session is not named, fallback to the inferred session name (which is set by claude in the title)

Additional Context

currently the toast appears like: which is using the working directory

<img width="584" height="284" alt="Image" src="https://github.com/user-attachments/assets/eee266ca-7654-4ae1-bf94-3f09eed64586" />

that does not make it so obvious when your tab titles are like

<img width="855" height="95" alt="Image" src="https://github.com/user-attachments/assets/47be11e8-6eae-4d82-b57d-48172439b8d6" />

(well probably obvious in this use dummy example, but would be nicer if it could show "check current time").

View original on GitHub ↗

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