Feature request: Allow renaming/titling sessions in the session browser

Resolved 💬 3 comments Opened Apr 3, 2026 by JakesterMt Closed Apr 7, 2026

Summary

When using claude --resume or the session browser in the TUI, sessions are displayed using a truncated version of the first user message. There is no way to give a session a meaningful, custom name. For users with many sessions across multiple projects, finding past work becomes difficult.

Current behavior

  • Session display name = first user message (truncated)
  • Session files (.jsonl) have no title or name field
  • No CLI flag or in-TUI action to rename a session

Requested behavior

Allow users to rename/title sessions, either:

  • Inline in the --resume TUI — e.g., press r to rename the selected session
  • Via a CLI flag — e.g., claude --rename-session <session-id> "My custom title"
  • Or both

Proposed implementation (suggestion, not prescriptive)

Add an optional title field to the JSONL session entry format. When the TUI renders a session name, prefer title if present, otherwise fall back to the first user message. Example entry:

{"type": "session-meta", "title": "Telegram bot build — CherryClaude", "sessionId": "a285b8a2-..."}

Use case

I have 177 session files across 9 project directories. ~83% are short/trivial, but even the 22 substantive ones are hard to distinguish in the TUI because they all show truncated first-message snippets. A rename feature would make it significantly easier to manage and resume meaningful past sessions.

Environment

  • Claude Code CLI (latest)
  • macOS

🤖 Filed via Claude Code

View original on GitHub ↗

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