note: You are running `vp test` as a Vite+ built-in command. If you meant to run the test npm script, use `vpr test` instead. RUN v5.0.5 /home/ubuntu/wt/pr-28195-base stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > shows the recovery handoff in the timeline when a native resume fails [01:00:08.894] INFO (#22): Migrations ran successfully { migrations: [ '1_OrchestrationEvents', '2_OrchestrationCommandReceipts', '3_CheckpointDiffBlobs', '4_ProviderSessionRuntime', '5_Projections', '6_ProjectionThreadSessionRuntimeModeColumns', '7_ProjectionThreadMessageAttachments', '8_ProjectionThreadActivitySequence', '9_ProviderSessionRuntimeMode', '10_ProjectionThreadsRuntimeMode', '11_OrchestrationThreadCreatedRuntimeMode', '12_ProjectionThreadsInteractionMode', '13_ProjectionThreadProposedPlans', '14_ProjectionThreadProposedPlanImplementation', '15_ProjectionTurnsSourceProposedPlan', '16_CanonicalizeModelSelections', '17_ProjectionThreadsArchivedAt', '18_ProjectionThreadsArchivedAtIndex', '19_ProjectionSnapshotLookupIndexes', '20_AuthAccessManagement', '21_AuthSessionClientMetadata', '22_AuthSessionLastConnectedAt', '23_ProjectionThreadShellSummary', '24_BackfillProjectionThreadShellSummary', '25_CleanupInvalidProjectionPendingApprovals', '26_CanonicalizeModelSelectionOptions', '27_ProviderSessionRuntimeInstanceId', '28_ProjectionThreadSessionInstanceId', '29_ProjectionThreadDetailOrderingIndexes', '30_ProjectionThreadShellArchiveIndexes', '31_AuthAuthorizationScopes', '32_AuthPairingProofKeyThumbprint', '33_ProjectionThreadsSettled', '34_ProjectionThreadsSnoozed', '35_ProjectionThreadTitleRegeneration', '36_ProjectionThreadsPinned', '37_ProjectionTurnsKeysetIndex', '38_ProjectionThreadsPinOrderKey', '39_ProjectionProjectsDefaultThreadEnvMode', '40_ProjectionProjectFaviconPath', '41_AuthSessionClientConnection', '42_ProjectionThreadLinkedPullRequest', '43_ProjectionThreadsUnsettledAt', '44_ClearAutomaticProjectModelDefaults', '45_ProjectionProjectsAutoPull', '46_RepairAutomaticSettlementTimestamps', '47_ProjectionProjectIcon', '48_ProjectionThreadBranchPullRequest', '49_ProjectionThreadsActiveOrderKey', '50_ProjectionThreadPullRequests', '51_ProjectionThreadMessageContext', '52_ProjectionThreadTitleState', '53_PullRequestFilesViewed', '54_ProjectionThreadsAutoSettleDisabledAt', '55_OrchestrationV2', '56_RemoveRedundantProjectionIndexes', '57_ScheduledTaskWebhooks', '58_WebhookRelayDeliveries', '59_McpAppModelContext', '60_ThreadSnapshotWindowIndexes', '61_PullRequestReviewGuides', '62_ThreadFailureLookupIndex', '63_DropUnusedV1Projections', '64_CanonicalizeThreadPullRequestLinks', '65_CodexUsageNativeTurnIndex', '66_RepairClientSettlementTimestamps', '67_WebhookDedupe', '68_ShellStopRequestIndex', '69_ThreadMessageSearch', '70_PeerLinks', '71_PeerLinkFence', '72_WaitingLinkRequestIndex', '73_ActiveTurnItemIndexes', '74_ExcludeAttachmentPlaceholdersFromSearch', '75_SubagentDeliveryState', '76_ProjectionProjectsPinArchive' ] } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > shows the recovery handoff in the timeline when a native resume fails [01:00:09.678] WARN (#1477): Recovering provider context in a fresh native session { driver: 'claudeAgent', providerThreadId: 'provider-thread:provider:claudeAgent:native-thread:pending%3Arun%3Athread%3Athread%253Aprovider-switch%3Aordinal%3A1', runId: 'run:thread:thread%3Aprovider-switch:ordinal:2', reason: 'resume_failed', errorTag: 'ProviderAdapterProtocolError' } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > shows the recovery handoff in the timeline when a native resume fails [01:00:09.951] ERROR (#1): Error [AssertionError]: Expected a handoff turn item for the recovered run.: expected [ Array(3) ] to deep include { type: 'handoff', …(1) } at /home/ubuntu/wt/pr-28195-base/apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1428:18 { actual: [ { type: 'user_message', contextHandoffId: null }, { type: 'assistant_message', contextHandoffId: null }, { type: 'checkpoint', contextHandoffId: null } ], expected: undefined, showDiff: false, operator: 'strictEqual', [cause]: undefined } ❯ |t3| src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts (43 tests | 1 failed | 42 skipped) 1335ms ❯ orchestration v2 provider switching (43) × shows the recovery handoff in the timeline when a native resume fails 1332ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL |t3| src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > shows the recovery handoff in the timeline when a native resume fails AssertionError: Expected a handoff turn item for the recovered run.: expected [ Array(3) ] to deep include { type: 'handoff', …(1) } ❯ src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1428:18 1426| ); 1427| assert.isDefined(handoff, "Expected the resume fallback to r… 1428| assert.deepInclude( | ^ 1429| projection.turnItems 1430| .filter((item) => item.runId === run2.id) ❯ ~effect/Effect/successCont ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ ~effect/Effect/evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/core.ts:585:30 ❯ FiberImpl.runLoop ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:654:41 ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:595:23 ❯ FiberImpl.evaluate ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:589:27 ❯ Array. ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1159:17 ❯ Module.doneUnsafe ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/Deferred.ts:1707:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ Test Files 1 failed (1) Tests 1 failed | 42 skipped (43) Start at 00:59:53 Duration 16.99s (transform 49%, setup 22%, import 20%, tests 8%)