chore(core): drop view_image overlap from deny-read stack

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
viyatb-oai
2026-03-27 12:52:26 -07:00
parent 6d79141a94
commit cbde62a39b

View File

@@ -10,7 +10,6 @@ use codex_utils_image::PromptImageMode;
use codex_utils_image::load_for_prompt_bytes;
use serde::Deserialize;
use crate::filesystem_deny_read::ensure_read_allowed;
use crate::function_tool::FunctionCallError;
use crate::original_image_detail::can_request_original_image_detail;
use crate::protocol::EventMsg;
@@ -94,11 +93,6 @@ impl ToolHandler for ViewImageHandler {
AbsolutePathBuf::try_from(turn.resolve_path(Some(args.path))).map_err(|error| {
FunctionCallError::RespondToModel(format!("unable to resolve image path: {error}"))
})?;
ensure_read_allowed(
abs_path.as_path(),
&turn.file_system_sandbox_policy,
&turn.cwd,
)?;
let metadata = turn
.environment