From 8d66ab742bab6ed4bac977eaa0c99c4544da4eab Mon Sep 17 00:00:00 2001 From: MoerAI Date: Mon, 23 Feb 2026 10:21:45 +0900 Subject: [PATCH] fix(test): update EventState inline literal to use createEventState() spread EventState interface gained new required fields; the inline literal in the session.status test was missing them, causing type errors and runtime failures. --- src/cli/run/events.test.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/cli/run/events.test.ts b/src/cli/run/events.test.ts index 2afc216f8..502db8623 100644 --- a/src/cli/run/events.test.ts +++ b/src/cli/run/events.test.ts @@ -318,14 +318,8 @@ describe("event handling", () => { // given const ctx = createMockContext("my-session") const state: EventState = { + ...createEventState(), mainSessionIdle: true, - mainSessionError: false, - lastError: null, - lastOutput: "", - lastPartText: "", - currentTool: null, - hasReceivedMeaningfulWork: false, - messageCount: 0, } const payload: EventPayload = {