mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Tighten request handling in Guardian approval tests (#46041)
## What changed - Wait for a request tagged with `x-openai-subagent: guardian` before triggering cancellation, disconnection, or timeout in network approval tests. - Read the last yielded parent request in the tool cancellation test, with an explicit error if no request was captured. - Disable WebSockets in the issuing-step permissions test to use its HTTP mock server. GitOrigin-RevId: 35c021e3931ff4a66ca3970f8e39e1d20257be88
This commit is contained in:
@@ -332,6 +332,7 @@ async fn request_permissions_uses_issuing_step_policy_and_reviewer() {
|
||||
config.permissions.approval_policy = Constrained::allow_any(AskForApproval::Never);
|
||||
config.approvals_reviewer = ApprovalsReviewer::User;
|
||||
config.model_provider.base_url = Some(format!("{}/v1", server.uri()));
|
||||
config.model_provider.supports_websockets = false;
|
||||
config
|
||||
.features
|
||||
.enable(Feature::GuardianApproval)
|
||||
|
||||
Reference in New Issue
Block a user