Skip to content

Custom ACP providers report available on hosts that cannot execute them #2320

Closed

Description

@Danielalnajjar

Attempted workflow

Select a globally configured custom ACP provider for a thread or workflow targeting an enrolled host other than the server's primary host.

Actual result

BB builds every custom ACP ProviderInfo with available: true and appends globally configured agents after resolving the target host, without probing whether that host can execute the configured command or working directory. Native pickers and workflow resolution can therefore advertise a provider on a host where its executable or adapter does not exist.

Evidence:

  • packages/config/src/bb-app-managed-config.ts:116-144 stores one global command and working directory with no host selector.
  • apps/server/src/services/providers/acp-provider-tier.ts:93-117 constructs dynamic ACP providers as available.
  • apps/server/src/services/system/execution-options.ts:102-137,234-253 resolves a host but appends the global custom agents without a host execution probe.
  • apps/server/test/system/execution-options.test.ts:651-687,946-1006 currently codifies listing the custom provider without a usable target-host proof.

Expected result

Custom ACP availability is evaluated for the requested host or environment. A command or working directory that cannot execute there is unavailable or omitted consistently across provider lists, composers, native pickers, and workflow resolution, and selection fails before thread creation with a host-specific non-secret reason.

Acceptance criteria

  • Tests cover two hosts where the same global provider is executable on one and unavailable on the other.
  • Known-agent probing and primary-host fallback remain intact.
  • Availability behavior is shared by picker and workflow consumers rather than reimplemented in each plugin.

AGENT GENERATED: by GPT-5.6 Sol

Activity

  1. added theissue type on Aug 24, 2026
  2. added
    providers
    provider-acp
    host
    on Aug 24, 2026
  3. SawyerHood commented on Aug 24, 2026

    @SawyerHood
    Collaborator

    ---Auto-Generated---

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2320.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): plugins/provider-acp/src/agents.ts hard-codes user-configured ACP agents to visibility "always", so the server lists them via listConfiguredSystemProviderInfos with no per-host provider.health probe (unlike shipped installed-only agents), and ProviderInfo.available only reflects plugin load, so pickers/workflows/thread creation accept the agent on any host and the thread is created and provisioned before thread.start fails with missing_executable.
    • Proposed fix: (1) In plugins/provider-acp/src/agents.ts customAcpAgentDefinition, declare configured agents visibility "installed" instead of "always" so they flow through listInstalledPluginProviderInfos and the existing ACP bridge provider/health PATH check (getAcpProviderHealth already returns not_installed for any launch spec; no wire change, no protocol bump). Update the comment and docs/configuration.md. (2) In apps/server thread creation (thread-create.ts, after host resolution and before persisting the thread), run the same per-host provider.health readiness check for installed-only providers and th…
    • Caveats: The issue's file/line references (acp-provider-tier.ts, bb-app-managed-config.ts:116-144, execution-options.ts line ranges) are stale: it was filed minutes before Provider plugins: one API for Codex, Claude Code, pi, and ACP agents #2325 merged and deleted the ACP tier; the replacement code path has identical behavior at base 494f665. Live repro used a single enrolled host with a custom agent whose command path does not exist (all shipped ACP CLIs are installed o…

    The report is self-contained: copy-paste repro steps with the test or script inline, expected vs actual output, screenshots where the bug is visual, and code permalinks at the base commit. It was independently re-executed by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Code

  4. added
    confirmed-repro
    on Aug 24, 2026
  5. added a commit that references this issue on Oct 10, 2026
    fe1a02d
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

    confirmed-reprohostprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions