Refine issue workflow surfaces and live updates

This commit is contained in:
dotta 2026-04-09 10:26:17 -05:00
parent b4a58ba8a6
commit 03dff1a29a
48 changed files with 2800 additions and 1163 deletions

View file

@ -0,0 +1,30 @@
import { describe, expect, it } from "vitest";
import { resolveIssueChatTranscriptRuns } from "./issueChatTranscriptRuns";
describe("resolveIssueChatTranscriptRuns", () => {
it("uses adapterType from linked runs without requiring agent metadata", () => {
const runs = resolveIssueChatTranscriptRuns({
linkedRuns: [
{
runId: "run-1",
status: "succeeded",
agentId: "agent-1",
adapterType: "codex_local",
createdAt: "2026-04-09T12:00:00.000Z",
startedAt: "2026-04-09T12:00:00.000Z",
finishedAt: "2026-04-09T12:01:00.000Z",
hasStoredOutput: true,
},
],
});
expect(runs).toEqual([
{
id: "run-1",
status: "succeeded",
adapterType: "codex_local",
hasStoredOutput: true,
},
]);
});
});