From 66ff54dd9178dea744dfd6835150de95cf719f07 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 10 Nov 2026 04:39:43 -0800 Subject: [PATCH] Complete provider dispatch identities in maintenance fixtures --- ...t-session-record-store-maintenance.test.ts | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/runtime/agent-session/records/agent-session-record-store-maintenance.test.ts b/src/main/runtime/agent-session/records/agent-session-record-store-maintenance.test.ts index 853f5a2e6df..75d45d570e3 100644 --- a/src/main/runtime/agent-session/records/agent-session-record-store-maintenance.test.ts +++ b/src/main/runtime/agent-session/records/agent-session-record-store-maintenance.test.ts @@ -316,7 +316,15 @@ it('pauses conversion while a registered client start waits for its provider to expect(await live.host.create({ callerKey: 'client' }, hostTestAttachParams(null))).toMatchObject( { ok: true } ) - live.host.deps.adapter.dispatch = async () => ({ state: 'accepted' }) + live.host.deps.adapter.dispatch = async () => ({ + state: 'accepted', + providerIdentity: { + provider: 'codex', + threadId: HOST_TEST_THREAD, + turnId: 'provider-turn', + ordinal: 51 + } + }) const sent = await live.host.send({ callerKey: 'client' }, hostTestSendParams('hello')) if (!sent.ok) { throw new Error('the send was refused') @@ -344,7 +352,15 @@ it('keeps provider work active when its obsolete registered start finishes', asy expect(await live.host.create({ callerKey: 'client' }, hostTestAttachParams(null))).toMatchObject( { ok: true } ) - live.host.deps.adapter.dispatch = async () => ({ state: 'accepted' }) + live.host.deps.adapter.dispatch = async () => ({ + state: 'accepted', + providerIdentity: { + provider: 'codex', + threadId: HOST_TEST_THREAD, + turnId: 'provider-turn', + ordinal: 51 + } + }) const sent = await live.host.send({ callerKey: 'client' }, hostTestSendParams('hello')) if (!sent.ok) { throw new Error('the send was refused')