From 01a9c63908a0d40d76afb05f483e43f1cee14140 Mon Sep 17 00:00:00 2001 From: lionelchg Date: Thu, 27 Nov 2025 15:38:00 +0100 Subject: [PATCH] Correct import and name of policy Signed-off-by: lionelchg --- codex-rs/core/src/tasks/review.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/tasks/review.rs b/codex-rs/core/src/tasks/review.rs index 6ceb97caf9..09d5553bca 100644 --- a/codex-rs/core/src/tasks/review.rs +++ b/codex-rs/core/src/tasks/review.rs @@ -16,6 +16,7 @@ use tokio_util::sync::CancellationToken; use crate::codex::Session; use crate::codex::TurnContext; use crate::codex_delegate::run_codex_conversation_one_shot; +use crate::protocol::SandboxPolicy; use crate::review_format::format_review_findings_block; use crate::state::TaskKind; use codex_protocol::user_input::UserInput; @@ -97,7 +98,7 @@ async fn start_review_conversation( // Avoid loading project docs; reviewer only needs findings sub_agent_config.project_doc_max_bytes = 0; // Enforce read-only sandbox for the review child session. - sub_agent_config.sandbox_mode = SandboxPolicy::ReadOnly; + sub_agent_config.sandbox_policy = SandboxPolicy::ReadOnly; // Carry over review-only feature restrictions so the delegate cannot // re-enable blocked tools (web search, view image). sub_agent_config