mirror of
https://github.com/openai/codex.git
synced 2026-11-18 15:01:48 +00:00
Use the step context for command approval prefix rules (#37641)
## What changed Read `allow_prefix_rules` from the turn attached to the active step context when selecting the exec policy and constructing unified exec approval requests. GitOrigin-RevId: d2d26e88b9cefa28bb2df5b9f71aa7b30b7ea331
This commit is contained in:
1 parent
266c6920d9
commit
420accf199
2 files changed
+3
-3
No files matched your search
@@ -1174,7 +1174,7 @@ impl UnifiedExecProcessManager {
|
||||
request.sandbox_permissions
|
||||
},
|
||||
prefix_rule: request.prefix_rule.clone(),
|
||||
allow_prefix_rules: context.turn.allow_prefix_rules(),
|
||||
allow_prefix_rules: context.step_context.turn.allow_prefix_rules(),
|
||||
})
|
||||
.await;
|
||||
let req = UnifiedExecToolRequest {
|
||||
|
||||
Reference in new issue
Block a user