mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: regularize codex collab statuses
This commit is contained in:
@@ -367,18 +367,20 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
||||
},
|
||||
});
|
||||
|
||||
expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
runId: "codex-thread:child-thread",
|
||||
progressSummary: "Codex native subagent is initializing.",
|
||||
}),
|
||||
);
|
||||
expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
runId: "codex-thread:child-thread",
|
||||
status: "succeeded",
|
||||
terminalSummary: "done",
|
||||
}),
|
||||
);
|
||||
expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith({
|
||||
runId: "codex-thread:child-thread",
|
||||
runtime: "subagent",
|
||||
lastEventAt: 60_000,
|
||||
progressSummary: "Codex native subagent is initializing.",
|
||||
});
|
||||
expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith({
|
||||
runId: "codex-thread:child-thread",
|
||||
runtime: "subagent",
|
||||
status: "succeeded",
|
||||
endedAt: 60_000,
|
||||
lastEventAt: 60_000,
|
||||
progressSummary: "done",
|
||||
terminalSummary: "done",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user