RUN v4.1.1 /home/sawyer/projects/bb/.claude/worktrees/wf_926b3193-f6c-1/apps/server stdout | test/threads/issue-1924-archive-pruned-environment.test.ts > issue #1924: archive after environment prune > POST /threads/:id/archive succeeds for a thread whose environment was pruned archive response: 409 {"code":"thread_environment_unavailable","message":"Thread environment is unavailable","details":{"reason":"never_attached","environmentStatus":null}} stdout | test/threads/issue-1924-archive-pruned-environment.test.ts > issue #1924: archive after environment prune > POST /threads/:id/archive-all succeeds for a thread whose environment was pruned archive-all response: 409 {"code":"thread_environment_unavailable","message":"Thread environment is unavailable","details":{"reason":"never_attached","environmentStatus":null}} ❯ @bb/server test/threads/issue-1924-archive-pruned-environment.test.ts (4 tests | 2 failed) 361ms × POST /threads/:id/archive succeeds for a thread whose environment was pruned 100ms × POST /threads/:id/archive-all succeeds for a thread whose environment was pruned 80ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯ FAIL @bb/server test/threads/issue-1924-archive-pruned-environment.test.ts > issue #1924: archive after environment prune > POST /threads/:id/archive succeeds for a thread whose environment was pruned AssertionError: expected 409 to be 200 // Object.is equality - Expected + Received - 200 + 409 ❯ test/threads/issue-1924-archive-pruned-environment.test.ts:82:31 80| ); 81| } 82| expect(response.status).toBe(200); | ^ 83| expect(getThread(harness.deps.db, thread.id)?.archivedAt).not.to… 84| }); ❯ withTestHarness test/helpers/test-app.ts:289:12 ❯ test/threads/issue-1924-archive-pruned-environment.test.ts:64:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯ FAIL @bb/server test/threads/issue-1924-archive-pruned-environment.test.ts > issue #1924: archive after environment prune > POST /threads/:id/archive-all succeeds for a thread whose environment was pruned AssertionError: expected 409 to be 200 // Object.is equality - Expected + Received - 200 + 409 ❯ test/threads/issue-1924-archive-pruned-environment.test.ts:103:31 101| ); 102| } 103| expect(response.status).toBe(200); | ^ 104| expect(getThread(harness.deps.db, thread.id)?.archivedAt).not.to… 105| }); ❯ withTestHarness test/helpers/test-app.ts:289:12 ❯ test/threads/issue-1924-archive-pruned-environment.test.ts:88:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯ Test Files 1 failed (1) Tests 2 failed | 2 passed (4) Start at 14:12:26 Duration 2.92s (transform 1.44s, setup 0ms, import 2.48s, tests 361ms, environment 0ms)