@@ -270,8 +270,10 @@ def test_process_review_posts_summary_and_passes_dedupe_context(
270270 }
271271 )
272272 )
273+ config = _make_config (tmp_path )
274+ config .additional_prompt = "Review only security and correctness issues."
273275 workflow = ReviewWorkflow (
274- _make_config ( tmp_path ) ,
276+ config ,
275277 github_client = cast (Any , github_client ),
276278 codex_client = cast (Any , codex_client ),
277279 )
@@ -514,8 +516,10 @@ def test_process_review_ignores_stale_prior_codex_thread(tmp_path: Path) -> None
514516 }
515517 )
516518 )
519+ config = _make_config (tmp_path )
520+ config .additional_prompt = "Review only security and correctness issues."
517521 workflow = ReviewWorkflow (
518- _make_config ( tmp_path ) ,
522+ config ,
519523 github_client = cast (Any , github_client ),
520524 codex_client = cast (Any , codex_client ),
521525 )
@@ -645,8 +649,10 @@ def test_process_review_matches_github_bot_logins_across_issue_and_thread_apis(
645649 }
646650 )
647651 )
652+ config = _make_config (tmp_path )
653+ config .additional_prompt = "Review only security and correctness issues."
648654 workflow = ReviewWorkflow (
649- _make_config ( tmp_path ) ,
655+ config ,
650656 github_client = cast (Any , github_client ),
651657 codex_client = cast (Any , codex_client ),
652658 )
@@ -854,8 +860,10 @@ def test_process_review_resumes_prior_thread_with_inline_incremental_diff(
854860 }
855861 )
856862 )
863+ config = _make_config (tmp_path )
864+ config .additional_prompt = "Review only security and correctness issues."
857865 workflow = ReviewWorkflow (
858- _make_config ( tmp_path ) ,
866+ config ,
859867 github_client = cast (Any , github_client ),
860868 codex_client = cast (Any , codex_client ),
861869 )
@@ -902,6 +910,7 @@ def test_process_review_resumes_prior_thread_with_inline_incremental_diff(
902910 assert "<current_head_sha>head-sha</current_head_sha>" in codex_client .calls [0 ]["prompt" ]
903911 assert "<incremental_diff>" in codex_client .calls [0 ]["prompt" ]
904912 assert "+value = 2" in codex_client .calls [0 ]["prompt" ]
913+ assert "Review only security and correctness issues." in codex_client .calls [0 ]["prompt" ]
905914 assert "FULL PR PROMPT" not in codex_client .calls [0 ]["prompt" ]
906915
907916
0 commit comments