[BUG] Question Clarification Tool Makes Claude Code Stuck sometimes
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?
Sometimes Claude Code gets unresponsive recently.
I couldn't identify the exact issue , but I have suspected smoking gun.
E.g. moment ago, I was answering questions in new Interactive Questions Clarification Tool
https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2021
and I was using last option and writing as answer something more elaborate like "you may want to research XYZ using agent A ..." , IDK if this tool started launching this in background when I was in process of answering , but on 3rd/4th question it become unresponsive, and process was often jumping to 99% CPU and many GiB of RAM... it was not gracefully getting shut down after SIGTERM, so I finally SIGKILL it. After claude --resume I noticed in log that it was Web Searching something so that's what made me suspicious if it was launching things in background and got stuck (e.g. race condition, if my answer to second question also triggered research as answer to first question), as it's not open source, I can only guess... If there is good way how to anonymize data from claude logs happy in future to preprocess and send them . Maybe also fact that I run few sessions in few terminals matters. Hopefully this bug report is helpful.
(environment wise it was running in TMUX so I detached, and reattached to make sure that it is not konsole problem).
What Should Happen?
It should let me finish answering all clarification questions in new interactive questions clarification tool https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2021 and submit.
Error Messages/Logs
I had to SIGKILL it.
Steps to Reproduce
Flaky.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Like few weeks ago claude-code felt more stable, less flaky, and I have impression that I had to start SIGKILL is more often in recent weeks.
Claude Code Version
2.0.22
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗