[BUG] Claude Code CLI Crashes In Plan Mode When Typing Long Custom "Type Something" response
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 plan mode, after discussing requirements, the interactive CLI will list out questions and potential options to answer each question. There is almost a last option to let me "Type Something" to give a custom answer to the question. A few times now, I have written very long descriptions and when I get to a certain character length (it seems to be ~800), the tool because unresponsive. I can no longer type, or cycle through the options or questions, or even hit Esc to back out of the question. I have to kill the terminal session and restart.
What Should Happen?
Ideally it should not crash just because I wrote too many words when responding to a question it is asking. But a good alternative would be to have a character limit with a counter i.e 50/100 characters remaining, so that I know if i should defer my lengthy response to the typical way of chatting with the interface.
Error Messages/Logs
There are no errors. It freezes without any indication of anything going wrong.
Steps to Reproduce
Start a discussion around a semi-complex feature implementation in plan mode, so that the CLI triggers the plan mode follow-up question sequence. On the first question, choose the "Type Something" option and type until it freezes (around 796 characters)
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.36
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗