Commit 5535688
committed
fix(inquirerer): apply inactivity timeout to all environments, not just non-TTY
The timeout was gated behind `!input.isTTY`, so it only fired in
non-TTY environments (CI, pipes). This meant running a CLI command
from a real terminal without required arguments would show an
interactive prompt instead of timing out with usage info.
Remove the isTTY guard so the timeout applies universally. The
reset-on-keypress design already protects interactive users — the
timer resets on every keystroke, so it only fires when nobody is
typing.1 parent 76f01d3 commit 5535688
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | | - | |
1473 | | - | |
| 1472 | + | |
1474 | 1473 | | |
1475 | 1474 | | |
1476 | 1475 | | |
| |||
1508 | 1507 | | |
1509 | 1508 | | |
1510 | 1509 | | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1514 | 1513 | | |
1515 | 1514 | | |
1516 | 1515 | | |
| |||
0 commit comments