Skip to content

Conversation

@ethanndickson
Copy link
Member

Problem

On Windows, createTempDirForStream runs a shell command via Git Bash that returns a Unix-style path like /c/Users/ethan/.mux-tmp/854e934d.

During cleanup, Node's fs.access() and spawn() APIs misinterpret this path as C:\c\Users\... instead of C:\Users\..., causing cleanup to fail:

Failed to cleanup temp dir /c/Users/ethan/.mux-tmp/854e934d: RuntimeError: Working directory does not exist
  path: 'C:\c\Users\ethan\.mux-tmp'

Fix

Use cygpath -w on Windows to convert the pwd output to native Windows path format (C:\Users\ethan\.mux-tmp\abc123), which Node APIs handle correctly.

On Windows, pwd in Git Bash returns Unix-style paths like /c/Users/...
which Node's fs and spawn APIs misinterpret as C:\c\Users\...

Use cygpath -w to convert to native Windows paths.
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ethanndickson
Copy link
Member Author

ethanndickson commented Dec 8, 2025

I think this breaks a bunch of stuff, so I'm closing.. Though this is definitely an issue, we're not cleaning up any of the tmp dirs.

Opened #971.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant