mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
Refine issue workflow surfaces and live updates
This commit is contained in:
parent
b4a58ba8a6
commit
03dff1a29a
48 changed files with 2800 additions and 1163 deletions
30
ui/src/lib/issueChatTranscriptRuns.test.ts
Normal file
30
ui/src/lib/issueChatTranscriptRuns.test.ts
Normal 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,
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue