[BUG] Can't resume a session created via `--print`
Resolved 💬 3 comments Opened Feb 11, 2026 by imsaravana369 Closed Feb 25, 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?
saravananm$ claude --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "hey dude im gonna call you marcus"
Hey! I'm Marcus now. How can I help you today?
saravananm$ claude --resume --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "whats your name?"
Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
saravananm$ claude --resume --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61
Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
saravananm$ claude --resume --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --fork-session
Error: Session ID f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 is already in use.
What Should Happen?
Ideally we should be able to resume a session which is created via --print right?
Error Messages/Logs
Steps to Reproduce
claude --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "hey dude im gonna call you marcus"
claude --resume --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "whats your name?"
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.39 (Claude Code)
Platform
Other
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
claude --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "hey dude im gonna call you marcus"
claude --resume --session-id f6c5ff44-36b5-4eaa-953c-a85d04cfaa61 --print "whats your name?"This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗