mirror of
https://github.com/openai/codex.git
synced 2026-04-29 00:55:38 +00:00
-
This commit is contained in:
@@ -230,15 +230,16 @@ impl Executor {
|
||||
stdout_stream: Option<StdoutStream>,
|
||||
) -> Result<ExecToolCallOutput, CodexErr> {
|
||||
if let Some(admin_audit) = config.admin_audit.as_ref()
|
||||
&& admin_audit.should_log(AdminAuditEventKind::Command) {
|
||||
let payload = build_command_audit_payload(
|
||||
¶ms,
|
||||
sandbox,
|
||||
&config.sandbox_policy,
|
||||
&config.sandbox_cwd,
|
||||
);
|
||||
log_admin_event(admin_audit, payload);
|
||||
}
|
||||
&& admin_audit.should_log(AdminAuditEventKind::Command)
|
||||
{
|
||||
let payload = build_command_audit_payload(
|
||||
¶ms,
|
||||
sandbox,
|
||||
&config.sandbox_policy,
|
||||
&config.sandbox_cwd,
|
||||
);
|
||||
log_admin_event(admin_audit, payload);
|
||||
}
|
||||
process_exec_tool_call(
|
||||
params,
|
||||
sandbox,
|
||||
|
||||
Reference in New Issue
Block a user