Skip to content

Make chat elicitation request part accessible #257491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 23, 2025
Merged

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 23, 2025

Chat elicitations, used by mcp and task/terminal tools, were inaccessible before. This fixes it:

Screenshot 2025-07-24 at 3 54 06 PM
  • Plays the chat user action required accessibility sound when the elicitation request appears
  • Alerts with the title and message of the elicitation
  • Adds the title and message of the elicitation to the aria label of the chat response
  • Includes chat elicitation in the chat response accessible view
  • Adds tab index to the elicitation part so it's keyboard focusable
  • Sets the aria label for the elicitation

@Copilot Copilot AI changed the title [WIP] chat elicitation rendering should trigger chat user action required signal Add accessibility signal for chat elicitation rendering Jul 23, 2025
@Copilot Copilot AI requested a review from meganrogge July 23, 2025 17:17
Copilot finished work on behalf of meganrogge July 23, 2025 17:17
@meganrogge
Copy link
Contributor

@copilot we should also use an aria alert to indicate the contents of the elicitation request to screen reader users when it comes in. We should also add this content to the aria label of the chat response list item like we do for other points of interest, such as code blocks.

Copy link
Contributor Author

Copilot AI commented Jul 23, 2025

@copilot we should also use an aria alert to indicate the contents of the elicitation request to screen reader users when it comes in. We should also add this content to the aria label of the chat res...

I've implemented both requested accessibility improvements:

  1. Aria alert: Added alert() call with elicitation message content when elicitation is added to chat model
  2. Aria label enhancement: Updated chatAccessibilityProvider.ts to include elicitation count in response list item labels, following the same pattern as code blocks and tables

The changes integrate cleanly with existing accessibility infrastructure and provide immediate notification plus persistent labeling for screen reader users.

Commit: 8c8e475

@Copilot Copilot AI requested a review from meganrogge July 23, 2025 18:41
Copilot finished work on behalf of meganrogge July 23, 2025 18:41
Copilot finished work on behalf of meganrogge July 23, 2025 18:44
@meganrogge meganrogge closed this Jul 23, 2025
@meganrogge meganrogge changed the title Add accessibility signal for chat elicitation rendering Make chat elicitation request part accessible Jul 23, 2025
@meganrogge meganrogge reopened this Jul 23, 2025
@meganrogge meganrogge marked this pull request as ready for review July 23, 2025 19:43
@meganrogge
Copy link
Contributor

CC @connor4312

@meganrogge meganrogge added this to the July 2025 milestone Jul 23, 2025
@meganrogge meganrogge enabled auto-merge (squash) July 23, 2025 19:44
@meganrogge meganrogge disabled auto-merge July 23, 2025 19:45
@meganrogge meganrogge enabled auto-merge (squash) July 23, 2025 19:55
@meganrogge meganrogge merged commit 618daea into main Jul 23, 2025
18 checks passed
@meganrogge meganrogge deleted the copilot/fix-257490 branch July 23, 2025 21:26
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.

3 participants