[BUG] '!yes' crashes claude and fills temporary storage

Resolved 💬 3 comments Opened Jun 6, 2026 by adicarlo Closed Jun 9, 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?

A simple '!yes' is enough to crash claude code and fill up temporary storage.

You probably need some limits on the output from any command? I assume other silly things like '!cat /dev/zero` would show the same issue.

What Should Happen?

Output should be truncated/halted and subshell killed after some reasonable limit (1 MB? context window size?)

Error Messages/Logs

Steps to Reproduce

simple enter '!yes'

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.153

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

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