[BUG] Raw mode is not supported on the current process.stdin `cat <filename> | claude` with several options
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version:
1.0.86 - Operating System:
Sequoia 15.6.1 - Terminal:
iTerm2,iTerm,VS Code Terminal
Bug Description
Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported
Steps to Reproduce
- [x] Run
claudewith file name as the following options - [x] Option 1.
cat ./example/prompt.md | claude - [x] Option 2.
cat ./example/prompt.md | claude --dangerously-skip-permissions - [x] Option 3.
cat ./example/prompt.md | claude --permission-mode acceptEdits - [x] Option 4.
cat ./example/prompt.md | claude --permission-mode bypassPermissions - reference: https://github.com/anthropics/claude-code/issues/404
- [x] Succeeded until the evening of 8/25 (Mon)
- [x] Failed since the evening of 8/25 (Mon)
``bash``
Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported
at handleSetRawMode (file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:807:3853)
at file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:816:259
at BI (file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:332:21530)
at tX (file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:332:41141)
at file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:332:39313
at NF0 (file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:326:8828)
at Immediate.zF0 [as _onImmediate] (file:///opt/homebrew/lib/node_modules/@company/claude-code/node_modules/@anthropic-ai/claude-code/cli.js:326:9247)
at process.processImmediate (node:internal/timers:505:21)
Expected Behavior
- No error
Actual Behavior
- Find the above error
Additional Context
Environment
| Category | Remark |
|---------------------|-------------------------------------|
| Chip | Apple M2 Pro |
| macOS | Sequoia 15.6.1 |
| Tool-1 | iTerm2 |
| Tool-2 | VS Code Terminal |
| Tool-3 | iTerm |
| Claude Code Version | @anthropic-ai/claude-code: 1.0.86 |
Misc.
claude "hello"works
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗