orca/mobile/src/diagnostics
Jinwoo Hong 9c111fd7aa
mobile: per-host connection log screen with copy-diagnostics (#7984)
The rpc-client has always emitted a detailed connection lifecycle log
(dials, timeouts, close codes, handshake steps, retries) via onLog, but
only the pairing screen wired it up — for long-lived host connections
everything went to console.log, invisible to users. Debugging reports
like #7824/#6928 meant asking reporters for facts the app already knew.

- connection-log-buffer: bounded (200/host) module-level ring buffer with
  referentially-stable snapshots for useSyncExternalStore; survives
  client swaps and provider remounts.
- client-context: wire onLog for every shared host client.
- connection-log screen: live per-host log (reuses the pairing
  ConnectionLog component), host picker, and a Copy Diagnostics button
  that bundles app/platform versions, endpoint (flagged if Tailscale),
  state, attempt count, last-connected, and the event log into one
  shareable blob.
- troubleshoot: 'View connection log' entry point.

Co-authored-by: Orca <help@stably.ai>
2026-07-09 16:20:07 -07:00
..
connection-diagnostics-report.test.ts mobile: per-host connection log screen with copy-diagnostics (#7984) 2026-07-09 16:20:07 -07:00
connection-diagnostics-report.ts mobile: per-host connection log screen with copy-diagnostics (#7984) 2026-07-09 16:20:07 -07:00
diagnostic-fetch-timeout.test.ts
diagnostic-fetch-timeout.ts Add braces to mobile control flow (#4351) 2026-05-31 21:32:37 -07:00
host-reachability.test.ts mobile: recover from wedged Tailscale tunnels and say 'check Tailscale' when it's the likely culprit (#7980) 2026-07-09 15:56:25 -07:00
host-reachability.ts mobile: recover from wedged Tailscale tunnels and say 'check Tailscale' when it's the likely culprit (#7980) 2026-07-09 15:56:25 -07:00
troubleshoot-common-issues.tsx mobile: recover from wedged Tailscale tunnels and say 'check Tailscale' when it's the likely culprit (#7980) 2026-07-09 15:56:25 -07:00