Skip to content

Updates page labels Claude Code's own updater as claude instead of "Built-in updater" (path-valued executableName) #7755

Closed

Description

@dillonzq

Summary

On Settings → Updates, each provider row with an available update names the tool that will run it ("Built-in updater", "npm", "Homebrew", …). Codex and Pi rows say "Built-in updater" for codex update / pi update --self, but a Claude Code row whose update runs claude update says claude instead. If the executable path contains characters formatCommand quotes (every Windows path, or a POSIX path with a space), the label is a fragment of the quoted path, such as claude.exe' or a user-name segment.

Versions and environment

  • bb 0.49.0 (npx bb-app), Linux 6.12 (Debian 13), Node 24.22.3; also checked on main at ab7ad23
  • claude-code, claude 2.1.327 native install at ~/.local/bin/claude
  • A second enrolled Windows machine (Claude Code not installed there, so the Windows case below comes from the code path and the unit test, not a live row)

Steps to reproduce

  1. On a machine with Claude Code installed natively, run bb updates status --json and look at the claude-code entry: executableName is the absolute path (/home/<user>/.local/bin/claude), while Codex and Pi report the bare names codex and pi.
  2. When Claude Code has an update available (or by adding the unit test below), open Settings → Updates and expand the machine.
  3. Look at the label to the right of the Claude Code row.

Live, Claude Code was current on my machine, so I confirmed the label with a component test that feeds the same status shape the Claude bridge reports. Patch on main, appended after the existing names the updater from the command the machine reports test in apps/app/src/components/settings/UpdatesSettingsSection.test.tsx:

issues: [
  withExecutable("codex", "C:\\Users\\Jo's PC\\.local\\bin\\codex.exe",
    "'C:\\Users\\Jo'\\''s PC\\.local\\bin\\codex.exe' update"),
  withExecutable("claude-code", "/home/user/.local/bin/claude",
    "/home/user/.local/bin/claude update"),
],
...
expect(labels).toEqual(["Built-in updater", "Built-in updater"]);

Expected vs actual

$ bb updates status --json   # claude-code entry, path redacted
"executableName": "/home/<user>/.local/bin/claude",
"executablePath": "/home/<user>/.local/bin/claude",

$ pnpm --filter @bb/app exec vitest run src/components/settings/UpdatesSettingsSection.test.tsx -t updater
AssertionError: expected [ '\'\'s', 'claude' ] to deeply equal [ 'Built-in updater', …(1) ]
-   "Built-in updater",
-   "Built-in updater",
+   "''s",
+   "claude",

Expected: both rows say "Built-in updater", because each update command runs the provider's own executable.

Evidence

  • providerCliUpdaterName takes the first whitespace-separated word of the display command, keeps its last path segment, and compares that with the whole executableName. It never strips shell quoting and never takes the basename of executableName:
    export function providerCliUpdaterName(
    status: ProviderCliStatusEntry["status"],
    ): string | null {
    const command = status.installAction?.command.trim().split(/\s+/u)[0];
    if (command === undefined || command.length === 0) {
    return null;
    }
    const executable = (command.split(/[\\/]/u).pop() ?? command).replace(
    /\.(?:exe|cmd|bat)$/iu,
    "",
    );
    if (executable === status.executableName) {
    return "Built-in updater";
    }
    return UPDATER_NAMES[executable] ?? executable;
    }
  • The Claude bridge reports the resolved absolute path as executableName and builds the command from that path:
    async function claudeExecutable(): Promise<string> {
    const explicit = process.env.BB_CLAUDE_CODE_EXECUTABLE?.trim();
    if (explicit) return explicit;
    return (await resolveExecutablePath("claude")) ?? "claude";
    }
    and
    const displayCommand =
    actionKind === "install"
    ? claudeInstallerCommand().displayCommand
    : formatCommand(command, ["update"]);
    return {
    executableName: command,
  • Regression: Show one line per machine on the Updates page #5170 added the label when claudeExecutable() still returned the bare name claude. One host toolchain for executable discovery, child PATH, and proxy/CA defaults #6194 (88048e6) changed it to return (await resolveExecutablePath("claude")) ?? "claude", so the Claude bridge now reports a path and the comparison no longer matches.
  • formatCommand single-quotes any part containing characters outside [A-Za-z0-9_./:@+-] (backslashes, spaces) and escapes ' as '\'', so the first whitespace-separated word is not the executable for those paths:
    export function formatCommand(
    command: string,
    args: readonly string[],
    ): string {
    return [command, ...args]
    .map((part) =>
    /^[A-Za-z0-9_./:@+-]+$/u.test(part)
    ? part
    : `'${part.replace(/'/gu, "'\\''")}'`,
    )
    .join(" ");
    }

What you ruled out

  • Found while investigating in a local bb thread. The findings are summarized here; the thread is not public.

  • Not Provider CLI maintenance should recognize externally managed executables and defer to their package manager #3166: that issue is about bb offering claude update for package-manager-owned binaries. Here the update command is correct and only its label is wrong.

  • Codex and Pi rows label correctly today because their bridges report the bare executable name and a bare command. The bug appears only when the reported executable is a path.

  • The bb updates CLI does not print an updater name, so only the web UI is affected.

Suggested priority and effort

Low. The label is cosmetic: the update still runs the right command, and the tooltip shows it. Every native Claude Code install with a pending update sees claude instead of "Built-in updater". Effort is low: make the label code parse the shell-quoted first word and compare basenames.

Checks

  • I reproduced this on the latest release or on main, or I say above that I could not.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

AGENT GENERATED

Activity

  1. added theissue type on Nov 18, 2026
  2. added
    ui
    provider-claude-code
    confirmed-repro
    on Nov 18, 2026
  3. bb-slop-cop commented on Nov 18, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Low · Effort: Low. Labels: ui, provider-claude-code, confirmed-repro.
    • Verdict: REPRODUCED · Root-cause confidence: high. Reproduction and root-cause report.
    • Root cause: updater labeling splits a shell-quoted command on whitespace and compares its basename against a potentially absolute executable name.
    • Reproduction: independently authored component tests repeat the same four path-related failures in two trusted-main checkouts; the bare-name control passes. The complete owner suite has 77 passes and only those four expected failures.
    • Scope: component/DOM evidence; no live provider update, native Windows run, or screenshot is claimed.
    • No new PR: open #7756 already closes this issue, so a duplicate fix was skipped.
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-reproprovider-claude-codeui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions