[BUG] Claude Code enters infinite loop on 'clear screen' command and ignores Ctrl+C
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?
In claude terminal I wrote: "clear screen" and then it started like clearing screen but showing again the last information, did not accept CTRL-C so I had to restart again the msdos command . when I try to run claude again it showed:
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module 'C:\Users\loren\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\cli.js'
at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.14.0
so I had to reinstall it
npm uninstall -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code
What Should Happen?
I was expecting to clear the screen
Error Messages/Logs
Steps to Reproduce
write clear screen in the claude terminal
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Sonnet 4.5 · Claude Pro
Claude Code Version
Sonnet 4.5 · Claude Pro
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
<img width="911" height="501" alt="Image" src="https://github.com/user-attachments/assets/a4111d62-ef91-4d72-8ecc-b216ab628c4d" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗