bug: `paseo daemon set-password` exits immediately without reading on Windows with desktop version
What's broken
On Windows, running paseo daemon set-password through the CLI bundled with the Paseo desktop app briefly displays the password prompt, but then exits immediately without allowing any keyboard input.
This is not an issue with password characters being hidden or masked. The process appears unable to read from stdin at all.
The same behavior occurs in both PowerShell (pwsh) and Command Prompt (cmd.exe).
Workaround: Running the standalone npm CLI through the regular Windows node.exe may avoid the Electron stdin issue.
npx -y @getpaseo/cli daemon set-password
Steps to reproduce
- Install the Paseo desktop app on Windows.
- Install or enable its bundled CLI.
- Open either PowerShell or Command Prompt.
- Run:
paseo.cmd daemon set-password
Where did this happen
Desktop (Electron)
Paseo version
0.1.110
OS version
Windows 11
Agent provider
None
Provider configuration
No response
Logs
Screenshots or video
C:\Users\chenx>C:\Users\chenx\AppData\Local\Programs\Paseo\resources\bin\paseo.cmd daemon set-password
│
◆ New daemon password
│ _
└
C:\Users\chenx>
does npx -y @getpaseo/cli daemon set-password accept the password on the same machine?
does
npx -y @getpaseo/cli daemon set-passwordaccept the password on the same machine?
Yes. It works with npx.
This remains a current Windows desktop CLI bug. The bundled Windows shim still runs the CLI through Electron-as-Node, while the reporter confirmed the standalone npm CLI accepts input on the same machine. The proposed fix in PR 2414 was closed unmerged, so it does not establish a landed fix.
Keeping this open as P2 because it is limited to the Windows desktop-bundled CLI and npx -y @getpaseo/cli daemon set-password is a verified workaround.
@chenx-dust, does paseo daemon set-password from the CLI bundled with the desktop app still exit without reading your input on the current release, v0.11.4? If it does, please paste what it prints.
A reply here sends this back to diagnosis. If there's no reply in 14 days I'll close the issue, and a reply after that reopens it.
Current situation:
PS C:\Users\chenx> C:\Users\chenx\AppData\Local\Programs\Paseo\resources\bin\paseo.cmd daemon set-password
Error: paseo daemon set-password needs a terminal to read the password
Run it in an interactive terminal, or set PASEO_PASSWORD in the daemon's environment instead.
PS C:\Users\chenx>
Thanks @chenx-dust. On v0.11.4 the bundled CLI now refuses with "needs a terminal to read the password" instead of exiting silently, even though you ran it in an interactive PowerShell, so the bug is still there. I've sent it back to diagnosis at p2.
Until it's fixed, npx -y @getpaseo/cli daemon set-password is the workaround you confirmed. Updates go on this issue.
Thanks for the report. I'm closing this because it has been quiet for a month. If this still happens on v0.16.2, please open a new issue.