Conversation
💡 Codex Reviewcodex/codex-rs/core/src/config/mod.rs Lines 1902 to 1906 in 6c55884 This new validation rejects any non-empty ℹ️ 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". |
a8d36af to
b8dba89
Compare
20a29b2 to
8a70b18
Compare
Why
#13434and#13440introducedFileSystemSandboxPolicyand its explicit unreadable-path semantics, but the artifact tool handlers were still authorizing reads and writes via legacySandboxPolicyhelpers.That meant the new
nonecarveouts were invisible topresentation_artifactandspreadsheet_artifactapprovals. Before the backend sandbox implementations learn to enforce unreadable entries directly, these tool-level path checks still need to honor them so artifact operations do not bypass the new policy model.What Changed
core/src/tools/handlers/artifact_path_access.rsthat answers readable and writable path checks fromFileSystemSandboxPolicypresentation_artifactandspreadsheet_artifactto authorize paths againstturn.file_system_sandbox_policyinstead of the legacyturn.sandbox_policyVerification
cargo test -p codex-core artifact_path_accesscargo test -p codex-core --libStack created with Sapling. Best reviewed with ReviewStack.