[BUG] Prompt revision draft is lost once Arrow Up is pressed on Claude Extension for Visual Studio Code and Claude Code

Status Fixed / completed
Reported on v2.1.145
Maintainer reply None cached
Activity 8 comments · opened May 20, 2026 · closed May 22, 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?

Sequence Arrow Up followed by Arrow Down does preserve drafts of reedited prompts, in some cases. Check provided steps.

Going deeper, this also affects v2.1.139 Claude Code

Very important! Altough this seems a duplicate of #6275, #37074 and #9492xxxx, this VERY ANNOYING behaviour that HAS NOT BEEN addressed yet.

What Should Happen?

Whenever navigation to previous prompts thru cursor up key occurs, current draft should never be lost, unless user explicitly allows/requests draft discard.

Error Messages/Logs

Steps to Reproduce

Open Claude Extension for Visual Studio Code

  1. Start new chat
  2. Type "_Prompt1_"
  3. Press Enter key
  4. Type "_Prompt2_"
  5. Press Enter key
  6. Press Arrow Up key. This recover "_Prompt2_" from history
  7. Type "_Fixed_ ". This will adjust prompt to "_Fixed Prompt2_" and cursor will be at 7th position)
  8. Press Arrow Up key. Tthis will move text cursor to 1th position)
  9. Press Arrow Up key. This will recover "_Prompt1_" from history
  10. Press Arrow Down key and you will get "_Prompt2_" instead of "_Fixed Prompt2_"

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.145

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

8 Comments

github-actions[bot] · 3 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6275
  2. https://github.com/anthropics/claude-code/issues/37074
  3. https://github.com/anthropics/claude-code/issues/9422

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

JulioNobre · 3 months ago
Found 3 possible duplicate issues: 1. Prompt Input: Unexpected Text Loss on Up Arrow Key Press #6275 2. [[BUG] UX: Pressing ↑ arrow discards current typed prompt when navigating history #37074](https://github.com/anthropics/claude-code/issues/37074) 3. [[BUG] Arrow Down Doesn't Restore Original Prompt After Arrow Up #9422](https://github.com/anthropics/claude-code/issues/9422) 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
JulioNobre · 3 months ago

I have managed to reproduce this odd behaviour and added steps to reproduce it. This IS NOT a duplicate of none of the referred issues on previous comment

MulGirtab1 · 3 months ago

It is similar to the other tickets but this focuses on VS Code extension. I had the same issue.

JulioNobre · 3 months ago
It is similar to the other tickets but this focuses on VS Code extension. I had the same issue.

This on focuses on VS Code extension and Claude Code. Can you point an issue that provides the exact steps do reproduce this odd behaviour ? If not, please reopen the issue so it gets due attention.

Bear in mind that I have found several pretty close issues, some with PRs, which did not address this remainng case.

MulGirtab1 · 3 months ago

Oh I'm not a mod here, I just submitted my own bug for the same issue. I was just making a statement there are other cases that report the same issue and it looks like it dates back to last year from what I have seen.

JulioNobre · 3 months ago
Oh I'm not a mod here, I just submitted my own bug for the same issue. I was just making a statement there are other cases that report the same issue and it looks like it dates back to last year from what I have seen.

Can you share your submission so I can assess whether it has enough details ?

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