paseo icon indicating copy to clipboard operation
paseo copied to clipboard

Windows: daemon worker crashes with libuv fs-event assertion when workspace path is an 8.3 short path

Open MeiMeiGO-Code opened this issue 2 months ago • 2 comments

## Summary On Windows, if a workspace directory is given as an 8.3 short path (e.g. C:\Users\ABCDEF~1\AppData\Local\Temp\..., which is what $env:TEMP often expands to), the daemon worker process crashes repeatedly with a libuv assertion. The supervisor restarts the worker each time, but it crashes again as long as that workspace exists.

Environment

  • Windows 11, PowerShell 7
  • Node v24.19.0, npm 11.17.0
  • @getpaseo/cli 0.10.2 (npm install -g)
  • Provider: claude (Claude Agent SDK)

Steps to reproduce

  1. Create a git repo under %TEMP% where %TEMP% resolves to a short path (C:\Users\XXXXXX~1\...).
  2. paseo run an agent with that directory as cwd.
  3. Watch daemon.log.

Actual

Worker exits with:

Assertion failed: !_wcsnicmp(filename, dir, dirlen), file src\win\fs-event.c, line 72

exit code 3221226505 (0xC0000409). Happened 3 times within ~16 minutes.

Workaround

Archive the workspace, remove the project, recreate it with the long path. No crashes after that.

Suggestion

Normalize workspace/watch paths to their long form (e.g. fs.realpathSync.native) before starting file watchers on Windows.

Possibly related (minor)

paseo daemon restart hung until its 600s timeout even though the new worker was up almost immediately.

MeiMeiGO-Code avatar Sep 30 '26 03:09 MeiMeiGO-Code

Thanks for the clear report. I've kept this open as a Windows bug.

Until it's fixed, adding the project by its long path, as you did, avoids the crash. Updates go on this issue.

paseo-bot[bot] avatar Sep 30 '26 04:09 paseo-bot[bot]

Thanks for the report. I'm closing this because it has been quiet for a month. If this still happens on Paseo v0.16.2, please open a new issue.

paseo-bot[bot] avatar Nov 21 '26 03:11 paseo-bot[bot]