Correct import and name of policy

Signed-off-by: lionelchg <lionel.cheng@hotmail.fr>
This commit is contained in:
lionelchg
2025-11-27 15:38:00 +01:00
parent 5d9779a071
commit 01a9c63908
+2 -1
View File
@@ -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