fix: pass harness prompts through stdin

This commit is contained in:
김경종
2026-06-12 17:30:25 +09:00
parent 13cf2af899
commit 2bab84beb6
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -373,8 +373,8 @@ class StepExecutor:
prompt = preamble + step_file.read_text(encoding="utf-8")
result = subprocess.run(
["codex", "exec", "--dangerously-bypass-approvals-and-sandbox", "--json", prompt],
cwd=self._root, capture_output=True, text=True, timeout=1800,
["codex", "exec", "--dangerously-bypass-approvals-and-sandbox", "--json", "-"],
cwd=self._root, capture_output=True, text=True, input=prompt, timeout=1800,
)
if result.returncode != 0: