Skip to content

Conversation

@meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Nov 7, 2025

fix #274220

If/when we end up using xterm here instead, we can reuse all of this and just change the getCommandAndOutputAsText function.

Screenshot 2025-11-07 at 4 31 37 PM Screenshot 2025-11-07 at 4 33 39 PM

@meganrogge meganrogge requested review from Tyriar and Copilot November 7, 2025 21:41
@meganrogge meganrogge self-assigned this Nov 7, 2025
@meganrogge meganrogge added this to the November 2025 milestone Nov 7, 2025
Copy link
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

This PR adds an accessible view for chat terminal tool output, allowing screen reader users to access terminal command output from chat tool invocations. It also renames the TerminalChat accessibility verbosity setting to TerminalInlineChat for clarity.

Key changes:

  • Adds new ChatTerminalOutputAccessibleView to provide accessible terminal output content
  • Introduces inChatTerminalToolOutput context key to track focus state
  • Renames AccessibilityVerbositySettingId.TerminalChat to TerminalInlineChat for consistency
  • Adds new TerminalChatOutput verbosity setting for the terminal output accessible view
  • Implements focus tracking and aria-label management in ChatTerminalToolProgressPart

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.ts Updates reference from TerminalChat to TerminalInlineChat setting ID
src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.initialHint.contribution.ts Updates two references from TerminalChat to TerminalInlineChat setting ID
src/vs/workbench/contrib/chat/common/chatContextKeys.ts Adds new context key for terminal tool output focus tracking
src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.ts New file implementing the accessible view for terminal output
src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.ts Adds focus tracking, aria-label management, and accessible view support
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Registers the new ChatTerminalOutputAccessibleView
src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts Renames TerminalChat to TerminalInlineChat and adds new TerminalChatOutput setting
src/vs/platform/accessibility/browser/accessibleView.ts Adds ChatTerminalOutput provider ID

…ocationParts/chatTerminalToolProgressPart.ts

Co-authored-by: Copilot <[email protected]>
@meganrogge meganrogge enabled auto-merge (squash) November 7, 2025 23:43
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.

Make terminal inline output accessible

2 participants