mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Pass comments of codex to enforce read-only at review_conversation level
Signed-off-by: lionelchg <lionel.cheng@hotmail.fr>
This commit is contained in:
@@ -96,6 +96,8 @@ async fn start_review_conversation(
|
||||
sub_agent_config.user_instructions = None;
|
||||
// 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;
|
||||
// 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