mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
#6387 (register reset-password subcommand + non-TTY stdin path) made bin/reset-password.mjs read a piped (non-TTY) stdin all at once — first line is the password — and stop printing the interactive 'Enter new password' / 'Confirm new password' prompts. The unchanged test helper only wrote the password after SEEING those prompts and only closed stdin after the confirm prompt, so against the non-TTY CLI it never fed input nor closed stdin: the child blocked forever on stdin-end and the whole unit shard wedged at the 25min CI timeout (cancelled 3x). Feed the password + child.stdin.end() immediately, matching the non-TTY contract. Now deterministic: 3/3 pass locally in ~7s (no skip, real CLI run).