[BUG] `--no-session-persistence` flag not working

Resolved 💬 2 comments Opened Mar 20, 2026 by flikkr Closed Apr 17, 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?

When I try running Claude with the --no-session-persistence flag, no output is printed to the console. It seems like the CLI is just frozen and unable to produce an output.

> claude --print --no-session-persistence "hey"

What Should Happen?

Claude should output the response to the prompt. When I run the command without the flag, it outputs as expected:

> claude --print "hey" 
Hey! How can I help you?

Error Messages/Logs

Steps to Reproduce

  1. Paste and run the following line in the terminal
claude --print --no-session-persistence "hey"
  1. No output is printed to the console.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.80

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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