From 1cd0281b4d6c7c18e50fa06901a60154633a7d07 Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 10 Apr 2026 22:42:52 -0500 Subject: [PATCH] test(ui): fix heartbeat run fixture drift --- ui/src/lib/inbox.test.ts | 1 + ui/src/lib/optimistic-issue-runs.test.ts | 24 ------------------------ ui/src/pages/Inbox.test.tsx | 1 + 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/ui/src/lib/inbox.test.ts b/ui/src/lib/inbox.test.ts index b48e4284..ee2b4c64 100644 --- a/ui/src/lib/inbox.test.ts +++ b/ui/src/lib/inbox.test.ts @@ -135,6 +135,7 @@ function makeRun(id: string, status: HeartbeatRun["status"], createdAt: string, errorCode: null, externalRunId: null, processPid: null, + processGroupId: null, processStartedAt: null, retryOfRunId: null, processLossRetryCount: 0, diff --git a/ui/src/lib/optimistic-issue-runs.test.ts b/ui/src/lib/optimistic-issue-runs.test.ts index 8af06b85..f8614a64 100644 --- a/ui/src/lib/optimistic-issue-runs.test.ts +++ b/ui/src/lib/optimistic-issue-runs.test.ts @@ -22,7 +22,6 @@ function createLiveRun(overrides: Partial = {}): LiveRunForIssu function createActiveRun(overrides: Partial = {}): ActiveRunForIssue { return { id: "run-1", - companyId: "company-1", agentId: "agent-1", agentName: "CodexCoder", adapterType: "codex_local", @@ -31,30 +30,7 @@ function createActiveRun(overrides: Partial = {}): ActiveRunF status: "running", startedAt: new Date("2026-04-08T21:00:00.000Z"), finishedAt: null, - error: null, - wakeupRequestId: null, - exitCode: null, - signal: null, - usageJson: { inputTokens: 1 }, - resultJson: { summary: "partial" }, - sessionIdBefore: null, - sessionIdAfter: null, - logStore: null, - logRef: null, - logBytes: null, - logSha256: null, - logCompressed: false, - stdoutExcerpt: null, - stderrExcerpt: null, - errorCode: null, - externalRunId: null, - processPid: null, - processStartedAt: null, - retryOfRunId: null, - processLossRetryCount: 0, - contextSnapshot: null, createdAt: new Date("2026-04-08T21:00:00.000Z"), - updatedAt: new Date("2026-04-08T21:00:00.000Z"), ...overrides, }; } diff --git a/ui/src/pages/Inbox.test.tsx b/ui/src/pages/Inbox.test.tsx index e5f7beef..4a3c6199 100644 --- a/ui/src/pages/Inbox.test.tsx +++ b/ui/src/pages/Inbox.test.tsx @@ -99,6 +99,7 @@ describe("FailedRunInboxRow", () => { errorCode: null, externalRunId: null, processPid: null, + processGroupId: null, processStartedAt: null, retryOfRunId: null, processLossRetryCount: 0,