claude --resume does not find sessions renamed with /rename by custom title

Resolved 💬 3 comments Opened Jun 1, 2026 by muddassir-laborie Closed Jul 5, 2026

Bug Description

claude --resume <custom-name> fails to find sessions that were renamed using /rename during a session. Instead of resuming the session directly, it falls through to the interactive session picker with the name pre-filled as a search term — and the picker also returns no results.

Steps to Reproduce

  1. Start a Claude Code session in a project directory
  2. During the session, use /rename to set a custom title (e.g., saml-oauth-browser-refresh-options)
  3. Confirm the rename succeeds: Session renamed to: saml-oauth-browser-refresh-options
  4. Exit the session
  5. From the same project directory, run:

``bash
claude --resume saml-oauth-browser-refresh-options
``

Expected Behavior

The session should resume directly, as documented — claude --resume <name> should resolve sessions by their custom title.

Actual Behavior

The interactive session picker opens with saml-oauth-browser-refresh-options pre-filled as a search term, but no sessions appear in the list. The custom title is not matched.

Screenshot:
The picker shows "Resume Session" with the search field populated but an empty session list.

Investigation

The session file exists and the customTitle is correctly stored in the JSONL:

{"type":"custom-title","customTitle":"saml-oauth-browser-refresh-options","sessionId":"b97a65c3-6b3b-453b-9941-8541a6d1d58a"}

The file is located at the correct project path:

~/.claude/projects/-home-azureuser-IQVIA-Download/b97a65c3-6b3b-453b-9941-8541a6d1d58a.jsonl

The session has 1109 lines of content and is otherwise valid (other sessions in the same project directory work fine).

Workaround: Resuming by session ID works:

claude --resume b97a65c3-6b3b-453b-9941-8541a6d1d58a

Environment

  • Claude Code version: 2.1.42
  • Platform: Linux (Ubuntu, Azure VM)
  • Shell: bash

View original on GitHub ↗

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