Skip to content

Connections panel exposure preset control #8

Closed

Description

@Khang5687

Parent

Spec: #1 — Exposure as a set of listen interfaces (bind-hosts lane).

What to build

Replace the exposure on/off switch in Settings → Connections with a fork-only exposure preset control: Local only · Tailscale only · LAN · Custom. Custom reveals kind checkboxes (loopback locked on) and an IPv4 address list input. A read-only "Listening on" line shows the resolved addresses; resolver warnings render inline beneath it.

Any change that adds a non-loopback interface goes through the existing confirmation dialog, which also states that the backend will relaunch. The control reads selection, preset, resolved addresses, and warnings from the desktop network-access atom and never derives presets itself.

Exactly one edit lands in the upstream Connections settings file: the swap. UI copy uses fork vocabulary (exposure, listen interface, preset) and avoids "network access", "bind host", "mode".

Demo: pick Tailscale only → confirm → relaunch → "Listening on" shows the 100.x address; a LAN client is refused. Pick Custom and add an address not on this machine → the warning names it.

Acceptance criteria

  • All four presets are selectable; the preset shown matches the persisted selection after relaunch and after an app restart.
  • Custom: kinds toggle; loopback cannot be unchecked; an invalid IPv4 is rejected inline; the address list persists.
  • The confirmation dialog appears only when widening beyond loopback, includes the relaunch notice, and cancel leaves state unchanged.
  • "Listening on" and warnings reflect state; the tailnet-missing warning is visible when applicable.
  • The Tailscale Serve toggle is disabled when tailnet is not selected.
  • Atom test covers selection / preset / resolved / warnings; the component typechecks and lints; settings search still finds the Connections entries.
  • The diff to the upstream Connections file is the single swap; everything else is in a fork-only component.

Blocked by

Activity

  1. added
    ready-for-agent
    on Sep 6, 2026
  2. added a commit that references this issue on Sep 16, 2026
  3. Khang5687 commented on Sep 16, 2026

    @Khang5687
    OwnerAuthor

    Merged into fork-main via #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions