[BUG] Claude is constantly outputting escape sequences to my input line in the terminal.
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?
While Claude is running in the terminal it is constantly outputting [28~ repeatedly on the line for me to type on. This is happening in Powershell, Command Prompt, Bash in and out of Windows Terminal. This is happening while claude is running whether it is executing a task or sitting idle and it also happens as you can see in the screenshot while I am in the middle of typing something. I am constantly having to backspace to remove the escape sequence. If left to sit idle for a period of time, I will return to the terminal window and find a line of [28~[28~[28~ over and over. Also important- this only happens in the terminal when claude is running. If the terminal is open just sitting this is not occurring
<img width="1278" height="667" alt="Image" src="https://github.com/user-attachments/assets/ab47bc35-a49a-409d-b111-3ff27291e3b5" />
What Should Happen?
The input line should remain free of output from the agent.
Error Messages/Logs
Steps to Reproduce
Open a terminal window in Windows 11 enterprise ed.
type claude
wait
This is repeatable on my machine every session.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.23
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
I selected windows terminal but I was also able to reproduce this issue in gitbash outside of Windows Terminal because I suspected maybe it was an issue with W.T. It is not.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗