From f30d0c12396218bee61ee227d940a647123012ff Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Wed, 31 Dec 2025 19:12:55 -0500 Subject: [PATCH] fix(prompt): add stdin.pause() to prevent process hang after password input Fixes #236. The password() method called resume() on stdin but never paused it in cleanup, keeping the event loop alive indefinitely. --- src/utils/prompt.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/prompt.ts b/src/utils/prompt.ts index ae15b382..4b4c3b50 100644 --- a/src/utils/prompt.ts +++ b/src/utils/prompt.ts @@ -174,6 +174,7 @@ export class InteractivePrompt { process.stdin.setRawMode(false); } process.stdin.removeListener('data', onData); + process.stdin.pause(); }; const onData = (data: Buffer): void => {