VSCode extension: Up arrow key in input field overwrites typed text with history

Resolved 💬 2 comments Opened Mar 22, 2026 by coin-comachi Closed Mar 25, 2026

Description

In the Claude Code VSCode extension, pressing the Up arrow key at the top of the input field loads the previous conversation message into the input. This overwrites any text the user has already typed, causing data loss.

Steps to reproduce

  1. Open Claude Code in the VSCode extension (not terminal)
  2. Start typing a message in the input field
  3. Move the cursor to the top of the input
  4. Press the Up arrow key

Expected behavior

The cursor should stop at the top of the input field without changing the content, or at minimum there should be a setting to disable this history navigation behavior.

Actual behavior

The entire input content is replaced with the previous conversation message. The text the user was typing is lost with no way to recover it.

Feature request

Please add an option to disable the Up arrow history navigation in the input field, or change the behavior so it does not activate when the input field already contains text.

Environment

  • OS: Windows 10
  • Claude Code VSCode Extension v2.1.81

View original on GitHub ↗

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