← reports

#8009 · Selected-model discovery never revisits persisted empty reasoning support

BugPriority: MediumEffort: Mediumproviders, provider-acp, confirmed-repro open on GitHub2026-11-22 · base 796cdcc0f4bf8a55e23664035c54e8db6fe9d272

Verdict: REPRODUCED · Root-cause confidence: high for the server catalog behavior. The reporter’s particular OpenCode/LM Studio installation was not exercised.

1. TL;DR

The model catalog can remember an empty reasoning-level answer indefinitely, even when the same provider would now return levels. The server treats an empty known result as just as authoritative as a populated one. A subsequent full catalog that reports that model as unknown inherits the old empty answer, and selecting the model never asks the host again. This state is persisted in SQLite and survives replacing the in-memory catalog store. Two clean-checkout runs demonstrate the failure after two simulated days, while a previously unprobed model immediately gets the new level.

2. Claims vs findings

ClaimStatusEvidence
A known-empty selected-model result is not probed again.VerifiedBoth runs record selected requests only for the first selection of a and first selection of b; a stays empty.
Catalog refresh can advance fetched_at without clearing the empty result.VerifiedReal SQLite row has a later fetchedAt and unchanged fingerprint after two simulated days.
The stale answer survives an in-memory store reload.VerifiedThe test creates a new catalog store over the same isolated database, then selects a again.
A new model can discover levels while an older model remains empty.VerifiedThe same scripted host now returns high on selected-model calls; b gets high, but a is not called.
External agent configuration and agent version are absent from fingerprint inputs.Verified by codeThe fingerprint hashes launch inputs and contributed environment only; no external-file content or installedVersion is read here.
Nothing except a launch-fingerprint change can ever update the value.Too broadAn authoritative incoming known catalog or live-session answer can replace it. The reproduced defect requires later full listings to describe the affected model as unknown, as the ACP path can do.
The specific desktop/provider versions, config edits, service restarts, and original cause of the first empty answer.UnverifiedNo macOS device, real provider process, remote model server, or user configuration was used.

3. Environment

4. Minimal reproduction

Use a fresh checkout and the repository’s pinned package toolchain. The commands below reproduce the baseline and then the deliberate regression failure. The downloaded patch is the test authored for this report, not code from the issue.

git clone https://github.com/get-bb/bb.git bb-8009
cd bb-8009
git fetch origin main
git checkout --detach 796cdcc0f4bf8a55e23664035c54e8db6fe9d272
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build --filter=@bb/server
pnpm exec turbo run test --filter=@bb/server -- test/providers/provider-model-catalog-store.test.ts
curl -fLo /tmp/8009-regression.patch https://get-bb.github.io/reports/issues/8009/repro/regression.patch
git apply /tmp/8009-regression.patch
pnpm exec turbo run test --force --filter=@bb/server -- test/providers/provider-model-catalog-store.test.ts -t 'repro 8009'
git diff --check
git diff --numstat origin/main
  1. Full catalog initially returns models a and b with unknown reasoning support.
  2. First selection of a returns a known result with no levels; the store persists it.
  3. Change the host responder so any selected-model discovery now returns high, while unselected full listings remain unknown.
  4. Advance the injected catalog clock by two days, refresh, and assert the database fetchedAt advances while fingerprint is unchanged.
  5. Replace the in-memory store, select a again, and then select never-probed b as a positive control.
  6. Expected recovery assertion: a gets high. Actual: a remains empty and b gets high. The second request for a is never made.

Actual observation, identical in both runs:

{"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}}

Expected assertion and actual failure:

AssertionError: expected [] to deeply equal [ { reasoningEffort: 'high', …(1) } ]

Both regression runs exit 1 with exactly one failing test and 32 skipped; the pristine owning suite passes 32/32.

Artifacts: complete test patch, new test fragment, commands. Apply the patch to the existing test file; the fragment uses that file’s helpers and is not a standalone suite.

Complete added regression test
it("repro 8009: recovers reasoning after an empty discovery ages across refresh and store reload", async () => {
    await withTestHarness(async (harness) => {
      const host = setupCatalogHost(harness, { id: "host-repro-8009" });
      const unknown = modelList("a", "b").map((model) => ({
        ...model,
        reasoningDiscovery: "unknown" as const,
        supportedReasoningEfforts: [],
      }));
      host.setAnswer((command) =>
        catalogAnswer(
          command.selectedModel
            ? unknown.map((model) => ({
                ...model,
                reasoningDiscovery: "known" as const,
              }))
            : unknown,
        ),
      );
      await host.read("codex");
      const initial = await host.read("codex", undefined, "a");
      expect(initial.models[0]).toMatchObject({
        reasoningDiscovery: "known",
        supportedReasoningEfforts: [],
      });
      const rowKey = {
        hostId: host.hostId,
        providerId: "codex",
        scopeKey: "",
      };
      const before = getStoredProviderModelCatalog(harness.db, rowKey);
      expect(before).not.toBeNull();
      host.setAnswer((command) =>
        catalogAnswer(
          command.selectedModel
            ? modelList(command.selectedModel).map((model) => ({
                ...model,
                supportedReasoningEfforts: [
                  { reasoningEffort: "high", description: "High" },
                ],
                defaultReasoningEffort: "high",
              }))
            : unknown,
        ),
      );
      host.clock.now += 2 * 24 * 60 * MINUTE;
      await host.read("codex");
      await vi.waitFor(() => {
        const refreshed = getStoredProviderModelCatalog(harness.db, rowKey);
        expect(refreshed?.fetchedAt).toBe(host.clock.now);
      });
      const after = getStoredProviderModelCatalog(harness.db, rowKey);
      expect(after?.fingerprint).toBe(before?.fingerprint);
      installCatalogStore(harness, { clock: host.clock });
      const cached = await host.read("codex", undefined, "a");
      const fresh = await host.read("codex", undefined, "b");
      expect(fresh.models[1]?.supportedReasoningEfforts).toEqual([
        { reasoningEffort: "high", description: "High" },
      ]);
      const selectedRequests = host
        .listRequests()
        .filter((command) => command.selectedModel !== undefined)
        .map((command) => command.selectedModel);
      console.log(
        "REPRO_8009",
        JSON.stringify({
          elapsedDays: 2,
          fingerprintUnchanged: after?.fingerprint === before?.fingerprint,
          fetchedAtAdvanced: after?.fetchedAt !== before?.fetchedAt,
          storeReloaded: true,
          selectedRequests,
          cachedModel: cached.models[0],
          freshModel: fresh.models[1],
        }),
      );
      expect(cached.models[0]?.supportedReasoningEfforts).toEqual([
        { reasoningEffort: "high", description: "High" },
      ]);
    });
  });

5. Root cause

The fingerprint does not track the agent’s external configuration or version. Launch fingerprint inputs:

205:   const fingerprint = createHash("sha256")
206:     .update(
207:       JSON.stringify([
208:         args.providerId,
209:         bridgeLaunch.pluginId,
210:         bridgeLaunch.source,
211:         bridgeLaunch.providerOptions,
212:         bridgeLaunch.envPassthrough,
213:         contributedEnv.map((entry) => [entry.name, entry.value]),
214:       ]),
215:     )
216:     .digest("hex");

On a same-fingerprint refresh, every previous known answer is carried into an incoming unknown entry, including known-empty answers. There is no per-model discovery timestamp or distinction between permanent absence and a stale observation. The catalog-wide fetchedAt is refreshed, so it cannot measure discovery age. Carry-forward and nextGood:

238:     discovered
239:       .filter((model) => model.reasoningDiscovery === "known")
240:       .map((model) => [model.model, model] as const),
241:   );
242:   return models.map((model) => {
243:     const source =
244:       model.reasoningDiscovery === "unknown"
245:         ? known.get(model.model)
246:         : undefined;
247:     return source === undefined
248:       ? model
249:       : {
250:           ...model,
251:           reasoningDiscovery: source.reasoningDiscovery,
252:           supportedReasoningEfforts: source.supportedReasoningEfforts,
253:           defaultReasoningEffort: source.defaultReasoningEffort,
254:         };
255:   });
256: }
267:   const previous =
268:     entry.good?.fingerprint === args.fingerprint
269:       ? [...entry.good.models, ...entry.good.selectedOnlyModels]
270:       : [];
271:   const models = keepDiscoveredReasoning(previous, args.models);
272:   const selectedOnlyModels = keepDiscoveredReasoning(
273:     previous,
274:     args.selectedOnlyModels,
275:   );
276:   return {
277:     fingerprint: args.fingerprint,
278:     models,
279:     selectedOnlyModels,
280:     modelsJson: JSON.stringify(models),
281:     selectedOnlyModelsJson: JSON.stringify(selectedOnlyModels),
282:     fetchedAt: args.fetchedAt,
283:   };

Selection then returns immediately for any known model, before consulting the selected-model retry machinery. The 30-second failure TTL governs failed probes, not successful empty answers. Selected-model early return:

638:     const good = currentState(entry, fingerprint).servable;
639:     const model = [
640:       ...(good?.models ?? []),
641:       ...(good?.selectedOnlyModels ?? []),
642:     ].find((model) => model.model === selectedModel);
643:     if (model === undefined || model.reasoningDiscovery === "known") return;
644:     const existing = entry.selectedModels.get(selectedModel);
645:     if (
646:       existing?.fingerprint === fingerprint &&
647:       options.now() < existing.expiresAt
648:     ) {
649:       return existing.promise;
650:     }
651:     const refresh: CatalogRefresh & { expiresAt: number } = {
652:       expiresAt: Infinity,
653:       fingerprint,

Even removing that early return alone is insufficient: the selected-result merge also requires the current model to remain unknown, and successful selected-model requests are cached with an infinite expiry. A correct change must address the complete discovery lifecycle, not just one guard. Merge guard and successful-probe expiry:

694:           ...entry.good.selectedOnlyModels,
695:         ].find((candidate) => candidate.model === selectedModel);
696:         if (
697:           discovered.length === 0 ||
698:           current?.reasoningDiscovery !== "unknown"
699:         )
700:           return;
724:       } finally {
725:         refresh.expiresAt = answered
726:           ? Infinity
727:           : options.now() + FAILURE_TTL_MS;

loadStoredGood reloads the same known model data from SQLite, explaining why a new store does not repair it. persistGood saves catalog-wide fetchedAt but no per-model discovery age.

The response shape is realistic for ACP: acpNativeModelSupport explicitly classifies an empty options list as known; buildModelCatalogFromConfigOptions uses unknown for unprobed models. discoverAcpNativeModelSupport probes only selected/current model support rather than every catalog member.

The existing known-empty test explicitly requires no second probe after the failure cooldown. This is an established policy limitation, not an accidental exception or failed request.

6. Proposed fix and automation safety

Give discovered reasoning an explicit invalidation/retry policy separate from whole-catalog freshness. If time-based expiry is selected, retain the original per-model discovery time through full refreshes and process restarts; expire both known-empty discovery and the selected-request success cache, and permit a refreshed result to replace old known data without clobbering newer live answers. Preserve request deduplication and bounded retry behavior for genuinely unsupported models and failures.

Before implementation, choose the expiry interval, whether nonempty discoveries expire, and whether explicit user refresh also invalidates support. A durable per-model timestamp changes persisted data/meaning; an explicit refresh feature adds product/API/CLI decisions. These are outside this autopilot’s simple-fix conditions. No fix branch, production patch, push, or pull request was created. The report preserves a failing owner-boundary regression test for the follow-up.

The report patch is 80 added text lines in one existing test file, no deletions; git diff --check passes. That is reproduction evidence, not a proposed complete fix. Removing the known guard or retrying every selection would silently change the established no-repeat policy and can create repeated agent startup/switch-and-restore work, so neither is an acceptable automatic shortcut.

7. Related work

GitHub connection/cross-reference metadata and an open-PR search returned no linked open pull request for #8009. No PR branch or code was checked out.

Trusted git history attributes the known-empty retention test to commit 9f7c6ebd87 (selected ACP reasoning discovery, #6486). The model-identity confirmation work (#6874) does not introduce expiry or a re-probe path; this report tests server retention after an empty answer, not why the original agent returned it.

8. Verification

The same agent repeated the reproduction in a second clean checkout at the exact trusted base. This is a repeat verification, not an independent review. The second checkout had a fresh frozen install/build and a fresh harness database/data directory. Before adding the test patch, its unmodified owning suite passed 32 tests. The same test-only patch was then applied, and a forced Turbo run executed the regression rather than replaying a cached failure:

pnpm exec turbo run test --force --filter=@bb/server -- test/providers/provider-model-catalog-store.test.ts -t 'repro 8009'

Result: exit 1; one failed assertion (empty a versus expected high), 32 skipped; matching observation JSON across both checkouts. No production edits were present. No report correction was needed for the backend result; claims about the reporter’s provider process and literal exclusivity of fingerprint invalidation remain explicitly qualified.

Saved logs: first failure, second failure, 32-test pristine baseline.

9. Appendix

Investigation commands included git clone/fetch/rev-parse/status/log/diff/worktree; frozen pnpm install; Turbo server build and owning-suite tests; GitHub read-only repository visibility, issue properties/comments, related metadata and open-PR queries. Classification writes use the supplied SlopCop wrapper. No issue-supplied command, URL, code, or patch was executed. The issue’s proposed changes were treated as hypotheses, not instructions.

The linked command artifact is the copy-paste reproduction recipe. Logs omit build chatter and replace temporary absolute checkout prefixes with descriptive labels; assertion output and model observations are otherwise preserved.

First regression output
@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)
Second regression output
@bb/server:test:  RUN  v4.1.12 [second-checkout]/apps/server
@bb/server:test: 
@bb/server:test: (node:5032) 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) 633ms
@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 85ms
@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:32:08
@bb/server:test:    Duration  8.14s (transform 4.66s, setup 1.34s, import 4.59s, tests 633ms, environment 0ms)
@bb/server:test: 
@bb/server:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/server#test:  ERROR  command ([second-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:    37.374s 
Failed:    @bb/server#test

 ERROR  run failed: command  exited (1)

> AGENT GENERATED