Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Fixes Windows workspace startup failures caused by shelling out to mkdir -p on local runtimes.

Changes:

  • Add Runtime.ensureDir() (local: Node fs.mkdir({ recursive: true }); remote: mkdir -p)
  • Use it for:
    • StreamManager.createTempDirForStream()
    • workspace MCP overrides dir creation
    • background process output dir + log preflight (replace touch with writeFileString)
  • Add regression tests for ensureDir + createTempDirForStream

Validation:

  • make static-check

Generated with mux • Model: openai:gpt-5.2 • Thinking: xhigh • Cost: $6.15

Centralize mkdir -p semantics behind Runtime.ensureDir() so local runtimes
use Node fs (Windows-safe) while remote runtimes keep POSIX shells.

Use it for stream temp dirs and other local-risk callsites (MCP overrides,
background process outputs).

---
_Generated with `mux` • Model: `openai:gpt-5.2` • Thinking: `xhigh` • Cost: `$6.15`_
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8735f1d6b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ibetitsmike
Copy link
Contributor Author

@codex review

Updated joinForRuntime / isAbsoluteForRuntime to treat Docker like SSH (POSIX joins/absolute checks) so Windows hosts don't pass backslash paths into a Linux container.

  • Ran make static-check

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ibetitsmike ibetitsmike added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main with commit 296a0eb Jan 14, 2026
21 checks passed
@ibetitsmike ibetitsmike deleted the mike/runtime-ensure-dir-windows branch January 14, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant