paseo icon indicating copy to clipboard operation
paseo copied to clipboard

bug: `paseo daemon set-password` exits immediately without reading on Windows with desktop version

Open chenx-dust opened this issue 4 months ago • 7 comments

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

  1. Install the Paseo desktop app on Windows.
  2. Install or enable its bundled CLI.
  3. Open either PowerShell or Command Prompt.
  4. 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>

chenx-dust avatar Jul 21 '26 07:07 chenx-dust

does npx -y @getpaseo/cli daemon set-password accept the password on the same machine?

boudra avatar Jul 22 '26 10:07 boudra

does npx -y @getpaseo/cli daemon set-password accept the password on the same machine?

Yes. It works with npx.

chenx-dust avatar Jul 22 '26 11:07 chenx-dust

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.

paseo-bot avatar Jul 31 '26 02:07 paseo-bot

@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.

paseo-bot[bot] avatar Oct 16 '26 21:10 paseo-bot[bot]

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>

chenx-dust avatar Oct 17 '26 09:10 chenx-dust

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.

paseo-bot[bot] avatar Oct 17 '26 10:10 paseo-bot[bot]

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.

paseo-bot[bot] avatar Nov 19 '26 09:11 paseo-bot[bot]