Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 24, 2025

Improves accessibility by including the current language model name in the chat input's aria-label, helping screen reader users understand which AI model they're interacting with.

Changes

Modified src/vs/workbench/contrib/chat/browser/chatInputPart.ts:

  1. Updated _getAriaLabel() method to extract and include the current language model name

    • Retrieves model name from this._currentLanguageModel?.metadata.name
    • Creates localized string: "Using {modelName}. "
    • Integrates model info into all aria-label variants (verbose/non-verbose)
  2. Added aria-label refresh on model change

    • Updates input editor's aria-label when _onDidChangeCurrentLanguageModel event fires
    • Ensures screen readers immediately announce model changes

Example

Before:

"Chat Input (Agent), edit files in your workspace."

After:

"Chat Input Using GPT-4. (Agent), edit files in your workspace."

When no model is selected:

"Chat Input (Agent), edit files in your workspace."

(Falls back gracefully to original behavior)

Accessibility Impact

Screen reader users now receive:

  • Clear indication of which AI model is currently active
  • Immediate notification when switching models
  • Complete context including model, chat mode, and help information

cc @jooyoungseo

Original prompt

This section details on the original issue you should resolve

<issue_title>Include model info in chat input aria label</issue_title>
<issue_description>cc @jooyoungseo</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI changed the title [WIP] Add model info to chat input aria label Include model info in chat input aria label Oct 24, 2025
Copilot AI requested a review from meganrogge October 24, 2025 19:03
Copilot finished work on behalf of meganrogge October 24, 2025 19:03
@meganrogge meganrogge marked this pull request as ready for review October 27, 2025 14:25
Copilot AI review requested due to automatic review settings October 27, 2025 14:25
@meganrogge meganrogge added this to the October 2025 milestone Oct 27, 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 enhances accessibility by including the current language model name in the chat input's aria-label, helping screen reader users understand which AI model they're interacting with.

Key Changes:

  • Updated the _getAriaLabel() method to extract and include the current language model name in all aria-label variants
  • Added automatic aria-label refresh when the language model changes via the _onDidChangeCurrentLanguageModel event listener

Tyriar
Tyriar previously approved these changes Oct 27, 2025
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
@meganrogge meganrogge merged commit 04c6127 into main Oct 27, 2025
27 checks passed
@meganrogge meganrogge deleted the copilot/include-model-info-aria-label branch October 27, 2025 15:34
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.

Include model info in chat input aria label

4 participants