feat(companion): instant off-LAN startup + same-node apps stay in-app #114

Merged
lfg2025 merged 1 commits from feat/fast-start-same-node into main 2026-07-23 23:12:16 +00:00
Owner

Startup races LAN (2.5s) vs mesh ULA before creating the WebView — no more minute-long Chromium stall off-LAN. Same-node detection matches both node addresses so Pine/HA/BTCPay stay in the app over the mesh. APK 0.5.6/vc26.

🤖 Generated with Claude Code

Startup races LAN (2.5s) vs mesh ULA before creating the WebView — no more minute-long Chromium stall off-LAN. Same-node detection matches both node addresses so Pine/HA/BTCPay stay in the app over the mesh. APK 0.5.6/vc26. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lfg2025 added 1 commit 2026-07-23 23:12:10 +00:00
Two field reports from tonight's 5G session:

- 'Stuck connecting': the kiosk WebView always loaded the LAN URL first,
  and Chromium burns a minute+ of connect retries on a dead LAN IP before
  the mesh fallback fires. WebViewScreen now races a raw TCP probe — LAN
  gets 2.5s, else the mesh ULA (patient, 12s) — BEFORE creating the
  WebView, so startup lands on the right origin in seconds either side.
  Retry re-races instead of blindly reloading the LAN URL.
- Pine/Home Assistant/BTCPay opened in the external browser over the
  mesh: same-node detection compared one host, but the node has two (LAN
  origin + mesh ULA) — kiosk loaded via the ULA meant app links failed
  isSameHost and routeOutbound bounced them to the browser. Same-node now
  matches either address, in the kiosk router, SSL allowances and the
  InAppBrowser.

Served APK: 0.5.6 (vc26). Note: the binary also carries the in-flight
listen_port groundwork from the dev-box session's archy-fips-core WIP
(compiles clean, default posture unchanged); its source lands separately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lfg2025 merged commit 881b9ee0bf into main 2026-07-23 23:12:16 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lfg2025/archy#114
No description provided.