Skip to content

fix: #2962 normalize sandbox paths and add Windows CI#2963

Open
seratch wants to merge 6 commits intomainfrom
fix/windows-sandbox-posix-paths
Open

fix: #2962 normalize sandbox paths and add Windows CI#2963
seratch wants to merge 6 commits intomainfrom
fix/windows-sandbox-posix-paths

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 20, 2026

This pull request resolves #2962 by fixing sandbox path normalization when the SDK is run from Windows against Unix-like sandbox backends.

The bug was that sandbox paths were being normalized through host Path semantics. On Windows, paths that should remain remote POSIX paths such as /workspace/... or /tmp/openai-agents/... could be represented with Windows path behavior or separators before being passed into sandbox helper commands. That made Modal sandbox operations vulnerable to incorrect path strings even though the remote sandbox itself expects POSIX paths.

This changes the sandbox workspace path policy to keep host filesystem paths and remote sandbox paths separate. Local path checks still use concrete host Path objects, while paths sent into the sandbox are normalized as PurePosixPath. Runtime helper install paths now also use POSIX pure paths, so helper commands consistently receive Unix-style paths regardless of the platform running the test process.

The new tests cover Windows-style inputs for workspace path normalization, Modal path validation, and runtime helper install paths. A Windows GitHub Actions pytest job is included as regression coverage so future pull requests exercise this behavior on an actual Windows runner.

@seratch seratch added this to the 0.14.x milestone Apr 20, 2026
@seratch seratch requested review from alfozan and qiyaoq-oai April 20, 2026 01:11
Copy link
Copy Markdown

@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: 8ab31671c9

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/sandbox/workspace_paths.py
Copy link
Copy Markdown

@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: d01237492c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/sandbox/entries/base.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WorkspaceStartError on Windows

1 participant