Repository navigation
Conversation
liamdevss
marked this pull request as ready for review
November 29, 2026 09:56
liamdevss
approved these changes
Nov 29, 2026
liamdevss
left a comment
Contributor
There was a problem hiding this comment.
Checked locally: the new test fails on main and passes with the fix. Thanks for this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #127
TailscaleDevices::link()previously checked whether each unlinked device matched exactly one remaining machine, but not whether multiple devices matched that same machine. When duplicate tailnet devices shared a hostname, whichever row was processed first could be linked arbitrarily.This change counts eligible hostname candidates before linking any rows and only uses a hostname match when exactly one unlinked, non-external device matches that machine. Address and endpoint matches still take precedence. A feature test covers two devices sharing one machine hostname and expects both to remain unlinked.
Testing: Not run locally. This environment has no Git, PHP, or Composer installation, so the Tailscale feature test and project checks could not be run here. Please run CI and
php artisan test --compact tests/Feature/Integrations/TailscaleTest.phpbefore marking this ready.AI disclosure: This change was prepared with AI assistance; the author should review the code and test before marking the PR ready.