Repository navigation
Label a provider's own updater on Updates when its executable is a path - #7756
Merged
Merged
Conversation
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]>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Settings → Updates names the tool that will run each provider update.
providerCliUpdaterNametook the first whitespace-separated word ofinstallAction.command, kept its last path segment, and compared it with the wholeexecutableName. When #5170 added the label, the Claude Code bridge reported the bare nameclaude. Since #6194,claudeExecutable()returns the resolved absolute path, so the comparisonclaude === "/home/<user>/.local/bin/claude"always failed, and the row showedclaudeinstead of "Built-in updater". Paths thatformatCommandsingle-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 asclaude.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 undoesformatCommand's quoting ('…'segments and the'\''escape). It then compares that word's basename, without.exe/.cmd/.bat, with the basename ofexecutableName. Unquoted Windows paths keep their backslashes as path separators. Commands for package managers (npm,brew,mise, …) are labeled as before.bb updatesCLI does not print an updater name.How you verified
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 withexpected [ '\'\'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 existingmiseandHomebrewlabel test is unchanged.pnpm exec turbo run typecheck lint --filter=@bb/app --force: passed.Fixes #7755
🤖 Generated with Claude Code