/resume shows empty list for projects with spaces in path

Resolved 💬 2 comments Opened Jan 21, 2026 by i-m-mll Closed Jan 22, 2026

Problem

The /resume command shows an empty list for a project whose path contains spaces, even though:

  1. Sessions exist and are properly indexed
  2. --continue flag works correctly (continues most recent session)
  3. Global session view (Ctrl+A) shows all sessions including those from this project
  4. The sessions-index.json is valid JSON with correct structure

Environment

  • Claude Code version: 2.1.15
  • Platform: macOS (Darwin 25.2.0)

Reproduction

  1. Have a project at a path with spaces, e.g., /Users/mll/Main/10 Projects/05 Utils/HumbleB
  2. Create some sessions in that project
  3. Run claude (or wrapper that calls claude)
  4. Type /resume
  5. Expected: See list of sessions for this project
  6. Actual: Empty list shown

Investigation

  • Project directory exists at ~/.claude/projects/-Users-mll-Main-10-Projects-05-Utils-HumbleB/
  • sessions-index.json contains 33 valid entries
  • All entries have correct projectPath matching the working directory
  • originalPath field matches the working directory
  • File permissions are correct (0600)
  • No symlinks in the path
  • Running pwd and pwd -P show identical paths

Workaround

Using --continue flag works to continue the most recent session.

Hypothesis

The /resume command may have a bug in path matching/filtering when the path contains spaces, even though the space-to-dash encoding in the directory name is correct.

---
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

View original on GitHub ↗

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