[BUG] Stop prompt from getting deleted forever when going up with cursor above first line of prompt

Resolved 💬 2 comments Opened Nov 13, 2025 by ikodbapc Closed Nov 13, 2025

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?

Whole prompt gets deleted if I mistakenly move cursor to the first line of prompt and then press Up key again. I can't get prompt back from prompt history by "scrolling" down with Down key, it disappears forever! Whole prompt I've been typing for some time.

Same thing happens when pressing Ctr + C only once, you're not getting your prompt back.

What Should Happen?

Remember my current prompt, save it to history of prompts (listing prompts Up and Down) before deleting it or showing old prompts so that I can go back with Down key to my prompt. Same for Ctr + C.

Error Messages/Logs

Steps to Reproduce

  1. type in your prompt in few lines (go to new lines with Ctrl + J)
  2. move cursor Up, Up, Up until you're on the first line
  3. press Up again
  4. good bye prompt, forever
  1. type in your prompt in few lines (go to new lines with Ctrl + J)
  2. press Ctrl + C
  3. good bye prompt, forever

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.37 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗