Conversation
💡 Codex Reviewcodex/codex-rs/tui/src/app_server_session.rs Lines 1414 to 1417 in b08d404 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
SessionConfigurationshould expose the canonical permission profile and runtime policies, not a convenienceSandboxPolicyprojection. The only remaining session-level caller needed a legacy projection as a temporary bridge for cwd-only updates that were originally loaded from legacy-compatible workspace policies.This keeps that compatibility behavior local to
apply()while removing the public-ish session helper that invited new session code to keep depending onSandboxPolicy.What Changed
SessionConfiguration::sandbox_policy().SessionConfiguration::apply()for the existing cwd-rebind fallback.PermissionProfileand runtime filesystem/network policies.Verification
cargo check -p codex-core --testsjust fix -p codex-coreStack created with Sapling. Best reviewed with ReviewStack.