feat: 支持同 run runner 多轮 command

This commit is contained in:
Codex
2026-06-01 22:33:26 +08:00
parent 5fb008f5cf
commit 6fb8f7483a
14 changed files with 237 additions and 81 deletions
+5
View File
@@ -84,6 +84,11 @@ async function dispatch(args: ParsedArgs): Promise<JsonValue> {
}
if (codexCommand) options.codexCommand = codexCommand;
if (codexHome) options.codexHome = codexHome;
const idleTimeoutMs = optionalFlag(args, "idle-timeout-ms");
const pollIntervalMs = optionalFlag(args, "poll-interval-ms");
if (idleTimeoutMs) options.idleTimeoutMs = Number(idleTimeoutMs);
if (pollIntervalMs) options.pollIntervalMs = Number(pollIntervalMs);
if (args.flags.get("one-shot") === true) options.oneShot = true;
return runOnce(options) as unknown as JsonValue;
}
if (group === "runner" && command === "job") return renderRunnerJob(args);