Skip to content

Manage provider availability in Settings and CLI - #4548

Merged
ymichael merged 6 commits into
mainfrom
bb/investigate-and-fix-issue-4490-thr_97aycgkhga
Sep 30, 2026
Merged

ymichael merged 6 commits into
mainfrom
bb/investigate-and-fix-issue-4490-thr_97aycgkhga

Conversation

@ymichael

@ymichael ymichael commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

BB automatically exposed installed ACP agents without a per-provider opt-out. Keeping OpenCode installed for other tools also made it available in BB, while disabling the ACP plugin removed sibling agents too. Providers whose plugins were disabled also disappeared from provider settings, making them difficult to re-enable.

What changed

  • Add persistent, server-wide provider enablement independent of plugin enablement. Disabled providers are excluded from pickers/default selection and rejected for new sessions and turns, while running turns, installed CLIs, and thread history are preserved. Disabling the default clears its selection, and a project whose last-used provider is disabled falls back to the next enabled provider instead of failing; explicit requests for a disabled provider are still rejected.
  • Store the preference as disabledProviderIds under its own settings key, outside Settings → General, so only the provider enable/disable route changes it. A stale general-settings save can no longer re-enable a provider, and a general-settings PUT that includes the field gets 400. Enable removes the entry, so a re-enabled installed-only agent such as acp-opencode again appears only where its CLI is installed. Uninstalling a plugin forgets its providers' disabled state.
  • Keep enabled and disabled providers in one Settings → Providers list. Enabled rows can be reordered; disabled rows are greyed out at the bottom. The standard three-dot menu contains Default (checked when selected) and Disable, or only Enable for disabled providers.
  • Keep disabled-plugin providers discoverable through optional bb.experimental_providers manifest metadata ([{ kind: "agent", id, displayName }]; kind uses the providerKind vocabulary and accepts only "agent" until another kind has a consumer) and saved provider identities. Enabling a provider also enables its supplying plugin when necessary, while preserving sibling opt-outs. ACP background capability probing skips disabled providers.
  • Add bb provider list --all, bb provider enable/disable <providerId>, SDK providers.catalog() / providers.setEnabled(), and corresponding HTTP routes. Update the CLI guide, skills, configuration docs, and Plugin Guide; record the experimental manifest field in the API audit list.

This implements the issue's core provider-management option rather than an ACP-only setting. It adds no daemon wire changes or database migration. Enabling a provider does not install its CLI or authenticate it.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/app --filter=@bb/cli --filter=bb-plugin-provider-acp passed.
  • Focused server tests passed: 49 tests across provider management, general settings, and execution options. Coverage includes hiding disabled providers, rejecting launches, preserving sibling preferences across plugin disable/enable, restoring automatic discovery after disable → enable, falling back from a disabled project default, forgetting preferences on plugin uninstall, discovering Claude with its plugin off, and retaining preferences through older settings writes.
  • Providers settings UI tests passed: 6 tests. ACP server.test.ts passed: 18 tests. CLI provider command-output tests passed: 8 tests.
  • After rebasing on origin/main: typecheck and lint pass for server, app, cli, sdk, db, domain, server-contract and provider-acp; provider-management.test.ts (5 tests) and the Providers settings UI tests pass. Full sdk, db and app suites passed before the rebase; the full server suite had 3 unrelated failures (two native plugin-loading tests that pass alone, and an install-machine-script timeout).
  • Live QA on a fresh pnpm start:worktree instance with real installed providers (Codex, Claude Code, Pi, Cursor, opencode, omp): UI/CLI/API disable and enable, sibling Cursor turns, picker, default clearing, project-default fallback, disabled-plugin catalog, restart persistence, in-flight turn completion. A stale general-settings save was reproduced re-enabling a provider before the fix and verified harmless after it.
  • Optimized app build passed. App and ACP lint passed with 209 existing app warnings and no errors. git diff --check passed.
  • Tested the isolated pnpm start:worktree app and source CLI: enable/disable, plugin re-enable, default selection, disabled spawn rejection, restart persistence, disabled-provider logos, and aligned desktop/mobile rows. The compact menu leaves the app root free of inert and aria-hidden.
  • iOS Simulator Safari page rendering was inspected; interactive Safari drawer verification remains blocked by macOS automation permissions.

Fixes #4490

AGENT GENERATED

ymichael and others added 4 commits September 30, 2026 10:35
…n enable

Store disabled providers as disabledProviderIds so Enable removes the entry
and installed-only agents return to CLI-based discovery. Skip a project's
last-used provider when it is disabled. Forget a plugin's provider
preferences on uninstall, read disabled providers once per listing, and
tidy imports and formatting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael force-pushed the bb/investigate-and-fix-issue-4490-thr_97aycgkhga branch from 7c49bf5 to c86aa6f Compare September 30, 2026 17:36
ymichael and others added 2 commits September 30, 2026 11:46
bb.experimental_providers entries now carry kind, using the providerKind
vocabulary. Only "agent" is accepted until another kind has a consumer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A stale Settings -> General save carried disabledProviderIds and could
silently re-enable a provider. Keep the list under its own settings key,
changed only through the provider enable/disable route, so general
settings reads and writes no longer include it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit a7562b9 into main Sep 30, 2026
20 checks passed
@ymichael
ymichael deleted the bb/investigate-and-fix-issue-4490-thr_97aycgkhga branch September 30, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide an auto-detected ACP agent (e.g. acp-opencode) from bb without uninstalling its CLI

1 participant