diff --git a/src/backend/database/routes/ssh.ts b/src/backend/database/routes/ssh.ts index da00dfd7..cf75f4f0 100644 --- a/src/backend/database/routes/ssh.ts +++ b/src/backend/database/routes/ssh.ts @@ -1239,15 +1239,19 @@ async function resolveHostCredentials(host: any): Promise { }; } } - - // Convert snake_case to camelCase for hosts without credentials + + const result = { ...host }; + if (host.key_password !== undefined) { + if (result.keyPassword === undefined) { + result.keyPassword = host.key_password; + } + delete result.key_password; + } const result = { ...host }; if (host.key_password !== undefined) { - // Only use the inline key_password if keyPassword hasn't been set by credential resolution if (result.keyPassword === undefined) { result.keyPassword = host.key_password; } - // Always remove the snake_case version to standardize the output delete result.key_password; } return result; diff --git a/src/ui/Desktop/Apps/Host Manager/HostManagerEditor.tsx b/src/ui/Desktop/Apps/Host Manager/HostManagerEditor.tsx index ad8e8d99..0fe881ef 100644 --- a/src/ui/Desktop/Apps/Host Manager/HostManagerEditor.tsx +++ b/src/ui/Desktop/Apps/Host Manager/HostManagerEditor.tsx @@ -877,8 +877,6 @@ export function HostManagerEditor({ | "credential"; setAuthTab(newAuthType); form.setValue("authType", newAuthType); - // Don't clear other auth fields - let them persist - // The backend will only use the fields relevant to the selected authType }} className="flex-1 flex flex-col h-full min-h-0" > diff --git a/src/ui/Desktop/Apps/Terminal/Terminal.tsx b/src/ui/Desktop/Apps/Terminal/Terminal.tsx index c4553b59..2de03a7d 100644 --- a/src/ui/Desktop/Apps/Terminal/Terminal.tsx +++ b/src/ui/Desktop/Apps/Terminal/Terminal.tsx @@ -512,7 +512,8 @@ export const Terminal = forwardRef(function SSHTerminal( cursorStyle: "bar", scrollback: 10000, fontSize: 14, - fontFamily: '"Caskaydia Cove Nerd Font Mono", "SF Mono", Consolas, "Liberation Mono", monospace', + fontFamily: + '"Caskaydia Cove Nerd Font Mono", "SF Mono", Consolas, "Liberation Mono", monospace', theme: { background: "#18181b", foreground: "#f7f7f7" }, allowTransparency: true, convertEol: true,