Skip to content

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

test(chatRuntimeSlice): align fixtures with current types

Steven Enamakel5f4187c55d93
diff --git a/app/src/store/__tests__/chatRuntimeSlice.subagentStream.test.ts b/app/src/store/__tests__/chatRuntimeSlice.subagentStream.test.ts
index f3fe2dc436..eb7d03e052 100644
--- a/app/src/store/__tests__/chatRuntimeSlice.subagentStream.test.ts
+++ b/app/src/store/__tests__/chatRuntimeSlice.subagentStream.test.ts
@@ -218,7 +218,7 @@ describe('markSubagentCancelled', () => {
});
describe('hydrateRuntimeFromSnapshot — sub-agent child tool arguments', () => {
- function settledSnapshot(args: unknown): PersistedTurnState {
+ function settledSnapshot(args: Record<string, unknown> | undefined): PersistedTurnState {
return {
threadId: THREAD,
requestId: 'req-1',
diff --git a/app/src/store/chatRuntimeSlice.test.ts b/app/src/store/chatRuntimeSlice.test.ts
index 4fc89b0893..d876b7356c 100644
--- a/app/src/store/chatRuntimeSlice.test.ts
+++ b/app/src/store/chatRuntimeSlice.test.ts
@@ -34,9 +34,19 @@ function makeRun(id: string, status: AgentRunStatus): AgentRun {
kind: 'subagent',
status,
agentId: 'research_agent',
+ checkpoint: {},
+ checkpointPath: null,
+ completedAt: null,
+ error: null,
metadata: { displayName: 'Research Agent' },
+ parentRunId: null,
+ parentThreadId: null,
+ promptRef: null,
startedAt: '2026-06-23T00:00:00Z',
+ summary: null,
+ telemetry: null,
updatedAt: '2026-06-23T00:00:00Z',
+ workerThreadId: null,
};
}