@bb/server:test: RUN v4.1.12 [first-checkout]/apps/server @bb/server:test: @bb/server:test: (node:3390) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: stdout | test/providers/provider-model-catalog-store.test.ts > provider model catalog store > repro 8009: recovers reasoning after an empty discovery ages across refresh and store reload @bb/server:test: REPRO_8009 {"elapsedDays":2,"fingerprintUnchanged":true,"fetchedAtAdvanced":true,"storeReloaded":true,"selectedRequests":["a","b"],"cachedModel":{"id":"a","model":"a","displayName":"a","description":"","reasoningDiscovery":"known","supportedReasoningEfforts":[],"defaultReasoningEffort":"low","isDefault":false},"freshModel":{"id":"b","model":"b","displayName":"b","description":"","reasoningDiscovery":"known","supportedReasoningEfforts":[{"reasoningEffort":"high","description":"High"}],"defaultReasoningEffort":"high","isDefault":false}} @bb/server:test: @bb/server:test: ❯ |@bb/server| test/providers/provider-model-catalog-store.test.ts (33 tests | 1 failed | 32 skipped) 992ms @bb/server:test: ↓ uses a session catalog immediately and pushes picker invalidation @bb/server:test: ↓ does not overwrite a session catalog with an older in-flight refresh @bb/server:test: ↓ deduplicates selected-model probes and merges out-of-order results without changing catalog defaults @bb/server:test: ↓ retains confirmed empty reasoning without probing it again after the failure cooldown @bb/server:test: × repro 8009: recovers reasoning after an empty discovery ages across refresh and store reload 190ms @bb/server:test: ↓ keeps discovered reasoning when a later full or live catalog reports the model unknown @bb/server:test: ↓ applies a selected-model probe that settles after a concurrent full refresh @bb/server:test: ↓ does not probe a model again after the agent answered without its levels @bb/server:test: ↓ does not replace a live session catalog with an older selected-model probe @bb/server:test: ↓ keeps reasoning unknown after command_failed and retries only after the per-model failure cache expires @bb/server:test: ↓ keeps reasoning unknown after timeout and retries only after the per-model failure cache expires @bb/server:test: ↓ keeps catalogs across a daemon reconnect, an unrelated registration and a capability-only re-registration @bb/server:test: ↓ treats a fingerprint change as a missing catalog and never serves the old models @bb/server:test: ↓ lists models with the provider's plugin environment and refetches when that environment changes @bb/server:test: ↓ serves a stale catalog at once with one background refresh and pushes only when the list changes @bb/server:test: ↓ keeps serving the last good catalog when a refresh 'fails', without a push or a row rewrite @bb/server:test: ↓ keeps serving the last good catalog when a refresh 'times out', without a push or a row rewrite @bb/server:test: ↓ keeps serving the last good catalog when a refresh 'answers for another command type', without a push or a row rewrite @bb/server:test: ↓ answers recorded failures without waiting for 30 seconds, then waits once for auth_required and refreshes a timeout in the background @bb/server:test: ↓ waits for discovery on execution-options reads after a cached timeout unless the caller prefers cached answers @bb/server:test: ↓ discovers the selected model's reasoning on execution-options reads that wait for discovery @bb/server:test: ↓ waits through recorded failures for validation and refreshes a catalog at least a minute old that lacks the override's model @bb/server:test: ↓ serves a persisted catalog to a new store and treats a corrupt row as missing @bb/server:test: ↓ persists one row per workspace path for workspace-scoped providers and one host row otherwise @bb/server:test: ↓ reads a workspace-scoped catalog in the project's checkout on the machine when a new thread names its project @bb/server:test: ↓ records no failure and sends no push when a refresh fails after its daemon session changed or because the host is not active @bb/server:test: ↓ collapses and truncates a long failure message before serving it to the picker @bb/server:test: ↓ ignores a refresh that settles after a later refresh under another fingerprint @bb/server:test: ↓ clears a provider's recorded failure in every workspace scope after a successful install @bb/server:test: ↓ marks catalogs stale and drops failures when the machine environment is saved, including a refresh that was in flight @bb/server:test: ↓ never evicts an entry with an in-flight refresh and reloads evicted entries from SQLite @bb/server:test: ↓ forgets a removed host's catalogs, persists and pushes nothing for its in-flight refreshes, and never persists ephemeral hosts @bb/server:test: ↓ serves a refreshed catalog without storing it while the server is moving @bb/server:test: @bb/server:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ @bb/server:test: @bb/server:test: FAIL |@bb/server| test/providers/provider-model-catalog-store.test.ts > provider model catalog store > repro 8009: recovers reasoning after an empty discovery ages across refresh and store reload @bb/server:test: AssertionError: expected [] to deeply equal [ { reasoningEffort: 'high', …(1) } ] @bb/server:test: @bb/server:test: - Expected @bb/server:test: + Received @bb/server:test: @bb/server:test: - [ @bb/server:test: - { @bb/server:test: - "description": "High", @bb/server:test: - "reasoningEffort": "high", @bb/server:test: - }, @bb/server:test: - ] @bb/server:test: + [] @bb/server:test: @bb/server:test: ❯ test/providers/provider-model-catalog-store.test.ts:385:59 @bb/server:test: 383| }), @bb/server:test: 384| ); @bb/server:test: 385| expect(cached.models[0]?.supportedReasoningEfforts).toEqual([ @bb/server:test: | ^ @bb/server:test: 386| { reasoningEffort: "high", description: "High" }, @bb/server:test: 387| ]); @bb/server:test: ❯ withTestHarness test/helpers/test-app.ts:430:12 @bb/server:test: ❯ test/providers/provider-model-catalog-store.test.ts:312:5 @bb/server:test: @bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ @bb/server:test: @bb/server:test: @bb/server:test: Test Files 1 failed (1) @bb/server:test: Tests 1 failed | 32 skipped (33) @bb/server:test: Start at 06:30:08 @bb/server:test: Duration 9.97s (transform 5.46s, setup 1.57s, import 5.29s, tests 992ms, environment 0ms) @bb/server:test: @bb/server:test:  ELIFECYCLE  Test failed. See above for more details. @bb/server#test: ERROR command ([first-checkout]/apps/server) /usr/local/bin/pnpm run test test/providers/provider-model-catalog-store.test.ts -t repro 8009 exited (1) Tasks: 10 successful, 11 total Cached: 0 cached, 11 total Time: 45.574s Failed: @bb/server#test ERROR run failed: command exited (1)