Custom coordination server and other prefs reset when the helper restarts
Version: v0.1.15. Found by reading the code, not reproduced.
handleInit starts tsnet.Server{Dir, Hostname: "browser-ext", RunWebClient: true} (host/host.go:447-452). In the pinned tailscale.com, tsnet.Server.start builds fresh prefs (ipn.NewPrefs() with Hostname, WantRunning, ControlURL from TS_CONTROL_URL or the default, RunWebClient, AdvertiseTags) and passes them as ipn.Options.UpdatePrefs to LocalBackend.Start, which replaces the stored prefs with them (only Persist is kept). The helper then applies startupPrefs() (RouteAll: true).
On the extension side, the init message carries only the profile ID and wantRunning (packages/shared/src/background/native-host.ts:113-118), and after Running the background restores only the selected exit node (background.ts:845-851).
So after a browser or helper restart we would expect these to be back at their defaults:
- a custom coordination server set from the popup (the node would talk to the default control server again),
- the hostname,
- Allow LAN access, Shields Up, advertised routes / exit node,
- "use subnet routes" turned off by the user.
If some of these are meant to persist, re-sending them after init (or passing them into tsnet.Server, for example ControlURL) would fix it. If they are not meant to persist, a note in the docs would help.
In addition to the above, the extension no longer accepts values for the "Custom Coordination server" setting, returning the error: "The helper could not save that setting." The only fix is to perform a reinstallation via the helper.