You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session names from /rename are lost after resuming and continuing work #26240
Session names set via /rename are lost after resuming the session and doing additional work. The custom title only persists if it remains near the end of the .jsonl session file.
Steps to Reproduce
Start a new session
Do some work
Run /rename my-project-name
Exit the session
/resume my-project-name — works fine
Do more work in the resumed session
Exit the session
/resume my-project-name — "Session my-project-name was not found"
Root Cause
/rename appends a {"type":"custom-title","customTitle":"..."} JSON line to the session .jsonl file. When the session is resumed and more work is done, additional lines are written after the custom-title entry. On the next /resume, Claude Code appears to only scan near the end of the file for the custom-title entry, so it can no longer find the name.
Expected Behavior
A session name set via /rename should persist permanently, regardless of how much additional content is written to the session file after renaming. The name should survive multiple resume/work/exit cycles without needing to re-rename.
Current Workaround
Run /rename with the same name again right before every /exit, so the custom-title entry stays at the end of the file.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Feb 17, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Feb 20, 2026
This issue has been automatically closed as a duplicate of #25090.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Feb 27, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.