Repository navigation
Description
The workflow
I keep several agent providers configured but only start new threads on one or two of them by hand. The others are used by automations, by bb thread spawn --provider … from scripts, or by a few long-running threads that already run on them. I want the new-thread and follow-up provider pickers to list only the providers I pick manually, while everything else keeps working unchanged.
What happens today
Tested against desktop-v0.45.0 (129f621771a3e275773992db648316966ac207cf).
The only per-provider switch is enable/disable (added for #4490 by PR #4548). Disabling removes the provider from pickers, but it is a server-side policy: new turns and sessions on that provider are rejected, queued messages and automations are subject to the same check, and an explicit request for a disabled provider is rejected too:
Lines 604 to 611 in 129f621
Settings → Providers lists disabled providers below enabled providers in the same list. Only enabled providers can be reordered. Each row’s three-dot menu enables or disables the provider, or makes an enabled provider the default. Enable restores a provider and, if needed, its supplying plugin. Disabling an individual provider leaves its plugin, sibling providers, installed CLI, and existing threads intact. In-flight turns can finish; new turns and sessions are rejected until the provider is enabled again. Queued messages and automations are subject to the same server-side check. Lines 619 to 625 in 129f621
`bb provider list` and thread pickers omit disabled providers. `list --all` shows the global management catalog, including providers whose plugins are off; it cannot be combined with machine or environment selectors. Enabling a shared plugin preserves individual provider opt-outs. Disabling the selected default clears that choice, allowing the next enabled provider in saved order to be used. A project whose last-used provider is disabled also falls back to that order; explicitly requesting a disabled provider is still rejected. bb/apps/server/src/services/system/execution-options.ts
Lines 118 to 132 in 129f621
function listConfiguredSystemProviderInfos( deps: Pick<LoggedWorkSessionDeps, "providerRegistry">, filter: ProviderFilter = {}, ): ProviderInfo[] { const disabled = deps.providerRegistry.disabledProviderIds(); return deps.providerRegistry .list() .filter( (entry) => !disabled.has(entry.info.id) && entry.visibility === "always" && providerMatchesFilter(entry.info, filter), ) .map((entry) => entry.info); }
providerOrder and defaultProviderId (
bb/packages/domain/src/app-settings.ts
Lines 22 to 23 in 129f621
| providerOrder: z.array(z.string().min(1)), | |
| defaultProviderId: z.string().min(1).nullable(), |
So there is no middle ground: a provider is either offered in every picker or unusable for new work. Note that the per-environment availability code in apps/server/src/services/environments/provider-availability.ts is about environment providers (worktree/devcontainer plugins), not agent providers, and does not apply here.
Steps:
- Have at least two agent providers available (for example
claude-codeandacp-cursor). - Try to make
acp-cursordisappear from the new-thread picker while keeping a thread that already runs on it usable. The only options arebb provider disable acp-cursor(which, per the docs above, rejects new turns on that provider) or dragging it to the bottom of Settings → Providers (still listed).
What you would expect
- A per-provider "hide" toggle in Settings → Providers, with a CLI/SDK equivalent (
bb settings general hiddenProviders '["acp-cursor"]'), that removes the provider only from agent-provider pickers. - Hidden providers keep working: a thread already running on one keeps it selected and can still send; explicit CLI/SDK requests succeed;
/system/providersand execution-options responses are unchanged; automations are unaffected. - When a picker would otherwise land on a hidden provider (stored preference, project or fork default,
defaultProviderId, or the resolved ready provider), it falls back to the first visible provider in picker order without rewriting the stored setting. - Settings → Providers keeps listing hidden providers with a badge and a one-click restore so they cannot get lost.
- Hiding is orthogonal to
providerOrderand to enable/disable.
How the fork implements it
Prototype: desktop-v0.45.0...hxy91819:bb:feature/hidden-providers (16 files, +573/−17, roughly half of it tests).
hiddenProviders: string[]added toappSettingsSchemawith default[]; optional inappSettingsUpdateSchema, and the server merge inroutes/system.tskeeps the stored list when an older client omits the field.- A client-side filter in
useThreadCreationOptions(newthread-creation-options/visible-providers.tshelpers) removes hidden ids fromproviderOptionsand from ready-provider resolution, falls back to the first visible provider, and reports that fallback as aclient-preferenceexecution-input source so the fallback is submitted as the client's choice instead of inheriting the server default. This covers every picker built on that hook: the new-thread composer, the follow-up composer, embedded chats, and the plugin provider/model picker. ModelReasoningPickerstill allows switching away from a hidden provider that is the thread's current provider even when only one other provider is visible.- Eye toggle and a
Hiddenbadge per row inProvidersSettingsSection; the section description explains that hidden providers stay listed there. - A paragraph in
docs/configuration.md. - No server-side policy change; the server continues to return every provider.
One design point for maintainers: the fork stores the list in general settings. Upstream deliberately keeps disabledProviderIds apart from general settings so a stale general-settings save cannot clear it (
Lines 627 to 632 in 129f621
| The core `disabledProviderIds` value lists disabled providers by ID. It is stored | |
| apart from Settings → General, so only the provider enable/disable route, CLI and | |
| SDK change it; a general-settings save, even from a stale client, cannot. Enable | |
| removes the ID, so the provider returns to its automatic discovery behavior: | |
| agents such as `acp-opencode` again appear only where their CLI is installed. | |
| Uninstalling a plugin forgets the disabled state of its providers. |
What I ruled out
- Not a duplicate of Hide an auto-detected ACP agent (e.g. acp-opencode) from bb without uninstalling its CLI #4490: that issue asked for a provider to be hidden and to refuse new turns, which is what enable/disable now does. This request is for hiding only, with the provider staying fully usable.
- Not covered by
providerOrderordefaultProviderId: both keep the provider in the list. - Searched open and closed issues for "hide provider", "hidden providers picker", "provider picker clutter", "disable provider", "provider order"; no other match.
Per CONTRIBUTING, this issue comes before a PR. I will open the PR from the branch above after sign-off here and contributor approval.
AGENT GENERATED
Activity
Record upstream issues get-bb#4811, get-bb#4812 and the get-bb#4778 c…
bb-slop-cop commentedon Oct 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classifications:
providersVerified all values after applying them; no existing classifications were replaced. Trusted
origin/maindocuments provider disabling as execution policy, so visibility-only control adds new behavior. No reproduction report or pull request: this is a feature request, not a bug.Record upstream issues get-bb#4811, get-bb#4812 and the get-bb#4778 c…