Skip to content

Host tells the truth: the screen reader's state, reduce transparency, unimplemented components - #536

Open
NateIsern wants to merge 5 commits into
mainfrom
fix/host-tells-the-truth
Open

NateIsern wants to merge 5 commits into
mainfrom
fix/host-tells-the-truth

Conversation

@NateIsern

Copy link
Copy Markdown
Member

Closes three places where the Bloom host answered as Android does without it being true (found by the desktop interaction coverage audit, docs/desktop-interaction-coverage.mdx).

What changes

  • Applications are told whether the screen reader runs (ADR 0014, decision 8; protocol version 40, ADR 0033). The compositor sends ScreenReaderState (event 182) to every client as it connects while the reader runs, and whenever the reader starts or stops (Super+F5, --reader-on, the reader quitting or crashing). Clients of version 39 or older are never sent it and read that no reader runs, as before. The host answers React Native's AccessibilityInfo.isScreenReaderEnabled and isAccessibilityServiceEnabled from it, and fires screenReaderChanged / accessibilityServiceChanged once per start and stop. C ABI: OXYOS_EVENT_SCREEN_READER.
  • Reduce Transparency is answered (ADR 0019). React Native's Android AccessibilityInfo returned false without asking; OxyOS's variant asks the host, as iOS asks its own, and reduceTransparencyChanged follows the setting.
  • Unimplemented native components are said, not silent (unimplemented-components.h). A component the host has no implementation of (AndroidProgressBar, AndroidSwitch, ...) is still drawn as a plain view, but logged once per process and reported. regress.py fails a scenario that draws one it does not declare in unimplemented, or declares one no host drew.

Tests

  • Unit: tests/reader_state.rs (who is told what, and when; nothing while unchanged), oxyos-client reading each change and nothing from a version-39 compositor, test_regress.py for the unimplemented check.
  • Scenarios, run on seldon with the real reader process: accessibility-info (new: reader on from the start, then Super+F5 off, on, off; Reduce Transparency on and off; each answer and change event listed exactly) and android-adaptation (no reader: false; declares AndroidProgressBar). Both pass on aa168e82.

Notes

  • test_regress.ARunSeesOnlyItsOwnProcesses.test_two_runs_at_once_each_see_only_their_own (from main, 598fb8a) fails intermittently locally (about 1 in 3: [2, 1] != [2, 2], without namespaces). It is untouched here and fails the same way independently of this branch.
  • Bloom at its pinned commit (688b748) reads Reduce Transparency through AccessibilityInfo on iOS only, and the appearance capability on OxyOS, so nothing in Bloom needs to change.

🤖 Generated with Claude Code

NateIsern and others added 3 commits November 10, 2026 00:01
… unimplemented components

WIP for the gate machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nimplemented components

ADR 0014 decision 8 (applications are told whether the reader runs), ADR 0019's
reduce transparency now answered, ADR 0033 versions 39 and 40, the Android
adaptation and coverage documents. accessibility-info: the reader's start is
said before the first step, as in every reader scenario. android-adaptation:
the window is tall enough for its two new rows and the ActivityIndicator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/desktop-interaction-coverage.mdx
@NateIsern
NateIsern enabled auto-merge November 10, 2026 01:22
@NateIsern
NateIsern added this pull request to the merge queue Nov 10, 2026
@NateIsern
NateIsern removed this pull request from the merge queue due to a manual request Nov 10, 2026
Main took protocol version 40 (SuddenTermination): ScreenReaderState is now
version 41. The host's sources list takes main's js-thread.cpp and this
branch's unimplemented-components.cpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NateIsern
NateIsern enabled auto-merge November 10, 2026 07:45
@NateIsern
NateIsern added this pull request to the merge queue Nov 10, 2026
NateIsern added a commit that referenced this pull request Nov 10, 2026
's screen reader state)

VERSION, TURNS_VERSION, the version tables, the tests (a client of version 41 or older is never
sent TurnEnd and is read event by event) and ADR 0033's row. Event 83 collides with neither
#536's (182) nor #521's (75; requests 85, 113, 114).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NateIsern added a commit that referenced this pull request Nov 10, 2026
Versions 41 to 45 are other changes' (#536, #548, #521, #500, #541); event 175 collides with none of
theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NateIsern
NateIsern removed this pull request from the merge queue due to a manual request Nov 10, 2026
…eir reason

Settings' Passwords draws a working button's spinner (Bloom's Button
`loading`, an ActivityIndicator, React Native's AndroidProgressBar, which
the host has no implementation of) only when the keychain's answer takes
longer than a frame: on a loaded machine. The exact `unimplemented` check
then failed settings-passwords by its timing. A scenario now declares such a
component in `unimplemented_sometimes`, each with its reason; one declared
both ways, or without a reason, fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant