Add session name to status line JSON input

Resolved 💬 3 comments Opened Feb 5, 2026 by danwan Closed Feb 8, 2026

Submitted by: Danny

Feature Request

Please expose the session name in the JSON data passed to custom status line scripts.

Current Behavior

The status line JSON input includes session_id (a technical identifier) but not the human-readable session name.

Requested Behavior

Add a session_name field to the status line JSON input, which would update when /rename is used.

Use Case

When working with multiple terminal windows, it's difficult to know which Claude Code session is in which terminal. Terminal emulators like Ghostty dynamically update window titles based on the running command, so the window name constantly changes and doesn't help identify sessions.

Having the session name in the status bar would:

  • Provide a stable, recognizable identifier across terminal windows
  • Be especially useful when users intentionally rename sessions with /rename to something meaningful for their workflow
  • Help users quickly context-switch between multiple concurrent sessions

View original on GitHub ↗

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