Skip to content

Copilot Agent blocked by "Press any key to continue ..." - Loss of autonomous capabilities #275605

@Barrixar

Description

@Barrixar

Does this issue occur when all extensions are disabled?: N/A

  • VS Code Version: 1.106.0 Insider (05/11/2025)
  • OS Version: Windows 11 25H2 (26200.7019)

The issue is about VS Code not allowing Copilot Chat extension (and possibly other AI extensions) to proceed in Terminal when some commands/scripts are finished. The point of "Press any key to continue ..." is being taken as not finished yet, and requires the human user to press to proceed.

This is a blocker for the autonomic functioning of the affected AI agent, and if this condition is hit multiple times per session, will significantly slow down the user's workflow. Imagine going AFK for a while and returning to discover it has only just began the task (and became blocked, - paused - on this), to then have to sit next to it to manually continue on further occasions throughout the task. Not everyone has their view settings to always show the Terminal console.

Image Image

Crucially, as you can see, the terminal session's in-progress spinner is still running the circle, so the agent doesn't consider it as done. If the user doesn't bother to click it, open it, and spot that it was just waiting for user keystroke like Enter, he'd have never found out why the Agent was stuck indefinitely and would never be completing their task.

Steps to Reproduce:

  1. Use Copilot Agent Chat and wait for it to need to run an affected PowerShell, .bat or .cmd command/script
  2. Observe the whole Agent flow being stuck due to "Press any key to continue ..." being prompted in Terminal Window, hidden or retrievable by clicking the Agent window's active terminal session.

It can occur with many types of queries, commands and scripts, which are called by the AI agent extension's available tools. The degree of an user being affected depends on if they work with solutions that require the use of the impacted commands. I am affected because i let the AI agent rebuild my program, as you can see in the screenshot.

To fix this issue, VS Code must let extensions like GitHub Copilot automatically send a keystroke (or internal proceed-now) when the text "Press any key to continue ..." is detected in one of the agent's active terminal sessions.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-terminal-output-monitorOutput monitoring in the terminal tool which detects when commands finish or user input is requiredinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions