fix(fleet): align migration SSH parity docs
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jarvis
2026-07-16 06:13:03 -05:00
parent 66ac59af49
commit fce489269a
3 changed files with 43 additions and 7 deletions

View File

@@ -778,8 +778,8 @@ function classifyAgentLocality(
if (hasSsh) {
if (!ssh) return 'ambiguous';
const separator = ssh.lastIndexOf('@');
const sshHost = separator >= 0 ? ssh.slice(separator + 1) : undefined;
if (!sshHost || sshHost !== host) return 'ambiguous';
const sshHost = separator >= 0 ? ssh.slice(separator + 1) : ssh;
if (sshHost !== host) return 'ambiguous';
}
return host === fleetHost ? 'local' : 'remote';
}