When editing in multiline mode, you can lose your entire current text with an errant "down arrow" keypress.

Resolved 💬 8 comments Opened Jul 1, 2025 by jblachly Closed Jan 9, 2026

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.38 (Claude Code)
  • Operating System: Darwin MacBookPro.localdomain 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64
  • Terminal: iTerm2

Bug Description

When editing in multiline mode, you can lose your entire current text with an errant "down arrow" keypress.

Steps to Reproduce

  1. Enter some text (multi-line or not)
  2. Hit enter
  3. Interrupt with "esc" because you meant to hit shift-enter and keep editing.
  4. Hit "up"
  5. Resume editing
  6. Get to last line and hit "down" -- text entry clears
  7. Hit "up" to get back to editing
  8. Only the prior text that was sent and aborted with "esc" is still there

_i.e.,_ Claude obliterated all the extra text you got done entering. Unfortunately, I lost 20 minutes worth of detailed prompt work that I definitely next time will work on in an external editor and paste in.

Expected Behavior

I expected my text entry not to be expunged

Actual Behavior

Claude remembered the previous "sent" entry rather than the updated form

Additional Context

n/a

View original on GitHub ↗

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