[BUG] /resume slash command only shows named sessions, hides all unnamed sessions

Resolved 💬 2 comments Opened Mar 2, 2026 by kshitij2605 Closed Mar 2, 2026

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?

The /resume slash command (used inside an active Claude Code session) only displays sessions
that have been renamed via /rename. All unnamed sessions are completely hidden from the
picker.

In contrast, claude --resume (CLI flag) correctly shows all sessions for the current project
directory, regardless of whether they have a name.

This means if you /rename one session out of many, /resume will only show that single named
session — making it impossible to resume any of the unnamed ones from within Claude Code.

Session data is stored as .jsonl files in ~/.claude/projects/<project-path>/. Each session
gets its own file named <session-uuid>.jsonl. All session files are present on disk — the
data is not lost.

When /rename is used, it appends two metadata entries to the current session's JSONL file:

  • {"type":"custom-title","customTitle":"<name>",...}
  • {"type":"agent-name","agentName":"<name>",...}

Sessions that were never renamed have no custom-title or agent-name entries in their JSONL.

The /resume picker appears to filter on these metadata entries, only returning sessions that
have a custom-title. Since all the JSONL files exist in the same directory, the filtering
logic is unnecessarily excluding valid sessions that simply lack a name.

In my project directory, there are 14 session files. Only 1 has a custom-title. /resume shows
exactly 1 session. claude --resume shows all 14. All were recent sessions within a few hours so there is no issue regarding any auto deletion setting.

What Should Happen?

/resume command should show all the sessions of claude code in the current directory.

Error Messages/Logs

Steps to Reproduce

  1. cd into any git repo / project directory
  2. Start Claude Code: claude
  3. Send a message so the session has content.
  4. Run /rename my-session to name the current session, then exit.
  5. Start Claude Code again: claude
  6. Send a few messages (do NOT rename this session), then exit
  7. Start Claude Code again: claude
  8. Type /resume — only "my-session" appears. The unnamed session from step 6 is missing.
  9. Exit and run claude --resume from terminal — both sessions appear correctly.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.63

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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