Repository navigation
Description
Problem & intent
On Linux, an Electron application exposes no accessibility tree to cua unless it was started with --force-renderer-accessibility. Without the tree, cua sees only the X11 fallback: one node, no elements to click or type into. Measured in #171's application-family matrix (M0.4, docs/evidence/2026-10-28-own-linux-engine/m0/matrix/README.md, Electron 44.9.0 fixture). This held even with the session bus's org.a11y.Status IsEnabled already true, the switch that turns on Qt's bridge. Both of OpenAI's helper builds and cua's own engine behave the same, so this is not a regression. But Electron apps (VS Code, Slack, Obsidian, Discord and others) are common agent targets, and with no tree, agents get far less control over them.
Intent: Electron apps that cua drives on Linux expose their tree, without the person having to restart them by hand with a flag.
Known facts
- Chromium on Linux turns on its AT-SPI tree for an assistive technology it detects, or always with
--force-renderer-accessibility. Chrome itself exposed its tree on the Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 VM without the flag; the Electron fixture did not. - cua already intercepts
launch_appon Linux (it launches throughgiounder its supervisor; Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 research A §1.5), so it could add the flag, or an environment variable that has the same effect, for apps it starts. - An app the person started themselves cannot be changed without a restart.
Constraints
- Changing how an app starts is visible to the person: only for apps cua launches, and documented.
- No vendor code.
Success criteria
- An Electron app started through cua's
launch_appon Linux returns its AT-SPI tree inget_window_state. - For an Electron app started without it,
cua doctoror the observation names the reason and the fix in one sentence instead of returning a bare one-node tree.
Open questions
- How to detect an Electron app before launch (desktop entry, the binary, a list) and after (ToolkitName
Chromiumwith a non-Chrome class). - Is there an environment variable or a session setting that Electron honours, so nothing is added to the command line?
- Does the same apply to Chromium-embedded apps that are not Electron (CEF)?
Decision log
- 2026-10-28 (Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 M0.4, design session): Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 documents the limitation in M5's known limitations and does not change launch behaviour. This ticket holds the improvement. Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 M3's provisioning sets
IsEnabledfor Qt.
Activity
SSFSKIM commentedon Oct 28, 2026
[board] ready-for-architect: From #171 M0.4 matrix; both engines alike; launch-time enabling to design
#228 pre-flight: the four taste calls ruled (1 and 2 the owner's, 3 a…
#228: a tracker line for ancestry-watch's racy refusal sentence (ruli…
#228 T1 fix wave 1: the ask's calls stay on their connection, and a f…
#228 T1 fix wave 1: the live tests can fail, and G 7 is measured agai…
#228: merge main (511dd26, #605: launch_app answers when gio exits)
#228: merge T1 (task 179): the engine asks a bare Electron frame's ap…
#228 pre-flight: T1 as built (Decision Log)
#228 T4 fix wave 1: a Linux launch_app in any other shape is refused;…
#228: merge T4 (task 182): launch_app sets ACCESSIBILITY_ENABLED=1, a…
#228 pre-flight: T4 as built, and §G 10's substitution (Decision Log)
17 remaining items
#228 T5: the acceptance driver through the confined service, and its run
#228 T5: the acceptance's evidence at 47c565c: §G 1 and 3 pass throug…
#228 T6 fix wave 3: a bare read can ask, a retry does not ask again, …
#228: merge T6 (task 184): the documents say what the engine does
#228: merge T5 (task 183): pin linux-engine 0.4.7, MIN_ENGINE_VERSION…
#228 pre-flight: Outcomes, the release, the pin and the acceptance th…
#228 final fix: the acceptance again at 26f48fb, through a proven pri…
#228 final fix 2: the session proof deletes nothing, resolves its hom…
#228 final fix 2: the acceptance again at 92d2c29
#228: merge the whole-branch review's fixes: the server's own version…
#228: an Electron app's accessibility tree on Linux without the flag …
SSFSKIM commentedon Nov 28, 2026
[board] done: Landed via PR #613 (bf594e1, cua 0.31.0, linux-engine 0.4.7).
#604: a failed secret on Linux says "nothing was entered" when the ve…