[BUG] VSCode extension: ESC after sending interrupts immediately instead of un-queueing the prompt for edit/resubmit (CLI parity)

Open 💬 0 comments Opened Jun 10, 2026 by arlenvasconcelos

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?

Claude CLI and Claude VSCode extension have different behavior for ESC key command.

Action: send a message → press ESC immediately.

CLI: prompt becomes editable + resubmittable.
VSCode: task interrupted, "interrupted" printed, message not restored to the input box.

What Should Happen?

ESC right after sending should match the CLI: interrupt the in-flight turn and restore the just-sent message back into the input box, so the user can edit it and submit again. Instead of discarding it and printing "interrupted".

Error Messages/Logs

Steps to Reproduce

  1. Open the Claude VSCode extension
  2. Start a new session
  3. Send any prompt and press 'ESC' in the keyboard.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.170 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

VSCode installation info

Identifier: anthropic.claude-code
Version: 2.1.170

View original on GitHub ↗