Skip to content

file-system: drop unused legacy sandbox constructor#20390

Closed
bolinfest wants to merge 1 commit into
pr20389from
pr20390
Closed

file-system: drop unused legacy sandbox constructor#20390
bolinfest wants to merge 1 commit into
pr20389from
pr20390

Conversation

@bolinfest

@bolinfest bolinfest commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Why

codex-file-system no longer has any in-repo call sites that need to construct a FileSystemSandboxContext from the legacy SandboxPolicy abstraction. Keeping that constructor around makes it easier for future code to reintroduce the legacy bridge instead of passing a PermissionProfile directly.

What Changed

Removed FileSystemSandboxContext::from_legacy_sandbox_policy and the imports that only existed to support it. The remaining constructors keep PermissionProfile as the canonical way to build the filesystem sandbox context.

Verification

  • cargo test -p codex-file-system
  • just fix -p codex-file-system

Stack created with Sapling. Best reviewed with ReviewStack.

@bolinfest bolinfest requested a review from a team as a code owner April 30, 2026 10:33
@bolinfest bolinfest changed the base branch from main to pr20389 April 30, 2026 10:33
This was referenced Apr 30, 2026
This was referenced Apr 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 15, 2026
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