Repository navigation
fix(desktop): keep gateway recovery available offline - #1154
Merged
Merged
Conversation
Open Settings before the first gateway sync and expose desktop connection settings from the outage screen. Probe the saved HTTPS address with the existing Desktop pin and preserve the worker profile across address changes. Fixes: #68
nixuuu
enabled auto-merge (squash)
November 23, 2026 10:57
nixuuu
added a commit
that referenced
this pull request
Nov 24, 2026
## Changes - Show the local Desktop worker and the gateway address saved by the app in Workers and Desktop settings. Identify workers registered on the remote gateway separately and label stale worker data during an outage. - Open the existing local settings window from the outage UI. Put the saved address first when editing an existing connection. Address changes retain the paired credential, certificate pin, and worker profile for the same gateway. - Keep the worker’s own connection settings in its existing profile. Offline inspection or reassignment of a worker’s enrollment endpoint would be a separate feature. Thanks @marcinniewinski for reporting this. ## Verification - Verified `cb719e493` locally on Linux. Ran Electron with its renderer sandbox and an isolated Secret Service keychain. Checked initial pairing, reachable gateway settings, a cold start with the gateway unreachable, the prefilled address, native Cancel and Save, reconnection without a new pairing, and persistence across restart. An unchanged save closed the chooser without rewriting the configuration. - Also exercised an outage after a successful connection, startup recovery for an older unpaired profile, and the Workers and Desktop screens in local mode with its worker connected. - Ran the three focused Desktop test files through `check:tmp`. All 10 passed, including the bundled local gateway, PostgreSQL and worker, remote enrollment, TLS pinning, configuration validation, and restart durability. - Built the Linux Desktop runtime. Web typecheck, focused lint and formatting, and diff checks passed. Windows and macOS were not run locally. GitHub CI provides the merge gate. ## Copy audit - **This computer** now describes the local Desktop in remote mode. **Workers on the remote gateway** labels the gateway’s list, and the offline copy identifies when that list is stale or has yet to load. - **Open desktop settings** becomes **Edit gateway address** at remote recovery entry points. **Desktop gateway address** identifies the address used by the app. The form explains that an enrolled worker keeps its connection settings and gives the invitation path for switching gateways. - Checked the labels and address layout in Chromium at desktop width and a 390 px viewport. Actions and status labels use text. Related: #1154 --------- Co-authored-by: Damian Plewa <[email protected]>
This was referenced Nov 24, 2026
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.
Change
Verification
git diff --checkpassed locally.check:tmp. They cover configuration validation, recovery after changing the address and restarting, and rejecting a pairing route with the wrong pin.Copy audit
Fixes: #68