Tailscale panel: exit node rows show OS hostname instead of MagicDNS name
What happens
The Tailscale panel's EXIT NODES list labels a node with its OS hostname. Every other Tailscale client — the CLI, the tsui TUI, and the admin console — uses the MagicDNS name, so the panel disagrees with all of them.
On my tailnet, one machine has HostName: "Firezone" and DNSName: "ny-exit-node.tailcb223.ts.net":
| Client | Label |
|---|---|
tailscale exit-node list |
ny-exit-node |
tsui 0.2.0 |
ny-exit-node |
| Tailscale admin console | ny-exit-node |
| Omarchy panel | Firezone |
The panel shows atl-exit-node, Firezone, sfo-exit-node where every other tool shows atl-exit-node, ny-exit-node, sfo-exit-node. It reads as though one exit node is missing and an unrelated machine has appeared.
Why it matters
In the MACHINES list a name is a friendly label, and the OS hostname is genuinely the nicer choice. In EXIT NODES it is an identifier you cross-reference against tailscale exit-node list, the admin console, and tailscale set --exit-node=. Those should agree.
Cause
displayHostName (shell/plugins/panels/tailscale/Model.js:32-36) prefers HostName, falling back to MagicDNS only when it is empty or localhost. peerFromStatus uses it for both HostName and DisplayName, and the exit node row renders DisplayName at Panel.qml:1121.
This is cosmetic only — exitNodeTarget → peerAddress (Service.qml:128-133) already prefers DNSName, so selecting the row runs the correct tailscale set --exit-node=ny-exit-node.tailcb223.ts.net.
Suggested fix, and what not to do
Add an exitNodeLabel(peer) helper used only by exit node rows, preferring shortDnsName(peer.DNSName) and keeping DisplayName for Mullvad region rows (which need "Stockholm, Sweden", not a .mullvad.ts.net host).
displayHostName should not be changed globally. On my 367-peer tailnet, 169 peers have a HostName differing from their MagicDNS name, but ~132 are pure slugification (Dana's MacBook Pro → danas-macbook-pro), where the OS hostname is the better label. Of the 37 semantically different names, 34 are localhost — already handled by the existing !== "localhost" guard, which is why the list shows iphone172-3 and not 34 rows named "localhost". A global flip would degrade the machine list to fix one exit node row.
Environment
- omarchy-dev 4.0.0.r2031.g41b6cc6-1 (quattro)
- tailscale 1.102.3
- Tailnet with 367 peers, 3 exit nodes
Confirmed on quattro at 3882c27cf, by reading the source. displayHostName in shell/plugins/panels/tailscale/Model.js returns HostName unless it is empty or localhost. peerFromStatus uses that for DisplayName, and ExitNodeRow in Panel.qml renders DisplayName. Choosing the row still targets the DNSName (peerAddress in Service.qml), so the label is wrong but the action is right, as described.
#10510 already fixes this, and it links this issue, so merging it will close this one. It adds exitNodeLabel for exit-node rows only, keeps Mullvad region names, and leaves the MACHINES list alone. It is being reviewed and verified as its own item, so no second fix will be opened here.
Two older pull requests also change this label, by changing displayHostName everywhere: #6930, and #13248, which builds on it. Those would rename the MACHINES rows too, which this report argues against. Choosing between the narrow fix and the global change is the maintainer's decision.
This was checked by Claude Opus 5.5 and, as a second opinion, Codex at medium effort, which confirmed the cause and the scope of #10510 from the source. Codex was not independent: it had my questions in front of it. This is now waiting on the maintainer.