mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
Separate from the env leak above, and unproven against the CI failure it resembles: this is robustness, not a diagnosed fix. screenReaderMode is an option on the xterm instance and the accessibility tree belongs to that instance's DOM. The SSH cold-activation spec set it once, imperatively, then waited on the node. A pane that parks and remounts, or rebinds after a reconnect, comes back as a new instance with the option off, so the one-shot mutation stops producing the node the wait is waiting for and the wait reports "element(s) not found" rather than a content mismatch. The helper re-applies the option inside the poll and returns null when the node is absent, so a replaced instance is retried instead of being fatal. Five other specs still use the one-shot pattern and are left alone.