[BUG] when claude on interactive mode will use 100% cpu(one core) on macOS
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 use claude code doing multi task on different project,
and hang on interactive prompts,
the process will use 100% one core cpu let my macbook air on high temperature (75~80c)
- this issue was keep a long time from v2.0.2x -> v2.0.36(now),
it let me very nervous me when i run tasks and AFK.
What Should Happen?
not use 100% cpu on interactive mode
Error Messages/Logs
Steps to Reproduce
- step 1. use prompts
i'm debug, show a interactive prompts for me (use english)trigger interactive mode
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/0b3cff2e-53dc-4ffc-9165-7a4b4bcd109f" />
- step 2. interactive input show (you can see the cpu usage & temperature is normal)
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/f7aaacd4-c98a-40a3-a2cf-bfdc8423cd85" />
- step 3. the process start use 100% cpu (one core?)
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/1953bc48-7e2b-48d7-9f76-4cf4bda63e79" />
- step 4. the process temperature from 47c -> 70c on 2 min
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/4bc9e7a9-c1a5-4e56-8d05-69a5c96329b1" />
- step 5. after stop
interactive modethe cpu usage & temperature back to normal
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/b78a8233-8a09-4979-918f-61a784bd9aae" />
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/b5b5ac83-5489-4c77-a394-a5c9719f3c7b" />
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.0.36
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
- both iterm2 & macOS terminal have this issue
- others info
MacBook Air M1, 2020
Chip: Apple M1
Memory: 16 GB
macOS: Tahoe 26.0.1
Claude Code:
/doctor
Diagnostics
└ Currently running: npm-local (2.0.36)
└ Path: ~/.nvm/versions/node/v22.17.1/bin/node
└ Invoked: ~/.claude/local/node_modules/.bin/claude
└ Config install method: local
└ Auto-updates: default (true)
└ Search: OK (vendor)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗