fix(web): use compatible unattended Codex flags
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-06 04:40:12 +08:00
parent 5218ee0692
commit b9ad833a3d
2 changed files with 127 additions and 25 deletions

View File

@@ -146,7 +146,7 @@ def run_task(task: dict, heartbeat_seconds: float) -> tuple[int, bool]:
log_path = LOG_ROOT / f"{task['id']}.codex.jsonl"
LOG_ROOT.mkdir(parents=True, exist_ok=True)
command = [
"codex", "exec", "--approve-for-me", "--sandbox", "workspace-write",
"codex", "exec", "--approve-for-me",
"--ephemeral", "--cd", str(ROOT), "--json", "-",
]
with log_path.open("w", encoding="utf-8") as log: