[Bug] --resume flag loses context when --worktree option was used in original session

Resolved 💬 7 comments Opened Feb 25, 2026 by xurtian-lpit Closed Apr 18, 2026

Bug Description
When using claude (code) with the --worktree <name> option, and then at the end exiting claude, it might end with a message like:

Resume this session with:
claude --resume bc9c1dfd-06d9-4ffe-b223-c0f60b9ada2e

When you then copy-paste that command it'll respond with:

$ claude --resume bc9c1dfd-06d9-4ffe-b223-c0f60b9ada2e
No conversation found with session ID: bc9c1dfd-06d9-4ffe-b223-c0f60b9ada2e

Which is not intuitive. It will only work with:

$ claude --worktree <name> --resume bc9c1dfd-06d9-4ffe-b223-c0f60b9ada2e

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.58
  • Feedback ID: 0ecd21c2-66ba-41bf-931f-2a4106b5ae0c

View original on GitHub ↗

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