Repository navigation
Description
Summary
When a custom ACP agent's modelCli.listArgs command fails or times out, the provider catalog is replaced with a single acp-default entry and the refresh is logged as success. Every model a thread or plugin has pinned then looks unavailable until a later refresh succeeds.
A failed listing should keep the last good catalog, or be reported as a failure. It should never publish a degraded one-entry catalog as changed: true success.
Versions and environment
- bb desktop 0.45.0 (npm
bb-app0.45.0), macOS 26 (Darwin 25.6.0), Apple Silicon, single local host. - Provider:
provider-acpwith acustomAgentsentry usingmodelCli: { listArgs: ["--bb-list-models"], selectFlag: "--model", primaryModels: [] }. - The
handleModelList/loadAgentModelCatalogcode onmain(packages/provider-bridge-acp/src/bridge/bridge.ts) has the same structure as the 0.45.0 bundle. I have not run 0.46.0.
Steps to reproduce
- Configure a custom ACP agent with
modelCli.listArgswhose list command normally printsacp-default - …followed by two or moreprovider/idlines. - Let the catalog refresh once successfully: the log shows
Provider model catalog refresh settled … "outcome":"success","modelCount":3. - Make the list command fail on the next refresh: exit non-zero, or run past
MODEL_LIST_TIMEOUT_MS. Under heavy host load the command simply took longer than the timeout. - Watch the next
catalog refresh settledline, and anything that validates a pinned model against the catalog.
Expected vs actual
Expected: the catalog keeps the last good list, or the refresh records a failure and keeps the stored catalog.
Actual: the refresh is recorded as success with one model, and the stored catalog is replaced:
[00:35:13] Provider model catalog refresh settled {"providerId":"acp-prime","durationMs":2770,"outcome":"success","modelCount":3,"changed":false}
[00:45:47] Provider model catalog refresh settled {"providerId":"acp-prime","durationMs":27749,"outcome":"success","modelCount":1,"changed":true}
[00:57:19] Provider model catalog refresh settled {"providerId":"acp-prime","durationMs":14590,"outcome":"success","modelCount":3,"changed":true}
Between 00:45:47 and 00:57:19, a plugin scheduler that checks its pinned worker model against the catalog refused the same work item over 12,000 times, with worker model <provider>/<id> is not available from acp-prime. The model was still configured and was served again as soon as the next refresh succeeded.
Evidence
handleModelList(bridge.ts): whenloadAgentModelCatalog(params.listCommand)returnsnullandlistCommandis set, session discovery is skipped. The handler falls through tosendResult(id, { models: [ACP_DEFAULT_MODEL], selectedOnlyModels: [] }), a normal result rather than an error.loadAgentModelCatalogdoes returncachedModelCatalogon failure, but that cache is a module-level variable inside the bridge process. Inference, not proven: the failing refresh ran in a bridge process that held no earlier catalog, so the cache was empty and the one-entry fallback was sent. Either way, the measured outcome on 0.45.0 is the collapse shown above.- The server then records the one-entry result as
outcome: "success"andchanged: true, so the degraded list replaces the good stored catalog.
What you ruled out
- The agent's own model configuration: unchanged throughout. The next refresh returned the same 3 models with no config change.
- The list command printing a short list: our command refuses to print a list of one model or fewer and exits 1. The one-entry catalog came from the bridge fallback, not from the command's stdout.
- A local workaround fixing the root cause: we now make our list command serve its own last good list on failure. That masks the problem for one agent only; any other
modelCliagent with a slow or failing list command still collapses.
Suggested priority and effort (optional)
Medium priority, small change. Options:
- When
listCommandis set and returns no catalog, return an error frommodel/listinstead of theacp-default-only result. The server then keeps its stored catalog and recordsoutcome: "failure". - Or, server side, never let a one-entry
acp-defaultresult replace a stored catalog that had more models. - Or, move
cachedModelCatalogto a store that outlives one bridge process.
Checks
- I could not test 0.46.0 (released 2026-10-09). I checked that the same code path exists on
main. - I searched open and closed issues. Related but different: Model picker times out for ACP providers: cursor catalog discovery re-spawns the full agent (30s budget, 60s cache, silent fallback) #4459 (Cursor full-agent discovery timeouts, no
modelCli) and Composer bootstrap should survive ACP model-list failures and use last execution model #365 (composer bootstrap after ACP model-list failures).
AGENT GENERATED: written by Claude Code from a local incident investigation. The underlying report is private local notes, so there is no public link.
Activity
bb-slop-cop commentedon Oct 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-acp,confirmed-repro; no existing classifications were replaced.acp-default-only response, which the server persists instead of retaining its last good catalog.Preserve ACP catalogs when explicit model discovery fails (#5313)