[BUG] Claude Code writes seemingly unrelated text into input component while working
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.95
- Operating System: Fedora Linux 42 (Workstation Edition)
- Terminal: Terminal App
Bug Description
Started a new project and worked through some setup within a single CC session. At a seemingly random point, CC started to write text into the input line while working (screenshot below). The text is unrelated to the work CC is performing. It prevents me from typing anything in, cycling the mode (normal, accept edits, plan), or using ctrl+c to exit CC. If I want to stop CC, I have to kill the terminal. The only time I can enter any sort of input is if CC prompts me for a permission input.
CC seems to continue working on whatever the most recent task is behind the scenes.
If I do kill the terminal and restart CC, I can enter a prompt (e.g. "Please continue working"), but it immediately starts the behavior again as soon as it begins working.
Interestingly, this only happens in a single project and seems isolated to that project. I usually have two or three CC sessions going in different projects or worktrees at the same time, and it only occurs in the same single project folder.
I tried removing all agents and even the entire ".claude" folder from the affected project, but the behavior persisted.
The only thing I've found to solve this issue is to copy the entire project contents (including .claude, .git, and .venv) to a new folder. I have yet to see the behavior resurface but will add an update if I discover otherwise. The new folder has identical permissions as the old and is within the same parent folder.
Steps to Reproduce
Unfortunately, I haven't been able to reproduce in any other projects or even the copied project.
Expected Behavior
Input line should stay empty and clear for user input while CC is working.
Actual Behavior
CC begins filling the input line with text as it works, preventing any user input within the input component or other means (ctrl+c, esc, etc.)
Additional Context
There is a post on Reddit from a different user with the same issue, except it appears they experienced in within the VSCode or Cursor terminal: https://www.reddit.com/r/Anthropic/comments/1kt8umj/claude_code_also_creating_input_text_inside/
<img width="977" height="974" alt="Image" src="https://github.com/user-attachments/assets/e4f6e083-0e9c-43ba-9fc5-12faa07ac141" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗