t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Screen reader users cannot select composer suggestions

Open akj opened this issue 2 months ago • 1 comments

The composer suggestion pickers are not usable with a screen reader: I cannot identify and select the intended skill, file, or slash command. This blocks access to those existing composer features.

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Use the web client with NVDA on Windows and focus the message editor.
  2. Type $ to choose a skill, @ followed by part of a file name to choose a workspace file, or / to choose a command.
  3. Try to find and select the intended suggestion using the screen reader and keyboard.

Expected behavior

I can hear which suggestion is highlighted, read its name and description, navigate the available results, and select the intended item while staying in the editor. Filtering, empty results, and dismissal should leave me with an understandable state.

Actual behavior

The picker opens and its visual highlight moves, but the screen reader does not provide the information needed to identify and choose the highlighted result. Keyboard handlers for arrows and selection already exist; the missing accessible connection between the focused editor, the list, and its highlighted option makes that selection flow unusable with a screen reader.

The original source audit identified this gap in the command, skill, and file suggestion menus. It also found that the editor lacks a stable accessible name.

A secondary problem emerged while testing the fix: after inserting a skill, Left read "space" and then "blank" when crossing its chip. The fix gives that chip a spoken identity too. This was a follow-up finding, not the original reason for the report.

Impact

Major degradation or frequent failure: screen reader users cannot use the composer suggestion pickers to choose skills, files, and commands.

Version or commit

761d4bac1c

Environment

Windows, Chrome, NVDA. The desktop client shares the web composer; the separate native mobile composer is outside this report.

akj avatar Sep 05 '26 16:09 akj

Triage

Confirmed in current apps/web source. This is a real accessibility bug, not a support/setup issue.

The /, $, and @ menus already highlight from the keyboard while focus stays in the Lexical editor (ChatComposer + ComposerCommandKeyPlugin). The focused editor is not wired to that list:

  • ComposerPromptEditor’s ContentEditable only sets aria-placeholder. It has no stable accessible name and no aria-controls / aria-activedescendant / aria-expanded relationship to the open suggestions.
  • ComposerCommandMenu tracks activeItemId for styling and scroll-into-view only. Options have no stable ids, and loading/empty copy is a static <p>, so those states are not announced.
  • Inserted skills render as a contentEditable={false} decorator chip (ComposerSkillDecorator) with visible text but no accessible name. That matches the NVDA “space” / “blank” result when moving left across the chip; naming the chip is the right fix for that path.

Desktop shares this web composer. The separate native mobile composer is out of scope, as noted.

The same combobox/listbox pattern is already used for sidebar and settings search. @ mention chips use the same unnamed decorator pattern and may need the same treatment; that was not part of this report.

Related

  • Fix in review: https://github.com/pingdotgg/t3code/pull/10154 (Closes #10153)
  • Nearby a11y naming work, not duplicates: https://github.com/pingdotgg/t3code/pull/10124, https://github.com/pingdotgg/t3code/pull/10127

Next step

Review #10154. No further reproduction notes needed for the source gaps; the skill-chip NVDA case is already confirmed.

juliusmarminge avatar Sep 05 '26 16:09 juliusmarminge