Skip to content

Hide a provider from thread pickers without disabling it (hiddenProviders general setting) #4811

Description

@hxy91819

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:

  • bb/docs/configuration.md

    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.
  • bb/docs/configuration.md

    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.
  • 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 (

providerOrder: z.array(z.string().min(1)),
defaultProviderId: z.string().min(1).nullable(),
) only change the order and the preselected entry; a provider cannot be removed from the list without disabling it.

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:

  1. Have at least two agent providers available (for example claude-code and acp-cursor).
  2. Try to make acp-cursor disappear from the new-thread picker while keeping a thread that already runs on it usable. The only options are bb 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/providers and 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 providerOrder and 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 to appSettingsSchema with default []; optional in appSettingsUpdateSchema, and the server merge in routes/system.ts keeps the stored list when an older client omits the field.
  • A client-side filter in useThreadCreationOptions (new thread-creation-options/visible-providers.ts helpers) removes hidden ids from providerOptions and from ready-provider resolution, falls back to the first visible provider, and reports that fallback as a client-preference execution-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.
  • ModelReasoningPicker still 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 Hidden badge per row in ProvidersSettingsSection; 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 (

bb/docs/configuration.md

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.
). The fork mitigates this by making the field optional in the update schema, but a dedicated route like the enable/disable one would also work if you prefer.

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 providerOrder or defaultProviderId: 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

  1. added a commit that references this issue on Oct 3, 2026
  2. added
    providers
    on Oct 3, 2026
  3. bb-slop-cop commented on Oct 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied the missing classifications:

    • Type: Feature
    • Priority: Low — picker customization is a convenience improvement, not an execution failure.
    • Effort: High — a persisted preference needs a storage/compatibility decision, CLI/SDK support, and consistent selection fallback across pickers.
    • Labels: providers

    Verified all values after applying them; no existing classifications were replaced. Trusted origin/main documents 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.

    AGENT GENERATED

  4. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    providers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions