[BUG] --resume picker does not show session when project path contains underscores

Resolved 💬 3 comments Opened Apr 30, 2026 by guoche21 Closed May 7, 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?

When the working directory path contains underscores (e.g., D:\Desktop\workspace\xx_xx_xx), Claude Code encodes the path into the ~/.claude/projects/ folder name by converting underscores to hyphens (result: D--Desktop-xx-xx-xx.

The session file exists on disk and is valid, but claude --resume interactive picker does not list it.

Workaround: claude -r <session-id> works correctly.

Now I'm using claude --resume with the sessionId command to continue my work, but I need to go into the folder to get the session ID, which is very inconvenient.

dir info

Elliot@local /d/Desktop/workspace/feat_elliot_buy_esignbao_20260430 (feat_elliot_buy_esignbao_20260430)
$ pwd
/d/Desktop/workspace/feat_elliot_buy_esignbao_20260430

Elliot@local /d/Desktop/workspace/feat_elliot_buy_esignbao_20260430 (feat_elliot_buy_esignbao_20260430)
$ ll ~/.claude/projects/ | grep esignbao
drwxr-xr-x 1 Elliot 197121 0  4月 30 15:53 D--Desktop-workspace-feat-elliot-buy-esignbao-20260430/

What Should Happen?

Session appears in the picker regardless of underscores in path.

Error Messages/Logs

Steps to Reproduce

  1. cd into a directory with underscores in the path
  2. Start a Claude Code session, have a conversation
  3. Exit and run claude --resume
  4. The session does not appear in the picker

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.119

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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