Skip to content

Improve terminal output handling to hide output when not required#305035

Merged
DonJayamanne merged 4 commits intomainfrom
don/peculiar-canidae
Mar 26, 2026
Merged

Improve terminal output handling to hide output when not required#305035
DonJayamanne merged 4 commits intomainfrom
don/peculiar-canidae

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

@DonJayamanne DonJayamanne commented Mar 26, 2026

Fixes #304507

@meganrogge /cc

Copilot AI review requested due to automatic review settings March 26, 2026 04:48
@DonJayamanne DonJayamanne self-assigned this Mar 26, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.114.0 milestone Mar 26, 2026
@DonJayamanne DonJayamanne requested a review from meganrogge March 26, 2026 04:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts how chat terminal tool invocations render their output area so “display-only” invocations (no terminal session and no stored output) don’t show an unnecessary/empty output section, addressing confusion and “terminal no longer available” UX issues reported around Copilot CLI terminal handling.

Changes:

  • Only appends the terminal output section DOM when there’s an active terminal session or stored output.
  • Adds a “has terminal session” flag to the output section and suppresses the unavailable-message rendering when no session exists.

@DonJayamanne DonJayamanne marked this pull request as ready for review March 26, 2026 05:07
@DonJayamanne DonJayamanne enabled auto-merge (squash) March 26, 2026 05:07
@meganrogge
Copy link
Copy Markdown
Collaborator

@DonJayamanne when/why is this the case? 🤔

@DonJayamanne DonJayamanne merged commit 4f13b47 into main Mar 26, 2026
18 checks passed
@DonJayamanne DonJayamanne deleted the don/peculiar-canidae branch March 26, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when using Copilot CLI, terminal is not focusable and says "terminal is no longer available"

4 participants