Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(chatRuntimeSlice): add missing run fields to fixtures

Steven Enamakelc644c936d360
diff --git a/app/src/store/__tests__/chatRuntimeSlice.test.ts b/app/src/store/__tests__/chatRuntimeSlice.test.ts
index 96c6b611ec..3d9b0bc2ff 100644
--- a/app/src/store/__tests__/chatRuntimeSlice.test.ts
+++ b/app/src/store/__tests__/chatRuntimeSlice.test.ts
@@ -401,8 +401,12 @@ describe('chatRuntimeSlice', () => {
outputTokens: 0,
cachedInputTokens: 0,
costUsd: 0,
+ error: null,
elapsedMs: 1200,
+ model: null,
toolCount: 2,
+ provider: null,
+ updatedAt: null,
},
startedAt: '2026-06-04T12:00:00Z',
updatedAt: '2026-06-04T12:00:04Z',
@@ -484,9 +488,18 @@ describe('chatRuntimeSlice', () => {
parentThreadId: 'thread-detached',
agentId: 'researcher',
status,
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
+ error: null,
metadata: { mode: 'async' },
+ parentRunId: null,
+ promptRef: null,
startedAt: '2026-09-22T00:00:00Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-09-22T00:05:00Z',
+ workerThreadId: null,
},
],
});
@@ -552,9 +565,18 @@ describe('chatRuntimeSlice', () => {
parentThreadId: 'thread-runs',
agentId: 'writer',
status: 'completed',
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
+ error: null,
metadata: {},
+ parentRunId: null,
+ promptRef: null,
startedAt: '2026-06-04T12:00:00Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-06-04T12:00:04Z',
+ workerThreadId: null,
},
{
id: 'failed-run',
@@ -562,28 +584,56 @@ describe('chatRuntimeSlice', () => {
parentThreadId: 'thread-runs',
agentId: 'reviewer',
status: 'failed',
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
error: 'Tool failed',
metadata: {},
+ parentRunId: null,
+ promptRef: null,
startedAt: '2026-06-04T12:00:05Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-06-04T12:00:07Z',
+ workerThreadId: null,
},
{
id: 'pending-run',
kind: 'team_member',
parentThreadId: 'thread-runs',
+ agentId: null,
status: 'pending',
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
+ error: null,
metadata: {},
+ parentRunId: null,
+ promptRef: null,
startedAt: '2026-06-04T12:00:08Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-06-04T12:00:09Z',
+ workerThreadId: null,
},
{
id: 'background-run',
kind: 'background_agent',
parentThreadId: 'thread-runs',
+ agentId: null,
status: 'running',
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
+ error: null,
metadata: {},
+ parentRunId: null,
+ promptRef: null,
startedAt: '2026-06-04T12:00:10Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-06-04T12:00:11Z',
+ workerThreadId: null,
},
],
})