Thread Badges

matthewdiasMore pluginsNot reviewed by BB
Get it for macOS

Shows pull-request state, CI attention, listening ports and badges other plugins publish, like Follow Up's progress, on sidebar rows, so you see what needs you without opening a thread.


A sidebar row tells you a thread exists. It does not tell you that its pull request has failing checks, that someone requested changes, that three follow-ups on it are still open, or that its worktree is serving a dev server on :5173. These badges do, without opening anything.

What you get

Three built-in badge types, plus any badge another plugin publishes, each independently switchable and drawn on whichever sidebar you use. A row draws at most two by default, since a 260px row runs out of space before the badges run out of things to say. You choose how many a row may draw and which types win the slots when more than that have something to show.

Pull requests. A glyph coloured by state — green for open, grey for draft, purple for merged, red for closed. Hovering names the number, state, attention, and title. You can show the number beside the glyph, or hide merged and closed pull requests.

Pull request checks. A separate glyph for whether the pull request wants something from you: checks running, checks failed, merge conflicts, changes requested, merge blocked, or review requested. You can also show a tick when it is ready to merge, or narrow the badge to problems only, so it speaks solely when someone has to fix something.

Ports. A plug on threads whose worktree is serving something — green when it is the app you are developing, hovering to name it ("vite :5173 · 2 others"). By default it ignores backing services and the ephemeral loopback ports agent processes open, which would otherwise light up on every thread and say nothing. This is the one built-in badge that ships off: it sorts last, and at the default cap of two it would draw nothing, so turning it on means also raising the cap or lowering its priority.

Badges from other plugins. Any plugin can publish a small value about a thread, called a complication, and it appears in this plugin's settings with a preview, off until you turn it on. A fraction draws as a ring, anything else as the plugin's own icon in its tone, with its text beside it if you like. Values arrive live, the moment the other plugin knows. Follow Up 0.7 publishes its progress ring this way: how much of a thread's follow-up list is closed, green once it is clear.

How it works

No sidebar offers a slot for a badge, and this plugin does not ask one to. Every sidebar publishes a thread id on its rows, so the plugin hangs a mount point off each row and portals into it. Rows stay entirely the sidebar's business. If a sidebar stops publishing that attribute the badges disappear and nothing else changes.

Pull request data comes from BB itself, which owns the lookup, the polling, and the staleness. Both pull-request badges observe one query per environment, so running them together costs no extra git-host requests. A thread with no branch, no environment, or a git-host hiccup shows nothing at all.

Another plugin adds a badge by publishing a complication, with no change here. A built-in type takes two edits and no changes to the host: an entry in the catalog, and a component that renders nothing when it has nothing to say.

Requirements

The pull-request badges need a thread whose environment has a branch with a pull request on a git host BB can reach.

BB 0.45 or later. The ports plug reads Worktree Ports, and a complication needs the plugin that publishes it; the follow-ups ring needs Follow Up 0.7 or later. Without one installed, that badge does not draw and the others are unaffected. Nothing here scans for a port itself — Worktree Ports already does the hard part, and its snapshot already says which threads a worktree carries.

More from matthewdias

More in More plugins 64

View all