Skip to content

Label a provider's own updater on Updates when its executable is a path - #7756

Merged
ymichael merged 1 commit into
get-bb:mainfrom
dillonzq:fix/updates-builtin-updater-label
Nov 18, 2026
Merged

ymichael merged 1 commit into
get-bb:mainfrom
dillonzq:fix/updates-builtin-updater-label

Conversation

@dillonzq

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

Settings → Updates names the tool that will run each provider update. providerCliUpdaterName took the first whitespace-separated word of installAction.command, kept its last path segment, and compared it with the whole executableName. When #5170 added the label, the Claude Code bridge reported the bare name claude. Since #6194, claudeExecutable() returns the resolved absolute path, so the comparison claude === "/home/<user>/.local/bin/claude" always failed, and the row showed claude instead of "Built-in updater". Paths that formatCommand single-quotes (every Windows path, and POSIX paths with spaces) broke further: the whitespace split cut the quoted path, and the label became a fragment such as claude.exe' or a user-name segment. Details and a live status capture are in #7755.

What changed

  • apps/app/src/components/settings/UpdatesSettingsSection.tsx: the label code now reads the first shell word of the display command and undoes formatCommand's quoting ('…' segments and the '\'' escape). It then compares that word's basename, without .exe/.cmd/.bat, with the basename of executableName. Unquoted Windows paths keep their backslashes as path separators. Commands for package managers (npm, brew, mise, …) are labeled as before.
  • No wire, daemon, or CLI change: the bb updates CLI does not print an updater name.

How you verified

  • New component test recognizes a provider's own updater when the machine reports its executable by path. It covers a Claude row with a POSIX absolute path and a quoted Windows path that contains a space and an apostrophe. Before the fix it fails with expected [ '\'\'s', 'claude' ] to deeply equal [ 'Built-in updater', …(1) ]; after the fix it passes.
  • pnpm --filter @bb/app exec vitest run src/components/settings/UpdatesSettingsSection.test.tsx: 77/77 passed. The existing mise and Homebrew label test is unchanged.
  • pnpm exec turbo run typecheck lint --filter=@bb/app --force: passed.

Fixes #7755

AGENT GENERATED

🤖 Generated with Claude Code

Settings → Updates compared the bare first word of a provider's update
command with the whole reported executableName. Since #6194 the Claude
Code bridge reports the resolved absolute path, so `claude update` was
labeled `claude` instead of "Built-in updater". Paths that formatCommand
single-quotes (Windows paths, paths with spaces) also lost the quoting
and showed a fragment of the path.

Parse the first shell word of the display command, undoing
formatCommand's single quoting, and compare its basename with the
basename of executableName.

Fixes #7755

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit de4f66b into get-bb:main Nov 18, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants