Skip to content

Claude Code provider: installation status and health ignore plugin-contributed BB_CLAUDE_CODE_EXECUTABLE, composer stays blocked #7614

Closed

Description

@vlasovsmm

Summary

A plugin that ships its own Claude Code binary and hands it to bb through bb.providers.experimental_contributeEnv("claude-code", …) (BB_CLAUDE_CODE_EXECUTABLE) gets working threads, but on a machine with no claude on PATH or in the well-known paths the new-thread composer stays blocked with "Claude Code not installed". The installation status and provider health only look at the bridge process environment, so they never see the plugin's executable. Expected: the provider counts as installed on that host, the same way #7401 made model/list honour the plugin env.

Versions and environment

  • bb 0.48.1 (npx bb-app), macOS 26.4.1 arm64. Code paths below are unchanged in 0.49.0 and on main at da3e60b81d560e114a2bec724bb59c997aaaae7f.
  • Plugin SDK 0.6.104. Claude Code 2.1.301 and 2.1.325 (the plugin's own copy, outside PATH).
  • Plugin: vlasovsmm/claude-russia-bb. It downloads Claude Code into ~/.claude-russia/bb/programma/ and contributes BB_CLAUDE_CODE_EXECUTABLE (plus its own config dir) for threads on the primary host.

Steps to reproduce

  1. Machine where command -v claude is empty and ~/.local/bin/claude, ~/.claude/local/claude, /opt/homebrew/bin/claude, /usr/local/bin/claude do not exist.
  2. A plugin with bb.providers.experimental_contributeEnv("claude-code", () => [{ name: "BB_CLAUDE_CODE_EXECUTABLE", value: "/abs/path/to/claude", reason: "plugin ships Claude Code" }]), where the path is an executable Claude Code outside PATH.
  3. Open bb, click New thread, choose the Claude tab in the model picker.
  4. bb machine provider-cli status <host> --json and bb thread spawn --provider claude-code --prompt "hi" (no --model).

Observed with the plugin above on 0.48.1 in a clean HOME. The minimal snippet in step 2 is the same call reduced to one entry; I did not run it as a separate plugin.

Expected vs actual

Expected: Claude Code counts as installed on that host, the composer is enabled, the default model resolves.

Actual:

  • Composer: "Claude Code not installed", send blocked with "Install Claude Code before starting a thread."
  • Model picker (0.48.1 / 0.49.0): "Could not load models for Claude Code. CLI not found". Fixed for model/list by List pooled accounts' Claude models in the Claude Code picker #7401, not released yet.
  • bb machine provider-cli status: "installed": false, "installSource": "notInstalled".
  • bb thread spawn without --model: HTTP 503: Unable to load claude-code models to resolve the default.
  • Threads spawned with an explicit --model run fine through the plugin's binary, because thread launch does receive the contributed env.

Evidence (code on main)

  • claudeExecutable() reads only the bridge's own process.env.BB_CLAUDE_CODE_EXECUTABLE, then PATH: provider-maintenance.ts#L41-L45. Both getClaudeProviderInstallationStatus (#L118-L131) and getClaudeProviderHealth (#L316-L320) use it.
  • The daemon commands provider.health and provider.installation.status carry no contributedEnv, while provider.list_models does: commands.ts#L917-L950.
  • The app keeps the host CLI status with SESSION_STATIC_QUERY_POLICY (system-queries.ts#L631-L649) and refreshes it only after an install or update run through bb. So even when the status changes server-side (for example after a machine env change), an open window keeps "Claude Code not installed" until a page reload. Measured on 0.48.1: still shown 94 s after the change and after a focus event, gone after reload.

What we ruled out

Suggested priority and effort

Hits every plugin that provides its own Claude Code binary on machines without a separate Claude Code install; the workaround above exists but is global. A fix could follow #7401: resolve the plugin env for provider.installation.status and provider.health with the host id and pass it to the bridge, and refresh the cached host CLI status when that env or the machine environment changes.

AGENT GENERATED

Activity

  1. added theissue type on Nov 16, 2026
  2. added
    providers
    provider-claude-code
    partial-repro
    on Nov 16, 2026
  3. bb-slop-cop commented on Nov 16, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Medium. Added providers, provider-claude-code, and partial-repro; no existing classifications were replaced.
    • Report: Reproduction and root-cause analysis — PARTIALLY REPRODUCED, root-cause confidence high.
    • Evidence: The same probe in two clean checkouts of trusted main produces two intended failures and two passing controls: maintenance ignores the request executable, and the host schemas reject contributed environment for installation/health while accepting it for models. This uses an unavailable process fallback; the original macOS/plugin/composer scenario and cache timing remain unverified.
    • Root cause: Maintenance requests omit contributed environment, and Claude maintenance discovers its executable from the bridge process environment. The report also corrects the cache claim: a dedicated status-change event already invalidates the UI query.
    • No PR: An end-to-end repair changes the server/daemon protocol and multiple subsystems, outside this rule’s simple-fix safety limits.

    AGENT GENERATED

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

    partial-reproprovider-claude-codeproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions