Repository navigation
Show one line per machine on the Updates page - #5170
Merged
SawyerHood merged 1 commit intoOct 8, 2026
Merged
SawyerHood merged 1 commit into
SawyerHood merged 1 commit into
Conversation
The Updates page listed every provider CLI on every machine as its own row, so four machines took seventeen rows and most of them had nothing to act on. The page is now two cards. The first holds a Server row, plus a Desktop row while the desktop app has its own update. The second lists only the machines that need attention, one line each, with a pile of the provider CLIs that are behind. Expanding a machine shows each installed CLI, its versions and the updater bb will run, with a button to update that machine. Update all covers every actionable CLI and gives way to a progress count while the queue drains. Machines with nothing to update fold into a footer line that can be expanded. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
marked this pull request as ready for review
October 8, 2026 02:20
SawyerHood
deleted the
bb/reduce-the-number-of-rows-on-the-updates-page-thr_4xe9gjz2qh
branch
October 8, 2026 02:25
ymichael
pushed a commit
that referenced
this pull request
Nov 18, 2026
…th (#7756) ## 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](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
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
The Updates page rendered one section per machine and one row per installed provider CLI inside it, whether or not that CLI had an update. A fleet of four machines took seventeen rows, most with nothing to act on, and the bb app, daemon and provider rows were mixed together under each machine heading.
What changed
All changes are in
apps/app(UpdatesSettingsSection.tsx, its tests and stories, and the settings story fixture). No server, daemon, CLI or SDK surface changes.Serverrow, plus aDesktoprow only while the desktop app has an update, is downloading one, or its release check failed. When the desktop app runs the server itself the single row is labelledDesktop. The bb logo sits beside the label, so the rows no longer say "bb app", "bb server" or "bb desktop".Provider CLIscard lists only machines that need attention: a provider update, a daemon update in progress or stalled, a daemon newer than the server, or a failed CLI check. Each line shows the machine name and a pile of the provider CLIs that are behind. A CLI bb cannot update gets a dashed avatar and the line says how many are manual.Update <machine>button. Failed CLIs keep their own retry and log there.Behavior that went away: per-CLI update buttons (updates are per machine or all), and the row links to machine and provider settings.
Related to #3166: the expanded row is where a detected package manager would surface, but this PR does not change how updaters are detected.
How you verified
pnpm exec vitest run src/components/settings/UpdatesSettingsSection.test.tsxinapps/app: 47 tests pass. The tests for the old per-row layout were rewritten for the new one, and new tests cover the updater name, the footer toggle, and the progress count across a batch.SidebarUpdatesBadge.test.tsx,src/components/provider-cliandsrc/views/SettingsView: 91 tests in 8 files pass.pnpm exec turbo run lint typecheck --filter='...[origin/main]': passes.pnpm devfrom this branch and opened Settings → Updates. With the real single-machine data it showed the quiet state. To exercise a fleet, the hosts, provider CLI status, version and app-update responses were stubbed in the browser for six machines; collapsed, expanded, Show all, light and dark themes all rendered as intended.🤖 Generated with Claude Code