-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Description
🐞 Bug: Copilot Chat / Agent misses terminal output (last lines) on Windows (Git Bash + WSL)
Summary
When GitHub Copilot Chat (or Copilot Agent using run_in_terminal) executes a terminal command on Windows 10, the output returned to Copilot often misses the last 1–2 lines. The terminal itself shows the full output, but Copilot’s returned output is truncated or incomplete.
🧰 Environment
-
OS: Windows 10
-
VS Code Version:
1.106.1 -
Copilot Chat Extension: Latest version (as of date)
-
Terminals Tested:
- Git Bash
- Ubuntu (WSL)
Both exhibit the same issue.
🔄 Steps to Reproduce
-
Open VS Code on Windows.
-
Open either Git Bash or WSL terminal.
-
Run a simple multi-line output command such as:
echo -e "Line1\nLine2\nLine3\nLine4\nLine5"
-
Ask Copilot Chat / Agent to run the same command via
run_in_terminal. -
Compare the output returned by Copilot vs what is shown in the terminal.
✔️ Expected Behavior
Copilot should capture and return all stdout output lines exactly as shown in the terminal.
Example expected:
Line1
Line2
Line3
Line4
Line5
❌ Actual Behavior
Copilot’s returned output drops the last one or two lines (e.g., only returns up to Line3 or Line4), even though the terminal shows the complete output.
This behavior happens consistently in both Git Bash and WSL terminals.