[BUG] text input clears when a message is promoted from the queue

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Apr 25, 2025 · closed Jan 16, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

https://github.com/anthropics/claude-code/issues/535 is great, thank you!

I just hit a small but annoying issue:

  • claude is working
  • one message is already queued
  • I'm typing another message, to prepare for queuing that
  • claude finishes its work and accepts the queued message
  • then the bug: the message I've typed is cleared

this is obv annoying, because I've lost the message I've mostly typed, and is basically impossible to avoid if we want to queue multiple messages, since the timing of when claude will finish is uncertain

thanks again for the superb tool!

View original on GitHub ↗

7 Comments

koeppern · 1 year ago

I also need this feature to queue tasks

em · 1 year ago

This is such a bad bug it is so bad to just delete the user's message while they are typing. Can you imagine how infuriating that is? I hit it 100 times a day, my message deleted mid-typing, and have to start over typing the same thing again.

The way I interact probably hits it more often I'm always preparing the next instruction as it's working in parallel, and half the time it just deletes what I'm writing.

Imagine a web page where the form just resets itself randomly. Please fix this..... Can't imagine anything being a higher priority than not losing the user's input as they type.

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

sudoxreboot · 10 months ago

This is part of a broader input handling problem that affects both Claude Code and claude.ai web.

Related issues I've experienced:

  1. Input replacement - Typed content randomly replaced with previous prompt (critical data loss)
  2. Input modification - Numbers/content altered without consent (e.g., type "1000", becomes something else)
  3. Input clearing - This issue - input clears unexpectedly

The principle:

User input is sacred. The interface should NEVER modify, replace, or clear what the user typed without explicit user action.

Proposed fixes:

  1. Disable any auto-complete/auto-fill that might be replacing content
  2. Isolate input state from message queue state
  3. Implement input history - Ctrl+Z should recover cleared/replaced input
  4. Local draft persistence - Save input to localStorage on every keystroke
  5. Never overwrite input field from internal state while user is typing

Priority:

Any bug that causes data loss (user loses their carefully typed message) should be P0. Users shouldn't have to compose in external editors and paste in just to avoid losing work.

github-actions[bot] · 9 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 9 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

github-actions[bot] · 8 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.