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:
sayan-oai
2026-08-09 00:29:14 +00:00
committed by copyberry
parent 266c6920d9
commit 420accf199
2 changed files with 3 additions and 3 deletions
@@ -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 {