Skip to content

Prefer Tailscale machine names in the panel - #6930

Open
mintisan wants to merge 1 commit into
omacom:quattrofrom
mintisan:fix/tailscale-machine-name-display
Open

mintisan wants to merge 1 commit into
omacom:quattrofrom
mintisan:fix/tailscale-machine-name-display

Conversation

@mintisan

Copy link
Copy Markdown

Summary

Prefer Tailscale's editable machine name from DNSName over the device's OS HostName in the
Tailscale panel.

The machine name is user-editable in the Tailscale admin console and is the name displayed by
the Windows and macOS clients. Fall back to the OS hostname when no DNS name is available.

Testing

  • Added regression coverage for renamed machines
  • Verified fallback behavior when DNSName is missing
  • Ran the focused Tailscale shell test
  • Verified locally against real exit nodes with differing HostName and DNSName

Copilot AI balanced review requested due to automatic review settings August 15, 2026 07:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates Tailscale hostname display logic to prefer the machine’s DNS name (when available) rather than the OS hostname, and adjusts tests accordingly.

Changes:

  • Update displayHostName() to always prefer the short DNS name when present.
  • Refresh shell tests to cover renamed-machine DNS preference and OS-hostname fallback when DNS is absent.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/shell.d/tailscale-test.sh Updates assertions to match the new hostname selection behavior.
shell/plugins/panels/tailscale/Model.js Simplifies displayHostName() to prefer DNS-derived names over the provided hostname.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants