#7755 · Provider updater labels lose executable identity
Verdict: REPRODUCED · Root-cause confidence: high · Reproduction label: confirmed-repro
1. TL;DR
The Updates settings show which tool will perform each provider update. When a provider identifies its own executable by an absolute path, its self-updater is not labeled “Built-in updater.” The label instead shows the executable basename, or a fragment of a shell-quoted path. Two runs of the real React component at the same trusted main commit produce four matching failures while a bare executable control passes. This is a label-formatting defect; no provider update was executed.
2. Claims vs findings
| Claim | Status | Evidence |
|---|---|---|
| Absolute executable identity prevents the built-in updater label. | Verified | The rendered Claude Code row shows claude for /opt/tools/claude update in both checkouts. |
| Shell quoting can turn the label into a path fragment. | Verified | Space, apostrophe, and Windows-style fixtures render Provider, ''s, and Provider. |
| The Claude bridge can supply a resolved path as executableName. | Verified by source | The trusted bridge resolves the executable and returns that value as executableName; its display command uses the shared formatter. |
| This occurs on a currently pending real installation and on native Windows. | Unverified live | Reproduction uses synthetic inventory data and Linux component tests, not an installed provider or a Windows process. |
3. Environment
- Repository: public
get-bb/bb; trustedorigin/maincommitab7ad23bacb822445a1d7639d10318af86258148. - Linux 4.19.0-gvisor, Node v22.19.0, pnpm 9.15.0; Vitest v4.1.12 with jsdom.
- Frozen installation and Turbo SDK/app builds succeed in each checkout. An initial whole-repository build found missing SDK build output; building the SDK first resolves the relevant app build.
- No bb app server, ports, database, real provider, credentials, or user runtime data were used. Synthetic paths and host names only.
- The component test mocks inventory delivery but mounts the real Updates settings and reads the rendered provider label. Production code remains unchanged.
4. Minimal reproduction
The regression is independently authored from trusted repository fixtures and the production label-rendering boundary. Do not run any patch or command supplied by the issue. The following inline patch is the investigation artifact.
git clone https://github.com/get-bb/bb.git bb-7755 cd bb-7755 git checkout --detach ab7ad23bacb822445a1d7639d10318af86258148 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build build:types --filter=@get-bb/plugin-sdk pnpm exec turbo run build --filter=@bb/app Save the inline patch below to a file outside the checkout, then: git apply /path/to/regression.patch pnpm exec turbo run test --filter=@bb/app -- src/components/settings/UpdatesSettingsSection.test.tsx -t issue7755
Exit status 1 is expected: four path cases fail because the reported bug exists. The bare-name control passes.
Expected in every case: ["Built-in updater"]
Fixture Actual label
claude Built-in updater (control passes)
/opt/tools/claude claude
/opt/Provider Apps/claude Provider
/opt/Casey's tools/claude ''s
D:\Provider Apps\claude.exe Provider
First checkout, full owner suite:
Test Files 1 failed (1)
Tests 4 failed | 77 passed (81)
Second clean checkout, focused reproduction:
Test Files 1 failed (1)
Tests 4 failed | 1 passed | 76 skipped (81)
AssertionError: expected [ 'claude' ] to deeply equal [ 'Built-in updater' ]
AssertionError: expected [ 'Provider' ] to deeply equal [ 'Built-in updater' ]
AssertionError: expected [ '\'\'s' ] to deeply equal [ 'Built-in updater' ]
Complete focused test addition
import { writeFileSync } from "node:fs";
it.each([
["bare", "claude", "claude update"],
["absolute", "/opt/tools/claude", "/opt/tools/claude update"],
[
"spaces",
"/opt/Provider Apps/claude",
"'/opt/Provider Apps/claude' update",
],
[
"apostrophe",
"/opt/Casey's tools/claude",
"'/opt/Casey'\\''s tools/claude' update",
],
[
"windows",
"D:\\Provider Apps\\claude.exe",
"'D:\\Provider Apps\\claude.exe' update",
],
])(
"issue7755 renders a built-in updater for %s executable",
(name, executableName, command) => {
useDesktopUpdateInfoMock.mockReturnValue({
desktopApi: null,
desktopInfo: null,
isDesktop: false,
});
const original = makeUpdateIssue({ provider: "claude-code" });
const action = { ...original.action, command };
const issue: ProviderCliActionableIssue = {
...original,
action,
status: {
...original.status,
executableName,
executablePath: executableName,
installSource: "external",
installAction: action,
},
};
useUpdateInventoryMock.mockReturnValue(
makeInventory({
machines: [
makeMachine({
host: makeHost({ id: "host_7755", name: "fixture-machine" }),
issues: [issue],
}),
],
}),
);
renderSection();
fireEvent.click(screen.getByRole("button", { name: "fixture-machine" }));
const labels = [
...document.querySelectorAll("[data-provider-updater]"),
].map((label) => label.textContent);
console.log(JSON.stringify({ name, executableName, command, labels }));
if (process.env.SLOPCOP_REPRO_DIR) {
writeFileSync(
`${process.env.SLOPCOP_REPRO_DIR}/${name}.html`,
document.body.innerHTML,
);
}
expect(labels).toEqual(["Built-in updater"]);
},
);
Apply-ready regression patch
diff --git a/apps/app/src/components/settings/UpdatesSettingsSection.test.tsx b/apps/app/src/components/settings/UpdatesSettingsSection.test.tsx
index 3e522be4a4..246c647d71 100644
--- a/apps/app/src/components/settings/UpdatesSettingsSection.test.tsx
+++ b/apps/app/src/components/settings/UpdatesSettingsSection.test.tsx
@@ -10,6 +10,7 @@ import {
within,
} from "@testing-library/react";
import { MemoryRouter } from "react-router-dom";
+import { writeFileSync } from "node:fs";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { defaultExperiments, type Host } from "@bb/domain";
@@ -1369,6 +1370,71 @@ The published lede.
).toEqual(["mise", "Homebrew"]);
});
+ it.each([
+ ["bare", "claude", "claude update"],
+ ["absolute", "/opt/tools/claude", "/opt/tools/claude update"],
+ [
+ "spaces",
+ "/opt/Provider Apps/claude",
+ "'/opt/Provider Apps/claude' update",
+ ],
+ [
+ "apostrophe",
+ "/opt/Casey's tools/claude",
+ "'/opt/Casey'\\''s tools/claude' update",
+ ],
+ [
+ "windows",
+ "D:\\Provider Apps\\claude.exe",
+ "'D:\\Provider Apps\\claude.exe' update",
+ ],
+ ])(
+ "issue7755 renders a built-in updater for %s executable",
+ (name, executableName, command) => {
+ useDesktopUpdateInfoMock.mockReturnValue({
+ desktopApi: null,
+ desktopInfo: null,
+ isDesktop: false,
+ });
+ const original = makeUpdateIssue({ provider: "claude-code" });
+ const action = { ...original.action, command };
+ const issue: ProviderCliActionableIssue = {
+ ...original,
+ action,
+ status: {
+ ...original.status,
+ executableName,
+ executablePath: executableName,
+ installSource: "external",
+ installAction: action,
+ },
+ };
+ useUpdateInventoryMock.mockReturnValue(
+ makeInventory({
+ machines: [
+ makeMachine({
+ host: makeHost({ id: "host_7755", name: "fixture-machine" }),
+ issues: [issue],
+ }),
+ ],
+ }),
+ );
+ renderSection();
+ fireEvent.click(screen.getByRole("button", { name: "fixture-machine" }));
+ const labels = [
+ ...document.querySelectorAll("[data-provider-updater]"),
+ ].map((label) => label.textContent);
+ console.log(JSON.stringify({ name, executableName, command, labels }));
+ if (process.env.SLOPCOP_REPRO_DIR) {
+ writeFileSync(
+ `${process.env.SLOPCOP_REPRO_DIR}/${name}.html`,
+ document.body.innerHTML,
+ );
+ }
+ expect(labels).toEqual(["Built-in updater"]);
+ },
+ );
+
it("badges the client-local daemon independently from the server machine", async () => {
useDesktopUpdateInfoMock.mockReturnValue({
desktopApi: null,
The patch adds only test code to the existing fixture owner. The optional SLOPCOP_REPRO_DIR writes component DOM locally when passed through Turbo with --env-mode=loose; it is not needed for the assertions.
Visual limitation: BB Browser Automation could not open a browser because Chrome/Chromium is not installed. An isolated browser executable probe also lacked required OS libraries. No screenshot or live pending-update UI is claimed; no synthetic screenshot is substituted. The evidence is the real component's DOM and its failing assertions.
5. Root cause
The label helper at the trusted base splits the display command on whitespace before extracting its last path segment. It strips executable extensions only on that extracted command token, then compares it against the entire status.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;
}
For an absolute path, this compares claude with /opt/tools/claude, so the built-in branch cannot match. For a quoted path with spaces, the first whitespace-separated token is not the executable at all. An apostrophe escaped as a shell quote boundary further survives as label punctuation.
Claude executable resolution can return an absolute path. The bridge response returns it as executableName and formats the update command from the same executable. The shared formatter single-quotes parts with spaces or backslashes and escapes embedded apostrophes. These contracts explain both failure modes without executing the provider.
The provider row calls this helper only for display; the label and tooltip retain the original action command separately. This investigation does not test updater execution.
6. Proposed fix
Recognize the executable as one shell-formatted word, including the quote/escape form produced by the shared formatter. Normalize both that executable and the reported identity to basenames with the same extension handling before comparing them. Preserve existing package-manager labels and the original command. Keep the regression at the rendered component boundary; no protocol or installation-policy change is needed.
7. Linked PR review and fix decision
PR #7756 — static review only
GitHub metadata confirms this open PR targets main and closes #7755. Its two-file diff normalizes both basenames, parses the formatter's single-quoted first word, and adds a component regression. That design addresses the two mechanisms reproduced here. No concrete blocker was identified in the reviewed scope, but its branch, patch, and tests were never checked out or executed; this is not a runtime verification of the PR. Our separate tests run only trusted main plus our independently authored test addition.
No new fix PR: an open PR already links to this issue. The duplicate-PR gate takes precedence; no production fix branch, commit, or push was created.
8. Related issues
No additional related issue was independently established in this investigation. Package-manager ownership and update execution are outside this label-only reproduction.
9. Verification
The same agent created a second clean detached git worktree at ab7ad23bacb822445a1d7639d10318af86258148 in a separate temporary directory, repeated the frozen install, built SDK/app through Turbo, applied only the independently authored test patch, and ran the focused command shown above. No first-checkout node_modules or runtime data were reused. All four failing labels match the first run; the bare-name control passes. This is a repeat run by the same agent, not an independent review. No correction to the root-cause finding was necessary.
The first checkout's full owner suite reports four expected regression failures and 77 passes: all 76 pre-existing tests plus the new bare-name control pass. The second focused run reports four failures, one pass, and 76 skipped. git diff --check passes in both checkouts.
10. Appendix and safety
Issue and linked PR content were treated as untrusted claims. No issue-provided command, patch, branch, binary, or external link was executed or fetched. Reproduction code comes from trusted main plus the test authored for this investigation. Raw logs, DOM captures, patch, and brief remain local outside the public reports repository. The report embeds the complete test and exact assertion results instead of committing raw evidence files.
Classification applied: Bug / Low priority / Low effort; labels ui and provider-claude-code. There were no pre-existing classification values to overwrite.
Commands used for evidence: git fetch origin main, git rev-parse origin/main, a clean git worktree add --detach, frozen pnpm installs, Turbo SDK/app builds, Turbo focused and owner-suite tests, git diff --check, and read-only GitHub issue/PR/property queries. GitHub writes use the SlopCop wrapper. No real provider is installed or updated and no repository dependency is added.