Skip to content

fix: don't show missing provider CLIs as updates in the sidebar badge - #1240

Open
patleeman wants to merge 1 commit into
get-bb:mainfrom
patleeman:fix/sidebar-update-badge-missing-cli
Open

fix: don't show missing provider CLIs as updates in the sidebar badge#1240
patleeman wants to merge 1 commit into
get-bb:mainfrom
patleeman:fix/sidebar-update-badge-missing-cli

Conversation

@patleeman

Copy link
Copy Markdown
Contributor

What's wrong

The small chip in the sidebar footer's bottom-right corner advertised an update available for Claude Code even on machines where Claude Code was never installed. Clicking it just opened the Updates page, where the row actually said "Not installed" with an Install button — there was no update to apply at all. Codex behaved the same way.

Why

The daemon correctly reports needsUpdate: false when a CLI isn't installed — the confusion was purely in the UI. The badge builds its "stale agent" marks from every provider issue the Updates page surfaces, and "X CLI not installed" is one of those issues. So a missing CLI (an install prompt) was rendered as a brand chip labeled "X update available".

The fix

The sidebar badge now only counts provider issues where the CLI is actually installed and stale (needsUpdate or versionUnsupported). Missing CLIs no longer produce an update chip.

Nothing else changes: Settings → Updates still shows the "Not installed" row with its Install action, which is the right place for it. The bb-app/desktop update chip is unaffected.

Tests

Added two cases to SidebarUpdatesBadge.test.tsx:

  • a missing CLI alone renders no badge chips at all
  • a missing CLI alongside a real bb update still shows the bb chip, but no provider chip

Full @bb/app suite passes (325 files, 2453 tests), typecheck clean.

A provider CLI that is not installed produced a machine issue ('X CLI not
installed') that the sidebar badge rendered as a brand chip with the
aria-label 'X update available', even though there is no installed version
to update. Codex was affected the same way as Claude Code.

The badge now only surfaces issues where the CLI is actually installed and
stale (needsUpdate or versionUnsupported). Missing installs remain visible
in Settings → Updates, which already renders the install prompt.
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.

1 participant