fix: honor SSH agent opt-out

This commit is contained in:
bincxz committed 2026-07-12 17:49:57 +08:00
1 parent 7cb722a5c5
commit 0046291376
14 files changed
+61 -13

No files matched your search

+3 -1
View File
@@ -149,7 +149,9 @@ export const resolveBridgeSshAgentAuth = (
addKeysToAgent?: string;
useKeychain?: boolean;
} => {
if (host.useSshAgent !== true || Boolean(certificate?.trim())) return {};
if (certificate?.trim()) return {};
if (host.useSshAgent === false) return { useSshAgent: false };
if (host.useSshAgent !== true) return {};
return {
useSshAgent: true,
identityAgent: host.identityAgent,