From 6d6689258ea4205660b843b881d1bb6df838f45f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 17 May 2026 01:26:33 +0000 Subject: [PATCH] Reject simultaneous prompt and stdin_input in run_claude Co-authored-by: Yassin Kortam --- tests/claude_code/cli_driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/claude_code/cli_driver.py b/tests/claude_code/cli_driver.py index 872caf8d19c..00d18bc2b49 100644 --- a/tests/claude_code/cli_driver.py +++ b/tests/claude_code/cli_driver.py @@ -121,6 +121,8 @@ def run_claude( """ if prompt is None and stdin_input is None: raise ValueError("must supply either `prompt` or `stdin_input`") + if prompt is not None and stdin_input is not None: + raise ValueError("must supply only one of `prompt` or `stdin_input`, not both") if prompt is not None and not prompt: raise ValueError("prompt must be a non-empty string when provided") if not model: