[BUG] Resuming in non-interactive mode by session name fails with 'invalid UUID' error
Resolved 💬 2 comments Opened Apr 4, 2026 by duci9y Closed Apr 18, 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?
Named sessions cannot be resumed in non-interactive mode
What Should Happen?
The session should resume correctly in non-interactive mode
Error Messages/Logs
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 "test-session" is not a valid UUID
Steps to Reproduce
- Create a named session
``claude -n "test-session" hello``
- Quit with Ctrl-C
- Attempt resuming the session in non-interactive mode
``claude -p -r "test-session" hello``
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.92
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗