Skip to content

Turning off "Run a local gateway" shows a default-port crash page on restart instead of a remote crew config/selection page #6138

Description

@buluoray

What

When the "Run a local gateway" setting is turned off, the next restart lands on a crash / error page stating that no port is connected on the default gateway port, instead of routing the user to their Remote Crew(s).

Because the local gateway is intentionally not running, there is nothing listening on the default local port — so the app treating "default local port unreachable" as a fatal crash is the wrong behavior. The user is left staring at a dead-end error screen with no obvious path to their remote crews or to setting one up.

This is wrong in both states:

  1. Remote crews already configured → should land on a remote crew selection page, not a crash page.
  2. No remote crews configured → should land on a remote crew setup page that guides the user to add one, not a crash page. This second case is the more damaging one: the user has turned off local, has nothing remote yet, and the app dead-ends with a port error instead of the exact setup flow they need.

Why

This is a bad UX for anyone running in remote-only mode (e.g. gateway on a dev-dsk via Amazon Tunnels, with "Run a local gateway" turned off). The app already knows "Run a local gateway" is off by user choice, so a "local port not connected" state is expected, not an error. Surfacing a crash page — especially when no remote crew exists yet — makes the feature feel broken and hides the very configuration the user needs to make it work.

Expected behavior

When "Run a local gateway" is off, the app should never show the default-port crash/no-connection page. Instead:

  • If one or more remote crews are configured: show a clean Remote Crew selection page — list the configured remote crews and let the user connect to one, or add/edit a remote host.
  • If no remote crews are configured: show a Remote Crew setup page (empty state) that walks the user through adding their first remote crew — host, port, connection details — rather than a port-connection error.

In short: treat a disabled local gateway as a first-class mode, and default the landing view to remote crew selection (populated) or remote crew setup (empty), depending on config state.

Additional Context

  • Repro (configured): turn off "Run a local gateway" with a remote crew set up, then restart → crash page instead of the selection page.
  • Repro (unconfigured): turn off "Run a local gateway" with no remote crew configured, then restart → crash page instead of a setup flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: packagingInstaller, uninstaller, Electron shell, updaterbugSomething is not workingneeds-investigationTriage: requires deep analysis before a fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions