diff --git a/src/main/runtime/agent-session-record-store-orphans.test.ts b/src/main/runtime/agent-session-record-store-orphans.test.ts index 40102116738..4c91a230498 100644 --- a/src/main/runtime/agent-session-record-store-orphans.test.ts +++ b/src/main/runtime/agent-session-record-store-orphans.test.ts @@ -1,4 +1,4 @@ -import { mkdtemp, rm } from 'node:fs/promises' +import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises' import { tmpdir } from 'node:os' import { join } from 'node:path' import { afterEach, beforeEach, describe, expect, it } from 'vitest' @@ -14,7 +14,10 @@ import { AGENT_SESSION_CLAIM_KEY_RETENTION_MS, AgentSessionRecordStore } from './agent-session-record-store' -import { agentSessionStorePath } from './agent-session-record-store-file' +import { + AGENT_SESSION_STORE_FILE_NAME, + agentSessionStorePath +} from './agent-session-record-store-file' import type { AgentSessionReserveRequest } from './agent-session-reservation-admission' const BAD_OP_STORE = '{"schemaVersion":0,"hostId":"","records":{},"operations":{"x":0}}' diff --git a/src/main/runtime/orchestration/structured-mailbox-pointer-host.test.ts b/src/main/runtime/orchestration/structured-mailbox-pointer-host.test.ts index a50482f5124..113ea05d1a3 100644 --- a/src/main/runtime/orchestration/structured-mailbox-pointer-host.test.ts +++ b/src/main/runtime/orchestration/structured-mailbox-pointer-host.test.ts @@ -45,7 +45,7 @@ describe('structured mailbox pointer host', () => { // then delivered mid-turn, which Codex coalesces into the running turn and Claude queues behind // it -- either way folded into work already in flight rather than read as a new instruction. const items = [runningTurn(), ...transcript(500)] - hostRef.current = { currentOwnerJournalItems: () => items } + hostRef.current = { journalSnapshot: () => ({ items }) } expect(createStructuredMailboxPointerHost().readGateFacts('s1')).toEqual({ turnRunning: true, awaitingHuman: false