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.1 /home/ubuntu/wt/sidebar-threads-14 stdout | apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > defers missed-run history until after compaction without blocking or duplicating turns [04:02:34.450] 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' ] } stdout | apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > defers missed-run history until after compaction without blocking or duplicating turns [04:02:35.014] ERROR (#1445): orchestration V2 provider turn start failed { runId: 'run:thread:thread%3Aprovider-switch:ordinal:2', cause: { _id: 'Cause', failures: [ [Object] ] } } stdout | apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > defers missed-run history until after compaction without blocking or duplicating turns [04:02:35.158] ERROR (#1463): orchestration V2 provider turn start failed { runId: 'run:thread:thread%3Aprovider-switch:ordinal:3', cause: { _id: 'Cause', failures: [ [Object] ] } } stdout | apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > defers missed-run history until after compaction without blocking or duplicating turns [04:02:35.197] ERROR (#1): Error [AssertionError]: expected 'failed' to equal 'completed' at /home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1356:20 { actual: 'failed', expected: 'completed', showDiff: true, operator: 'strictEqual', [cause]: undefined } ❯ apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts (69 tests | 1 failed | 68 skipped) 930ms ❯ orchestration v2 provider switching (69) × defers missed-run history until after compaction without blocking or duplicating turns 927ms stdout | apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts > handoff delivery > retains deferred history until an interrupted send is confirmed (native=true) [04:02:36.115] ERROR (#1): Error [ContextHandoffBudgetError]: Insufficient context allowance for the provider handoff. Compact the target conversation or use a larger-context model; the current request has not been truncated. at /home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffDelivery.ts:79:21 at orchestrationV2.deliverContextHandoffs (/home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts:687:33) at orchestrationV2.deliverContextHandoffs (definition) (/home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffDelivery.ts:20:46) { _tag: 'ContextHandoffBudgetError', [cause]: undefined } stdout | apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts > handoff delivery > retains deferred history until an interrupted send is confirmed (native=false) [04:02:36.122] ERROR (#6): Error [ContextHandoffBudgetError]: Insufficient context allowance for the provider handoff. Compact the target conversation or use a larger-context model; the current request has not been truncated. at /home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffDelivery.ts:79:21 at orchestrationV2.deliverContextHandoffs (/home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts:687:33) at orchestrationV2.deliverContextHandoffs (definition) (/home/ubuntu/wt/sidebar-threads-14/apps/server/src/orchestration-v2/ContextHandoffDelivery.ts:20:46) { _tag: 'ContextHandoffBudgetError', [cause]: undefined } ❯ apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts (20 tests | 2 failed | 18 skipped) 43ms ❯ handoff delivery (11) × retains deferred history until an interrupted send is confirmed (native=true) 32ms × retains deferred history until an interrupted send is confirmed (native=false) 3ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ FAIL apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts > handoff delivery > retains deferred history until an interrupted send is confirmed (native=true) FAIL apps/server/src/orchestration-v2/ContextHandoffBudget.test.ts > handoff delivery > retains deferred history until an interrupted send is confirmed (native=false) ContextHandoffBudgetError: Insufficient context allowance for the provider handoff. Compact the target conversation or use a larger-context model; the current request has not been truncated. ❯ apps/server/src/orchestration-v2/ContextHandoffDelivery.ts:79:21 77| if (historyCost(selected.messages, selected.context) > budget) { 78| if (input.deferInline) return { context: "", delivered: Effect.v… 79| return yield* new ContextHandoffBudgetError(); | ^ 80| } 81| const omittedItemIds = new Set(selected.omittedItemIds); ❯ IteratorImpl.~effect/Effect/successCont node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ IteratorImpl.~effect/Effect/evaluate node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1434:25 ❯ 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 ❯ node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5689:9 ❯ node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5767:19 ❯ Module. node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:5786:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯ FAIL apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts > orchestration v2 provider switching > defers missed-run history until after compaction without blocking or duplicating turns AssertionError: expected 'failed' to equal 'completed' Expected: "completed" Received: "failed" ❯ apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts:1356:20 1354| yield* Ref.set(refuseStarts, 1); 1355| assert.equal(yield* run(2), "failed"); 1356| assert.equal(yield* run(3), "completed"); | ^ 1357| assert.equal((yield* Ref.get(capturedTurns)).at(-1)!.text,… 1358| const first = (yield* orchestrator.getThreadProjection(thr… ❯ IteratorImpl.~effect/Effect/successCont node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ ExitPrimitive.~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 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯ Test Files 2 failed (2) Tests 3 failed | 86 skipped (89) Start at 04:02:23 Duration 12.79s (transform 62%, import 29%, tests 8%, setup 1%) Transform transforming modules took 7.67s · 62% of tracked time, re-done on every run persist transforms across runs with fsModuleCache: true learn more: https://vitest.dev/guide/improving-performance#caching-between-reruns