Skip to content

[upstream-bound] WSL backend bind host follows exposure (upstream #9056) #2

Open

Description

@Khang5687

Parent

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

What to build

On Windows with the WSL backend, the backend listens where the user's exposure says instead of always on every interface. Local-only → the backend binds 127.0.0.1 inside WSL and the desktop reaches it through WSL2 localhost forwarding. Network-accessible → 0.0.0.0, as today.

This is expressed entirely in upstream's two-valued exposure model so the commit can be cherry-picked into a PR against pingdotgg/t3code. It is the first commit in the fork-main stack (ADR 0001) and must not introduce any fork vocabulary (listenInterfaces, presets).

Best-effort: no WSL machine is available to verify. The commit/PR text states the localhost-forwarding assumption and asks a WSL user to confirm.

Acceptance criteria

  • With exposure local-only, the WSL backend launch configuration binds 127.0.0.1; with network-accessible it binds 0.0.0.0.
  • No hardcoded wildcard remains in the WSL backend launch path.
  • The existing WSL backend configuration tests (resolveWsl) cover both modes and pass.
  • Native (non-WSL) backend behaviour is unchanged; server and desktop suites green.
  • Touches only files upstream owns; no fork-only vocabulary or modules.
  • Commit is tagged [upstream-bound], references [Bug]: WSL backend binds 0.0.0.0 while "Network access" is off and the UI says "Limited to this machine" pingdotgg/t3code#9056, and states "relies on WSL2 localhost forwarding; unverified on a real WSL machine".

Blocked by

  • None — can start immediately.

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