Skip to content

Commit 7d80fa4

Browse files
committed
test(mothership): compare the admitted run's recovery with the persisted goRoute shape
1 parent 706efbe commit 7d80fa4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/lib/mothership/agent-cli/saved-run-read.live.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ import {
140140
} from '@/lib/mothership/generated/protocol'
141141
import { prepareInboxAttachments } from '@/lib/mothership/inbox/attachments'
142142
import { claimRunController } from '@/lib/mothership/request/lifecycle/controller-ownership'
143+
import { persistedStreamRecoveryConfig } from '@/lib/mothership/request/lifecycle/recovery-config'
143144
import { runCopilotLifecycle } from '@/lib/mothership/request/lifecycle/run'
144145
import {
145146
isToolCallStreamEvent,
@@ -1396,7 +1397,7 @@ describe.skipIf(!process.env.MSHIP_TEST_DATABASE_URL)(
13961397
const run = await admitChatTurn.execute({ principal: admissionPrincipal, input })
13971398
expect(run.streamId).toBe(input.message.id)
13981399
expect(run.requestContext).toMatchObject({
1399-
recovery: input.recovery,
1400+
recovery: persistedStreamRecoveryConfig(input.recovery),
14001401
controllerToken: input.lease.value,
14011402
})
14021403
const messages = await loadCopilotChatMessages(input.chatId)

0 commit comments

Comments
 (0)