Skip to content

fix(mobile): screen readers hear when the open thread needs you or finishes - #34431

Merged
shivamhwp merged 4 commits into
pingdotgg:mainfrom
shivamhwp:t3/mobile-screen-reader-status
Nov 12, 2026
Merged

shivamhwp merged 4 commits into
pingdotgg:mainfrom
shivamhwp:t3/mobile-screen-reader-status

Conversation

@shivamhwp

@shivamhwp shivamhwp commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Note

🤖 Claude Opus 5.5 on behalf of Shivam

The web app tells screen readers when the open thread starts working, needs approval, needs your input, and finishes. The mobile app said nothing, so a VoiceOver or TalkBack user had to keep checking the screen to know the agent was waiting on them.

The mobile thread screen now says the same things: "Working", "Needs approval", "Needs your input", "Done", "Failed" and "Stopped". The decision logic moved unchanged from apps/web into @t3tools/client-runtime/state/thread-activity-announcement, so web and mobile share it. Mobile speaks through AccessibilityInfo and queues each announcement on iOS so it doesn't cut off what VoiceOver is already reading, like the web's polite live region. Provider subagent threads stay quiet, as on web. A thread screen hidden under another screen, or with the app in the background, stays quiet and starts again from a silent baseline when shown. A thread preview open beside its host, such as a side chat, names its thread after each status ("Needs approval: <title>"), the way the web announces threads other than the open one, so the two threads can't be confused.

Mobile hides a question as soon as you answer it, before the thread's summary catches up. Read naively, that looks like a new question and says "Needs your input" a second time. The request id now falls back to the summary's pending request, unless that request is one the question card already showed, which means it was answered. One question is announced once, also when the next question arrives and is answered before the summary catches up. threadStatusAnnouncement.test.ts covers both orderings and a secret request that only the summary knows about, and fails without the fallback.

Tested on a POCO F4 (Android 14) with TalkBack and its "Display speech output" setting on, so spoken text shows on screen. The T3 Code Dev client ran this checkout's JS against an isolated dev server, with the free Replay (dev) provider's "Question" scenario: send "go", answer the question.

Before (main): the question appears and the turn finishes, and TalkBack says nothing about either.
Before: question shown and turn finished, TalkBack bubble shows only the app name or the last tapped control

After (ea217a37f4; the commits after it only change the side preview, which this screen doesn't use): "Needs your input" when the question appears, "Done" after answering.
After: TalkBack says Needs your input with the question card, then Done when the turn finishes

Before, recorded:

before.mp4

After, recorded:

after-head2.mp4

vp test run on the moved announcement tests, the background announcer tests and the new mobile test: 22 passed. vp run check:changed at 84bb1010c9: format, lint, knip, typecheck (41 packages), the tests beside the changes (10 files) and the React compiler check passed.

Not shown:

  • iOS VoiceOver. The iOS path is the same AccessibilityInfo call with queue: true.
  • "Working" in the recordings above. The Replay question arrives within a second, before the thread's detail catches up with its summary, and announcements wait for the detail, as on web. A follow-up turn in an existing thread said "Working" on the same phone at an earlier commit.
  • A hidden thread screen staying quiet, and a side preview naming its thread, were not exercised on a device. The side preview needs a tablet layout, and the tablet I could reach has no screen reader.

🤖 Generated with Claude Code

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

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant