Skip to content

Add sandbox support to filesystem APIs#16751

Merged
starr-openai merged 17 commits intomainfrom
starr/ca-414-fs-sandbox
Apr 8, 2026
Merged

Add sandbox support to filesystem APIs#16751
starr-openai merged 17 commits intomainfrom
starr/ca-414-fs-sandbox

Conversation

@starr-openai
Copy link
Copy Markdown
Contributor

Summary

  • add optional sandboxPolicy support to the app-server filesystem request surface
  • thread sandbox-aware filesystem options through app-server and exec-server adapters
  • enforce sandboxed read/write access in the filesystem abstraction with focused local and remote coverage

Validation

  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-exec-server file_system
  • cargo test -p codex-app-server suite::v2::fs

@starr-openai starr-openai marked this pull request as ready for review April 7, 2026 00:47
Copy link
Copy Markdown
Contributor

@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: 231e89f223

ℹ️ 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".

Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

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

let's keep the sandbox parameter only in exec server + remove unrelated changes + simplify overloads maybe (non-blocking, up to you)

@starr-openai starr-openai force-pushed the starr/ca-414-fs-sandbox branch from 47073cf to d94e4c6 Compare April 7, 2026 16:58
@starr-openai starr-openai requested a review from pakrym-oai April 7, 2026 17:19
starr-openai added a commit that referenced this pull request Apr 7, 2026
Co-authored-by: Codex <noreply@openai.com>
starr-openai and others added 12 commits April 8, 2026 10:22
Use the same cmd.exe-based token reader and CRLF token file format on Windows as login auth tests, and increase the fixture timeout to avoid brittle shell startup timing under loaded CI workers.

Co-authored-by: Codex <noreply@openai.com>
Poll MCP tool discovery before submitting the text-only rmcp image turn, matching the non-sanitized image test and avoiding macOS CI timeouts while the stdio server finishes startup.

Co-authored-by: Codex <noreply@openai.com>
Use explicit sandbox policy parameters in exec-server filesystem calls, drop the app-server surface change, and back out unrelated PR churn.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
starr-openai and others added 4 commits April 8, 2026 10:22
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Keep sandboxed remote file operations on absolute paths without adding an exec-server filesystem cwd request field or reading the client process current directory per request.

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai force-pushed the starr/ca-414-fs-sandbox branch 4 times, most recently from 2a36205 to 523aa37 Compare April 8, 2026 17:42
Remove the unused sandbox cwd parameter from the exec-server filesystem trait and callsites. Keep the explicit cwd override private to the local access-check helper used by focused unit coverage.

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai force-pushed the starr/ca-414-fs-sandbox branch from 523aa37 to 5697846 Compare April 8, 2026 17:54
@starr-openai starr-openai merged commit f383cc9 into main Apr 8, 2026
34 of 38 checks passed
@starr-openai starr-openai deleted the starr/ca-414-fs-sandbox branch April 8, 2026 19:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants