mirror of
https://github.com/openai/codex.git
synced 2026-11-03 19:53:25 +00:00
fix(ci): satisfy rustfmt on deny-read enforcement
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
75e76eb178
commit
6d79141a94
@@ -94,7 +94,11 @@ 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)?;
|
||||
ensure_read_allowed(
|
||||
abs_path.as_path(),
|
||||
&turn.file_system_sandbox_policy,
|
||||
&turn.cwd,
|
||||
)?;
|
||||
|
||||
let metadata = turn
|
||||
.environment
|
||||
|
||||
Reference in New Issue
Block a user