[BUG] ESC key during model selection (Alt+P) interrupts agent execution - Windows Terminal

Resolved 💬 3 comments Opened Jan 9, 2026 by ilepn Closed Feb 23, 2026

Bug: ESC key during model selection (Alt+P) interrupts agent execution - Windows Terminal

Description

When the model selection dialog is open via [Alt]+[P], pressing [ESC] to close the dialog without changing selection also interrupts any ongoing agent execution in the background.

Expected Behavior

ESC should only close the topmost UI element (model selection dialog), not affect underlying processes.

Actual Behavior

ESC closes the dialog AND interrupts the running agent.

Reproduction Steps

  1. Start Claude Code in Windows Terminal
  2. Begin an agent execution (any multi-step task)
  3. While agent is running, press [Alt]+[P] to open model selection
  4. Press [ESC] to cancel/close the dialog (without changing model)
  5. Observe: Agent execution is interrupted

Environment

  • Platform: Windows Terminal
  • OS: Windows 11

Related Issues

  • #10910 (auto-closed due to inactivity, was about diff modal in VSCode - different context)
  • CHANGELOG v2.0.41 fixed ESC for diff modal, but not model selection dialog

Submitted feedback ID: 39e93e30-7a6b-46fa-b7aa-26bc4bbfc4e5

View original on GitHub ↗

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