COMMAND: vp test run apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts SERVICE: origin/main 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-18359 stdout | src/orchestration-v2/ProviderTurnStartService.test.ts > recovers the thread branch tip, falls back to the current project branch, and rejects detached HEAD [20:48:06.856] ERROR (#145): Error [AssertionError]: expected '' to be 'feature/restore' // Object.is equality at /home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:852:76 at orchestrationV2.providerTurnStart.start (/home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:1370:69) at orchestrationV2.providerTurnStart.start (definition) (/home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:244:26) at ProviderTurnStartService.start (/home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:778:68) at ProviderTurnStartService.start (definition) (/home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:1363:21) { actual: '', expected: 'feature/restore', showDiff: true, operator: 'strictEqual', [cause]: undefined } stdout | src/orchestration-v2/ProviderTurnStartService.test.ts > preserves recreation interrupts and retries, then fails the final attempt before provider start [20:48:06.886] ERROR (#439): Error [AssertionError]: expected { Object (success) } to match object { _tag: 'Failure', …(1) } (1 matching property omitted from actual) at Proxy. (file:///home/ubuntu/wt/pr-18359/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._844b5ecc141c2e2bcf9965912e411c65/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:2066:10) at Proxy. (file:///home/ubuntu/wt/pr-18359/node_modules/.pnpm/vitest@5.0.5_@tsc-rs+typescript@0.8.0_@types+node@24.12.4_@vitest+browser-playwright@5._844b5ecc141c2e2bcf9965912e411c65/node_modules/vitest/dist/chunks/index.aTZaPVhf.js:1958:14) at Proxy.methodWrapper (file:///home/ubuntu/wt/pr-18359/node_modules/.pnpm/chai@6.3.0/node_modules/chai/index.js:1737:25) at /home/ubuntu/wt/pr-18359/apps/server/src/orchestration-v2/ProviderTurnStartService.test.ts:926:21 { showDiff: true, expected: { _tag: 'Failure', failure: { _tag: 'ProviderTurnStartError' } }, actual: { _id: 'Result', _tag: 'Success', value: undefined }, [cause]: undefined } ❯ |t3| src/orchestration-v2/ProviderTurnStartService.test.ts (34 tests | 2 failed) 892ms × recovers the thread branch tip, falls back to the current project branch, and rejects detached HEAD 676ms × preserves recreation interrupts and retries, then fails the final attempt before provider start 31ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯ FAIL |t3| src/orchestration-v2/ProviderTurnStartService.test.ts > recovers the thread branch tip, falls back to the current project branch, and rejects detached HEAD AssertionError: expected '' to be 'feature/restore' // Object.is equality - Expected + Received - feature/restore ❯ src/orchestration-v2/ProviderTurnStartService.test.ts:852:76 850| harness.open.mockImplementation(() => 851| Effect.gen(function* () { 852| expect(yield* git(worktreePath, ["branch", "--show-current… | ^ 853| expect(yield* git(worktreePath, ["rev-parse", "HEAD"])).to… 854| scenario === "retained" ? threadTip : projectTip, ❯ ~effect/Effect/successCont ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ FiberImpl.succeedWith ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:711:30 ❯ ContImpl.mapCont [as ~effect/Effect/successCont] ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1527:16 ❯ ~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 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯ FAIL |t3| src/orchestration-v2/ProviderTurnStartService.test.ts > preserves recreation interrupts and retries, then fails the final attempt before provider start AssertionError: expected { Object (success) } to match object { _tag: 'Failure', …(1) } (1 matching property omitted from actual) - Expected + Received { - "_tag": "Failure", - "failure": { - "_tag": "ProviderTurnStartError", - }, + "_id": "Result", + "_tag": "Success", + "value": undefined, } ❯ src/orchestration-v2/ProviderTurnStartService.test.ts:926:21 924| 925| const retry = yield* Effect.result(harness.startWithRetry); 926| expect(retry).toMatchObject({ _tag: "Failure", failure: { _tag: … | ^ 927| expect(harness.events).toEqual([]); 928| expect(harness.projection().runs.at(-1)?.status).toBe("starting"… ❯ ~effect/Effect/successCont ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:1422:28 ❯ FiberImpl.succeedWith ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:711:30 ❯ MatchImpl.matchSuccess [as ~effect/Effect/successCont] ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/src/internal/effect.ts:3595:16 ❯ ~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 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯ Test Files 1 failed (1) Tests 2 failed | 32 passed (34) Start at 20:47:50 Duration 16.34s (transform 52%, import 23%, setup 19%, tests 6%) EXIT: 1