Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
mobile-relay-diagnostics-payload.ts— introducesMobileRelayDiagnosticsStatus(MobileRelayStatus | 'unreadable') and areadRelayStatusForDiagnostics()helper that returns'unreadable'whenever the status lookup throws or rejects, keeping a host-answeredofflinedistinct from a lookup that observed nothing.MobilePage.tsx/MobilePane.tsx— movesawait collectMobileRelayDiagnosticsPayload(...)inside thetryso a future collector rejection still surfaces the failure toast instead of a silent dead click.mobile-relay-diagnostics-payload.test.ts— three collector cases:unreadableon rejection,unreadablewhen themobilebridge is absent (exercising the synchronous-throw path), andofflinewhen the host actually answers offline.
The fix is well-scoped and the tests are meaningful (each would fail against the prior .catch(() => 'offline') / unwrapped-await behavior). The unreadable vocabulary correctly mirrors the ssh-execution-boundary.md principle without polluting MOBILE_RELAY_STATUSES, and the payload type has no consumers beyond the two Copy-diagnostics buttons, so the widening is safe.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
nwparker
force-pushed
the
fix/18211-lan-mode-applies-to-paired-devices
branch
from
September 11, 2026 08:10
9ce1902 to
13eee7e
Compare
Two problems in the same newly-extracted collector, both in the artifact a user pastes into a bug report. `.catch(() => 'offline' as const)` reported the definite neighbour for a lookup that observed nothing, so a support engineer could not tell a host that reported offline from one that never answered. It now reports `unreadable`. And the collector could reject: `window.api.mobile.getRelayStatus()` throws synchronously when the bridge has no `mobile` — before `.catch` is attached — while both call sites fire this as `void copyRelayDiagnostics()` with the await sitting AHEAD of their try/catch. Measured: the click wrote no clipboard and showed no toast at all, where the pre-extraction inline payload build could not fail. The collector is total now, and the await moved inside the try so a future addition cannot silently kill the toast again.
nwparker
force-pushed
the
nwparker/mobile-relay-status-unreadable
branch
from
September 11, 2026 08:13
42ec350 to
a8a8a95
Compare
Clean auto-merge. MobilePage/MobilePane were touched by both sides; verified the base's mint-override split (recoverWithLanMint) survives intact.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Two problems in the same newly-extracted diagnostics collector — both in the artifact a user pastes into a bug report, which is the one place a wrong answer costs a support engineer a round trip.
1.
offlinewas asserted for a status nobody read.catch(() => 'offline' as const)reported the definite neighbour for a lookup that observed nothing. A support engineer could not tell a host that genuinely reported offline from one that never answered at all.It reports
unreadablenow. This is the same distinctiondocs/reference/ssh-execution-boundary.mddraws for execution verdicts: loss of contact is not evidence of a state.2. The collector could reject, and killed the whole interaction
window.api.mobile.getRelayStatus()throws synchronously when the bridge has nomobile— before.catchis attached. Both call sites fire this asvoid copyRelayDiagnostics()with theawaitsitting ahead of theirtry/catch.Measured: the click wrote no clipboard and showed no toast at all. Not a wrong diagnostic — no response whatsoever to a button press. The pre-extraction inline payload build could not fail this way, so this was introduced by the extraction.
The collector is total now, and the
awaitmoved inside the try, so a future addition cannot silently kill the toast again.Base
maindoes not work — the collector this fixes is introduced byfb135c95f71"share the diagnostics payload with the settings pane", which is in #19870's stack. This is a fix for a defect in that extraction. Merge order: #19870 → this.Verification
tsc --noEmit -p config/tsconfig.node.jsonclean ·src/renderer/src/components/mobile+src/renderer/src/components/settings— 184 files / 1208 tests passed, 0 failures.Note for anyone re-running: these are renderer tests and need
vitest run --config config/vitest.config.ts. Invokingvitestwithout it silently fails to resolve the@/alias and reports 144 files failing with 0 test failures — an infrastructure error that looks nothing like a real regression and reproduces identically on the untouched base.oxlintclean ·oxfmt --checkclean. Cherry-picked fromnwparker/adv3-failure-fixes, which has no PR.Rebase record (2026-09-11)
Stack preserved: base stays
fix/18211-lan-mode-applies-to-paired-devices(#19870), rebased ontomainat5fa62feda7c264c6eda99ba4788ffebab9aae26cfirst. Replayed withgit rebase --onto 13eee7eacf8a6fcd4bb77ff680d18f727fca1171 9ce190247edbdb508b452e8c62a63c4c2cdd0089.42ec350247d40d6fc40f4155f040198653f16459a8a8a954c72b3e21fdc73240cb2b7d7a0a62717013eee7eacf8a6fcd4bb77ff680d18f727fca1171No conflicts.