[BUG] --resume + --print does not accept a /renamed id
Resolved 💬 4 comments Opened Mar 14, 2026 by dmd Closed Apr 12, 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?
--resume with a /renamed session id works, but not when used with --print
What Should Happen?
You should be able to say claude --print --resume human-readable-session-name
Error Messages/Logs
Steps to Reproduce
- In Claude Code, say
/rename my-session-name - Exit
- At the command prompt:
❯ /rename my-session-name
⎿ Session renamed to: my-session-name
Resume this session with:
claude --resume "my-session-name"
$ claude --print --resume my-session-name "test"
Error: --resume requires a valid session ID when used with --print. Usage: claude -p --resume <session-id>. Session IDs must be in UUID format (e.g., 550e8400-e29b-41d4-a716-446655440000). Provided value "my-session-name" is not a valid UUID
$
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗