[BUG] Input text not cleared after sending message on Windows (v2.1.83) — persists across all terminals
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?
After sending a message (pressing Enter), the input text remains in the input field instead of being cleared. The message IS sent and processed correctly by Claude, but the previous text stays in the input box.
This has been happening for over a month and persists across all terminals:
- VS Code integrated terminal
- Cursor integrated terminal
- Windows Terminal (standalone)
The only place it works correctly is the Claude Desktop app (not CLI).
This is not caused by any external software, clipboard managers, keyboard remappers, or IME — it happens exclusively in Claude Code CLI.
Related to #27266 which was closed as fixed in v2.1.5, but the issue was never resolved on Windows. Still present on v2.1.83.
What Should Happen?
After pressing Enter to send a message, the input field should be cleared immediately, ready for the next prompt — just like it works on the Claude Desktop app and like it used to work on older CLI versions.
Error Messages/Logs
Steps to Reproduce
- Open any terminal on Windows (VS Code, Cursor, Windows Terminal)
- Run
claude - Type any message and press Enter
- Message is sent and Claude responds correctly
- But the text you typed remains in the input field — it is not cleared
- You must manually select all and delete before typing the next message
This is 100% reproducible on every single message.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.83
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Terminals tested (ALL reproduce the bug):
- VS Code integrated terminal (latest)
- Cursor integrated terminal (latest)
- Windows Terminal (standalone)
OS: Windows 11 Home Single Language 10.0.26200
What does NOT have the bug: Claude Desktop app (not CLI)
Timeline: This has been happening for over a month, across multiple Claude Code versions.
Note on #27266: That issue was closed as fixed in v2.1.5, but the fix apparently only resolved the issue on Linux. On Windows, the bug has persisted continuously and was never fixed. This is essentially the same bug, still present on v2.1.83.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗