fix: 收敛 one-shot runner 成功终态

This commit is contained in:
Codex
2026-06-01 23:47:49 +08:00
parent 5104d402c7
commit 8577e2fbdf
5 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ const selfTest: SelfTestCase = async (context) => {
assert.ok(events.items?.some((event) => event.type === "backend_status" && JSON.stringify(event.payload).includes("run-claimed")));
assertNoSecretLeak(events);
const finalRun = await client.get(`/api/v1/runs/${happy.runId}`) as { terminalStatus?: string | null; status?: string };
assert.equal(finalRun.terminalStatus, null);
assert.equal(finalRun.status, "claimed");
assert.equal(finalRun.terminalStatus, "completed");
assert.equal(finalRun.status, "completed");
const finalCommand = await client.get(`/api/v1/runs/${happy.runId}/commands/${happy.commandId}`) as { state?: string };
assert.equal(finalCommand.state, "completed");