mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-18 12:08:52 +00:00
test: persist codex collab terminal message
This commit is contained in:
@@ -311,13 +311,15 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
||||
});
|
||||
|
||||
expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledTimes(1);
|
||||
expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
runId: "codex-thread:child-thread",
|
||||
status: "succeeded",
|
||||
terminalSummary: "No user task is specified.",
|
||||
}),
|
||||
);
|
||||
expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith({
|
||||
runId: "codex-thread:child-thread",
|
||||
runtime: "subagent",
|
||||
status: "succeeded",
|
||||
endedAt: 50_000,
|
||||
lastEventAt: 50_000,
|
||||
progressSummary: "No user task is specified.",
|
||||
terminalSummary: "No user task is specified.",
|
||||
});
|
||||
});
|
||||
|
||||
it("normalizes collab agent status spelling from alternate event surfaces", () => {
|
||||
|
||||
Reference in New Issue
Block a user