Conversation
💡 Codex Reviewcodex/codex-rs/tui/src/app_server_session.rs Lines 1414 to 1417 in 9348464 When ℹ️ 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 config loader still had a small profile-mode detour through
SandboxPolicy: it projected the activePermissionProfileinto a legacy sandbox policy only to ask whether the result looked likeWorkspaceWritebefore applying legacywritable_rootsand memory-root additions.That keeps legacy policy semantics in the middle of config loading even though the canonical runtime model is now
PermissionProfile. This PR makes that decision from the canonical profile and its runtime filesystem policy instead.What Changed
compatibility_sandbox_policy_for_permission_profile(...)projections inConfig::load_config_with_layer_stackwith that helper.Config::legacy_sandbox_policy()compatibility projection in place for call sites that still need to speak the old API.Verification
cargo check -p codex-core --testscargo test -p codex-core workspace_profilejust fix -p codex-coreStack created with Sapling. Best reviewed with ReviewStack.