feat: reuse executor sessions within Codex tasks

This commit is contained in:
liujing
2026-07-19 21:51:31 +08:00
parent 717d4344ee
commit 71b8025666
13 changed files with 702 additions and 13 deletions
+18
View File
@@ -1,6 +1,24 @@
import { describe, expect, it } from "vitest";
import { parseWorkflowArgs } from "./workflow-args.js";
describe("workflow start arguments", () => {
it("accepts an explicit new task boundary", () => {
expect(parseWorkflowArgs([
"start",
"--plan", "plan.json",
"--executor", "reasonix",
"--new-task",
])).toEqual({
sub: "start",
planInput: "plan.json",
executor: "reasonix",
vcs: undefined,
maxCycles: undefined,
newTask: true,
});
});
});
describe("workflow retry-execute arguments", () => {
it("accepts an explicit Claude session ID", () => {
expect(parseWorkflowArgs([