Repository navigation
Description
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 onmainat ab7ad23 - claude-code,
claude2.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
- On a machine with Claude Code installed natively, run
bb updates status --jsonand look at theclaude-codeentry:executableNameis the absolute path (/home/<user>/.local/bin/claude), while Codex and Pi report the bare namescodexandpi. - When Claude Code has an update available (or by adding the unit test below), open Settings → Updates and expand the machine.
- 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
providerCliUpdaterNametakes the first whitespace-separated word of the display command, keeps its last path segment, and compares that with the wholeexecutableName. It never strips shell quoting and never takes the basename ofexecutableName:bb/apps/app/src/components/settings/UpdatesSettingsSection.tsx
Lines 1089 to 1104 in ab7ad23
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
executableNameand builds the command from that path:andbb/plugins/provider-claude-code/src/bridge/provider-maintenance.ts
Lines 41 to 45 in ab7ad23
async function claudeExecutable(): Promise<string> { const explicit = process.env.BB_CLAUDE_CODE_EXECUTABLE?.trim(); if (explicit) return explicit; return (await resolveExecutablePath("claude")) ?? "claude"; } bb/plugins/provider-claude-code/src/bridge/provider-maintenance.ts
Lines 182 to 187 in ab7ad23
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 nameclaude. One host toolchain for executable discovery, child PATH, and proxy/CA defaults #6194 (88048e6) changed it toreturn (await resolveExecutablePath("claude")) ?? "claude", so the Claude bridge now reports a path and the comparison no longer matches. formatCommandsingle-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:bb/packages/provider-bridge-protocol/src/bridge-kit/provider-maintenance-kit.ts
Lines 68 to 79 in ab7ad23
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 updatefor 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 updatesCLI 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 GENERATEDand links the thread or report.
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 18, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,provider-claude-code,confirmed-repro.Label a provider's own updater on Updates when its executable is a pa…