From 084159c7eeb8efe98f29ca8310c81fe043d2aa07 Mon Sep 17 00:00:00 2001 From: xiweny <13230610+VALLIS-NERIA@users.noreply.github.com> Date: Sat, 12 Sep 2026 03:09:15 +0800 Subject: [PATCH] fix(ssh): import hosts without explicit HostName (#11598) Signed-off-by: Xiwen Yu <13230610+VALLIS-NERIA@users.noreply.github.com> --- tabby-electron/src/sshImporters.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tabby-electron/src/sshImporters.ts b/tabby-electron/src/sshImporters.ts index b13c27421..031b88f04 100644 --- a/tabby-electron/src/sshImporters.ts +++ b/tabby-electron/src/sshImporters.ts @@ -345,17 +345,18 @@ async function convertToSSHProfiles (config: SSHConfig): Promise = config.compute(host) - if (Object.keys(configuration).map(key => key.toLowerCase()).includes('hostname')) { - myMap[host] = await convertHostToSSHProfile(host, configuration) + const hasHostName = Object.keys(configuration).some(key => key.toLowerCase() === 'hostname') + if (!hasHostName) { + configuration.HostName = host } + myMap[host] = await convertHostToSSHProfile(host, configuration) } } }