Conversation
💡 Codex ReviewWhen codex/codex-rs/core/src/session/session.rs Line 196 in bb346d3 After removing ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Why
The TUI had to create legacy
SandboxPolicyvalues before asking the Windows sandbox setup and world-writable scan helpers to run. That kept legacy conversion logic in UI code even though the Windows sandbox backend is the only consumer that still needs the legacy policy JSON.This continues the permissions migration by making core's Windows sandbox boundary accept
PermissionProfiledirectly and localizing the compatibility projection inside that boundary.What changed
codex_core::windows_sandboxsetup/preflight/read-root refresh helpers to takePermissionProfileinstead ofSandboxPolicy.apply_world_writable_scan_and_denies()that takes aPermissionProfileand derives the legacy policy internally.windows_sandbox_read_grants.Verification
cargo check -p codex-core -p codex-tui --testsjust fix -p codex-corejust fix -p codex-tuiStack created with Sapling. Best reviewed with ReviewStack.