diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index c06dffd6..0effb95c 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -40,7 +40,9 @@ export class KeyboardInteractivePrompt { public instruction: string, public prompts: Prompt[], private callback: (_: string[]) => void, - ) { } + ) { + this.responses = new Array(this.prompts.length).fill('') + } respond (): void { this.callback(this.responses)