Skip to content

Empty Terminal Capturing When Using Copilot Chat Agent #311450

@1chooo

Description

@1chooo
  • Copilot Chat Extension Version: 1.16.0
  • VS Code Version: 1.116.0
  • OS Version: Darwin arm64 25.3.0
  • Feature (e.g. agent/edit/ask mode): agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): auto (GPT-5.3-Codex • 0.9x)
  • Logs:
I’ll pull the latest `main`, merge it into your current branch `docs/update-highlighter-componentsource`, resolve any conflicts, and verify the workspace is in a clean, PR-ready state. I’m starting by checking git status/branch and syncing refs so we can integrate safely.I’m loading the pull request workflow skill now so I can follow the repository’s expected PR process while integrating `main` into your branch.

Read skill [create-pull-request](file:///Users/hugolin/.vscode/extensions/github.vscode-pull-request-github-0.136.0/src/lm/skills/create-pull-request/SKILL.md?vscodeLinkType%3Dskill)

Read memory

Next I’m going to inspect your git state and fetch the latest `main` from origin so we can merge exactly what changed and avoid surprises.

Ran terminal command:  git status --short --branch && git branch -vv

Ran terminal command:  git fetch origin

I fetched remote refs successfully; now I’ll run explicit git checks with machine-readable output to confirm branch divergence and whether there are local uncommitted changes before merging.

Ran terminal command:  pwd && git rev-parse --abbrev-ref HEAD && git status --porcelain=v1 && git status -sb && git rev-list --left-right --count origin/main...HEAD

I’m seeing unusually empty terminal captures, so I’m running a minimal command to verify terminal output behavior before continuing with git operations.

Ran terminal command:  echo HI && /bin/pwd && git rev-parse --abbrev-ref HEAD

Terminal output still looks suppressed in this environment; I’ll switch to a persistent async terminal and read back its output directly to proceed safely.

Ran terminal command:  echo HI && pwd && git rev-parse --abbrev-ref HEAD && git status -sb

I confirmed we’re on the correct branch; next I’ll check divergence against `origin/main` and whether any local changes need to be stashed before merge.

Sent `git fetch origin && echo 'DIVERGENCE (behind ahead):' && git rev-list --left-...` to terminal

Steps to Reproduce:

  1. Open a repository with a branch that is behind origin/main
  2. Open Copilot Chat and use Agent mode
  3. Run a prompt like:
    "Now the main branch has a new commit and can you help me integrate to current branch? docs/update-highlighter-componentsource that I want to make a PR"
  4. Observe the agent executing git commands (e.g., git merge origin/main)
  5. Check the terminal panel output

Expected Behavior:

  • Terminal should reliably display all executed commands and their outputs
  • Output should persist for review (e.g., merge logs, git status, push results)

Actual Behavior:

  • Terminal output is intermittently empty or not captured
  • Some commands appear to execute (based on agent responses), but no corresponding terminal logs are visible
  • Makes it difficult to verify actions like merges, pushes, or PR creation

Additional Context:

  • The agent successfully performed:
    • git merge origin/main
    • git push
    • PR creation via GitHub
  • However, terminal output was missing or incomplete during parts of the process
  • This creates a lack of transparency and makes debugging harder

Reproducibility:

  • Always fail when fetching information from Terminal with copilot.

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