- _is_wayland_board() is x86-only, so gating the socket wait on it
skipped exactly the Pi 5 where ANTHIAS-19 fired. Gate on the
WAYLAND_DISPLAY env cage exports instead — set on x86/arm64/pi5
alike, unset on linuxfb/eglfs — so the wait engages on every cage
board (Copilot)
- Fold the wait into _spawn_webview_once's existing monotonic
deadline so the socket wait and the handshake share one
startup_timeout budget rather than stacking up to +10s on the
inline respawn path (Copilot)
- Drop the now-unused BROWSER_WAYLAND_SOCKET_WAIT_SECONDS constant
- Tests now drive the real env signals (incl. a DEVICE_TYPE=pi5 case
that fails if the wait is board-gated) and pass a monotonic deadline
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>