feat(ssh-terminal): add host setting to turn off password prompt auto-fill

This commit is contained in:
LukeGus committed 2026-09-28 20:51:16 -05:00
1 parent f0d720cf05
commit c5b2b880b6
8 files changed
+31

No files matched your search

@@ -1262,6 +1262,8 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
}
function maybeOfferPasswordFill(strippedData: string) {
if (hostConfig.terminalConfig?.passwordPromptAutoFill === false) return;
// PTY output can split a short prompt like "[sudo] password for user: "
// across multiple WebSocket chunks, so match against a rolling buffer
// of recent output rather than each chunk in isolation.
@@ -28,6 +28,7 @@ export interface TerminalConfig {
startupSnippetId: number | null;
autoMosh: boolean;
moshCommand: string;
passwordPromptAutoFill?: boolean;
sudoPasswordAutoFill: boolean;
sudoPassword?: string | null;
keepaliveInterval?: number;