[BUG] Input not cleared after message submission

Status Fixed / completed
Reported on v2.1.76
Maintainer reply None cached
Activity 6 comments · opened Mar 16, 2026 · closed Apr 14, 2026

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 submitting a message in the Claude Code console, the input field is not cleared. The previously submitted text remains in the input box, requiring manual deletion before typing a new message.

Actual behavior: Input field retains the previously submitted message.

it seems like there was same problem that is marked as resolved https://github.com/anthropics/claude-code/issues/27266 but it was like this for me for 2 weeks and I update claude daily

What Should Happen?

Input field is cleared after submission.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in the terminal
  2. Type a message and press Enter/submit
  3. Observe that the input field still contains the submitted text

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

I also tried with Intellij-idea v: 253.31033.145 (both reworked and classic engines)
and with iTerm2 (no version cause I deleted it for not working anyways)

View original on GitHub ↗

6 Comments

fret-scale · 5 months ago

Also Ctrl+C clears the input but stops execution (so / commands typed mid-session are hard to use without triggering a cancel)

github-actions[bot] · 5 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/30913
  2. https://github.com/anthropics/claude-code/issues/27266

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

fret-scale · 5 months ago

I mentioned that other issue, but it is (a) on linux not mac; and (b) marked as resolved, while I still experience issue.

marcelostsh · 5 months ago

Same issue here, but on Windows. Opened #38874 with details.

This has been happening for over a month across every terminal (VS Code, Cursor, Windows Terminal, PowerShell). Still broken on v2.1.83.

The previous "fix" in v2.1.5 clearly didn't resolve this — not on macOS (as you reported) and not on Windows either. Really hoping this gets proper attention, it's incredibly annoying to use daily.

Environment: Windows 11 Home 10.0.26200 · Claude Code v2.1.83 · Claude Max (Opus)

fret-scale · 4 months ago

I made it work by removing claude-code-keybindings.json file; openned #48023 with all the dets

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.