mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
Correct import and name of policy
Signed-off-by: lionelchg <lionel.cheng@hotmail.fr>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user