[BUG] /resume does not display custom session names set by /rename
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Description
After renaming a session using /rename, the custom name is only displayed correctly for the current active session in the /resume list.
Previously renamed sessions revert to showing the first message content as the session title instead of the custom name.
## Steps to Reproduce
- Start a new Claude Code session
- Use
/rename my-custom-nameto rename the session - Verify the name is set correctly
- Exit the session (
/exit) - Start a new session, then run
/resume - Observe that the previously renamed session no longer shows "my-custom-name" — it shows the first message content instead
## Expected Behavior
All sessions renamed via /rename should persistently display their custom names in the /resume session list.
## Actual Behavior
Only the most recent (current) session shows the custom name. Older renamed sessions fall back to displaying the first message content as the
title.
## Environment
- Claude Code version: v2.1.72
- Model: Opus 4.6 (1M context)
- Platform: Linux (Ubuntu)
- Shell: bash
What Should Happen?
## Expected Behavior
All sessions renamed via /rename should persistently display their custom names in the /resume session list.
Error Messages/Logs
Steps to Reproduce
## Steps to Reproduce
- Start a new Claude Code session
- Use
/rename my-custom-nameto rename the session - Verify the name is set correctly
- Exit the session (
/exit) - Start a new session, then run
/resume - Observe that the previously renamed session no longer shows "my-custom-name" — it shows the first message content instead
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.72
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗