Command: vp test run apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts -t keeps the native session after turns refused Commit: 03f9386dc8e1930950c185c234fad9fe7296db1b 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/issue-22198 stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout [21:51:52.094] INFO (#5646): 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' ] } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout [21:51:52.553] ERROR (#7107): orchestration V2 provider turn start failed { runId: 'run:thread:thread%3Aprovider-switch:ordinal:2', cause: { _id: 'Cause', failures: [ [Object] ] } } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout [21:51:52.705] ERROR (#7125): orchestration V2 provider turn start failed { runId: 'run:thread:thread%3Aprovider-switch:ordinal:3', cause: { _id: 'Cause', failures: [ [Object] ] } } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout [21:51:52.729] WARN (#7192): Provider resume failed; attempting 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:4', reason: 'uncertain_history_delivery', errorTag: 'ProviderAdapterTurnStartError' } stdout | src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout [21:51:53.067] ERROR (#5625): Error [AssertionError]: expected 2 to equal 1 at /home/ubuntu/wt/issue-22198/apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1398:18 { actual: 2, expected: 1, showDiff: true, operator: 'strictEqual', [cause]: undefined } ❯ |t3| src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts (34 tests | 1 failed | 31 skipped) 3516ms ❯ orchestration v2 provider switching (34) × keeps the native session after turns refused for an MCP registration timeout 1099ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL |t3| src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > keeps the native session after turns refused for an MCP registration timeout AssertionError: expected 2 to equal 1 - Expected + Received - 1 + 2 ❯ src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1398:18 1396| const turns = yield* Ref.get(capturedTurns); 1397| assert.equal(turns.length, 2); 1398| assert.equal(yield* Ref.get(generation), 1); | ^ 1399| assert.equal(turns[1]?.nativeThreadId, turns[0]?.nativeThrea… 1400| assert.include(turns[1]?.text, "Request 2"); ❯ ~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/effect.ts:971: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 | 2 passed | 31 skipped (34) Start at 21:51:36 Duration 16.99s (transform 44%, tests 22%, import 18%, setup 16%) Exit code: 1