claude-code - 💡(How to fix) Fix [BUG] Typing in the input box scrolling up clears the draft [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56460Fetched 2026-05-06 06:27:27
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I type a long message and try to scroll up to review it, the cursor movement triggers history navigation and clears everything I typed. Lost an hour of work this way. Input box needs to either be taller or not intercept scroll/arrow keys when the cursor is mid-text.

What Should Happen?

Scrolling up or pressing the up arrow key while the cursor is within typed text should move the cursor within the text, not navigate to previous messages or clear the input.

Error Messages/Logs

Steps to Reproduce

Open Claude Code in VSCode Click the chat input box Type a long message (more than 2-3 lines) Press the up arrow key to scroll back through what you typed Input clears and your draft is gone

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Code for VS Code v2.1.128

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be potentially fixed by modifying the input box to not intercept scroll or arrow keys when the cursor is mid-text, or by increasing the height of the input box to accommodate longer messages.

Guidance

  • Verify that the issue is specific to the Sonnet model by trying other models to see if the behavior changes.
  • Check if there are any existing configuration options in Claude Code for VS Code to adjust the input box behavior or height.
  • Consider reporting this issue to the Anthropic API team to see if there are any known workarounds or fixes on their end.
  • Test the issue in a different environment, such as a different operating system or code editor, to determine if the issue is specific to the current setup.

Notes

The issue may be related to the specific version of Claude Code for VS Code (v2.1.128) or the Sonnet model, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Increase the height of the input box or modify its behavior to not intercept scroll or arrow keys when the cursor is mid-text, as this is likely to mitigate the issue until a permanent fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Typing in the input box scrolling up clears the draft [1 comments, 2 participants]