mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
codex: match guardian selector request by cache key
This commit is contained in:
@@ -356,7 +356,8 @@ async fn guardian_stays_disabled_when_model_selects_multi_agent_v2() -> Result<(
|
||||
let guardian_mock = mount_sse_once_match(
|
||||
&server,
|
||||
|req: &Request| {
|
||||
body_contains(req, GUARDIAN_REASON) && body_contains(req, ">>> APPROVAL REQUEST START")
|
||||
body_contains(req, GUARDIAN_REASON)
|
||||
&& body_contains(req, r#""prompt_cache_key":"guardian:"#)
|
||||
},
|
||||
sse(vec![
|
||||
ev_response_created("resp-guardian"),
|
||||
|
||||
Reference in New Issue
Block a user