diff --git a/src/main/runtime/rpc/methods/native-chat.test.ts b/src/main/runtime/rpc/methods/native-chat.test.ts index 1086a473b15..aa9662668e3 100644 --- a/src/main/runtime/rpc/methods/native-chat.test.ts +++ b/src/main/runtime/rpc/methods/native-chat.test.ts @@ -8,9 +8,17 @@ const OVERSIZED = 'x'.repeat(5000) const cachedResult = vi.hoisted(() => ({ value: { messages: [] as NativeChatMessage[], + // Optional so truncation-gating fixtures can omit it; lifecycle tests set it explicitly. lifecycle: undefined as | { state: 'working' | 'completed' | 'interrupted'; turnId: string; timestamp: number | null } | undefined + } as { + messages: NativeChatMessage[] + lifecycle?: { + state: 'working' | 'completed' | 'interrupted' + turnId: string + timestamp: number | null + } } })) const watcher = vi.hoisted(() => ({