Skip to content

fix(linux-sandbox): ignore missing writable roots#14890

Merged
viyatb-oai merged 3 commits intomainfrom
codex/viyatb/fix-linux-sandbox-missing-writable-roots
Mar 17, 2026
Merged

fix(linux-sandbox): ignore missing writable roots#14890
viyatb-oai merged 3 commits intomainfrom
codex/viyatb/fix-linux-sandbox-missing-writable-roots

Conversation

@viyatb-oai
Copy link
Copy Markdown
Collaborator

@viyatb-oai viyatb-oai commented Mar 17, 2026

Summary

  • skip nonexistent workspace-write writable roots in the Linux bubblewrap mount builder instead of aborting sandbox startup
  • keep existing writable roots mounted normally so mixed Windows/WSL configs continue to work
  • add unit and Linux integration regression coverage for the missing-root case

Context

This addresses regression A from #14875. Regression B will be handled in a separate PR.

The old bubblewrap integration added ensure_mount_targets_exist as a preflight guard because bubblewrap bind targets must exist, and failing early let Codex return a clearer error than a lower-level mount failure.

That policy turned out to be too strict once bubblewrap became the default Linux sandbox: shared Windows/WSL or mixed-platform configs can legitimately contain a well-formed writable root that does not exist on the current machine. This PR keeps bubblewrap's existing-target requirement, but changes Codex to skip missing writable roots instead of treating them as fatal configuration errors.

@viyatb-oai viyatb-oai force-pushed the codex/viyatb/fix-linux-sandbox-missing-writable-roots branch from 9c55f33 to 87be430 Compare March 17, 2026 05:52
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/fix-linux-sandbox-missing-writable-roots branch from 87be430 to 53c6710 Compare March 17, 2026 05:53
@viyatb-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai left a comment

Choose a reason for hiding this comment

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

Looks good!

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

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

@viyatb-oai viyatb-oai merged commit 603b649 into main Mar 17, 2026
33 checks passed
@viyatb-oai viyatb-oai deleted the codex/viyatb/fix-linux-sandbox-missing-writable-roots branch March 17, 2026 07:21
@github-actions github-actions bot locked and limited conversation to collaborators Mar 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants