Repository navigation
Description
Parent
Spec: #1 — Exposure as a set of listen interfaces (bind-hosts lane).
What to build
The first end-to-end tracer through the CLI and server.
--host, T3CODE_HOST, and the desktop bootstrap envelope accept comma-separated kind keywords (loopback, tailnet, lan) and/or IPv4 addresses. --host may be repeated and values union. A legacy single IP and 0.0.0.0 keep their current meaning. Anything else fails fast with a message listing the accepted forms. Help text is updated.
The server config holds a selection. At launch the resolver runs against the real interface map and the first resolved address feeds the already-prefactored readers (bind, auth policy, runtime state, startup output). If more than one address resolves, bind the first and emit a warning — a temporary state removed by the multi-bind ticket. Resolver warnings surface in runtime state and startup output.
Demo: t3 serve --host tailnet → reachable on the 100.x address, the LAN address is refused, the pairing URL uses the tailnet address. With Tailscale down → loopback only, warning printed.
Acceptance criteria
- CLI precedence suite: every accepted
--hostform; repeated flags union; flag > env > bootstrap precedence unchanged; legacy IP and wildcard; the error message for an unknown token lists accepted forms. - Seam 1:
--host tailnetwith an injected map lacking a CGNAT address → only127.0.0.1accepts; runtime state carries the loopback-only warning; policy loopback-only. - Seam 1:
--host loopback→127.0.0.1accepts,[::1]refused, policy loopback-only. - Seam 1: a selection resolving to a non-loopback address → policy
remote-reachable; session-cookie naming follows the same predicate. - Startup output (connection string, pairing URL, QR) uses the first non-loopback resolved address, else loopback.
- Legacy
--host 0.0.0.0remains a single wildcard listener withremote-reachable(the characterization case still passes). -
t3 pairunchanged and green. - The server depends on the tailscale package only for the resolver; no
tailscaleCLI invocation anywhere on the server.
Blocked by
- Server reads one resolved listen address instead of the raw host string (prefactor + Seam 1 harness) #3 — server reads one resolved listen address (prefactor + Seam 1 harness)
- Listen-interface selection, presets, and resolver (pure) #4 — listen-interface selection, presets, and resolver
Activity
--host tailnet,lanand custom lists #6Merge pull request #12 from Khang5687/feat/tailnet-only
Khang5687 commentedon Sep 15, 2026
Merged into fork-main via #12. Loopback interim recorded in ADR 0003 and pinned on #6.