Skip to content

Copilot Chat / Agent misses terminal output (last lines) on Windows (Git Bash + WSL) #282904

@CoquiLee

Description

@CoquiLee

🐞 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

  1. Open VS Code on Windows.

  2. Open either Git Bash or WSL terminal.

  3. Run a simple multi-line output command such as:

    echo -e "Line1\nLine2\nLine3\nLine4\nLine5"
  4. Ask Copilot Chat / Agent to run the same command via run_in_terminal.

  5. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions