-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Description
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.
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:
- Use Copilot Agent Chat and wait for it to need to run an affected PowerShell, .bat or .cmd command/script
- 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.