fix: honor SSH agent opt-out

This commit is contained in:
bincxz
2026-07-12 17:49:57 +08:00
parent 7cb722a5c5
commit 0046291376
14 changed files with 61 additions and 13 deletions
+7 -2
View File
@@ -33,9 +33,14 @@ export const useApplicationBackend = () => {
return info ?? null;
}, []);
const checkSshAgent = useCallback(async (identityAgent?: string): Promise<SshAgentStatus | null> => {
const checkSshAgent = useCallback(async (options?: {
identityAgent?: string;
hostname?: string;
port?: number;
username?: string;
}): Promise<SshAgentStatus | null> => {
const bridge = netcattyBridge.get();
const status = await bridge?.checkSshAgent?.(identityAgent);
const status = await bridge?.checkSshAgent?.(options);
return status ?? null;
}, []);