Skip to content

[Bug]: Find in thread reads its match counter aloud on every streamed update while an agent works #37195

Closed

Description

@nibarAhmed

Before submitting

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

Area

apps/web

Steps to reproduce

  1. Turn on NVDA and open a thread.
  2. Press Ctrl+F and search a common word, such as the.
  3. Leave find open and send a message, so the agent replies in that thread.

Expected behavior

The match counter is spoken when I search or move between matches. While the agent works, the count updates on screen and stays silent.

Actual behavior

Every streamed update recounts the matches, and the screen reader reads the counter each time: "1 slash …", "1 slash 4", "1 slash …", "1 slash 5", and so on until the reply ends. This happens at every Screen reader announcements level, including the default Status. It is easy to mistake for the Everything step announcements, because both follow the agent's activity.

It also tends to stay on without being noticed. With focus in the find field, NVDA takes the first Escape to switch to browse mode, so find stays open while it seems closed.

Impact

Minor bug or occasional failure

Version or commit

main @ ff9dca8

Environment

Windows 11, NVDA, Chrome. The repro used the Replay (dev) provider.

Logs or stack traces

# NVDA speech captured with asc, Screen reader announcements at Status, find open on "the"
245 said: "Working"
246 said: "1 slash ..."
247 said: "1 slash 3"
248 said: "1 slash ..."
249 said: "1 slash 4"
252 said: "1 slash ..."
253 said: "1 slash 5"
254 said: "1 slash ..."
255 said: "1 slash 6"
256 said: "Done"
257 said: "1 slash ..."
258 said: "1 slash 6"

The counter is an aria-live="polite" span in apps/web/src/components/chat/ThreadFindBar.tsx, and open results refresh from streamed deltas in useThreadFind.ts.

Workaround

Close find: in the find field, press NVDA+F2 and then Escape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions