Show agent provider icons in the thread list, with color options - #4089
Open
mistakeknot wants to merge 2 commits into
Open
mistakeknot wants to merge 2 commits into
mistakeknot wants to merge 2 commits into
Conversation
Each thread row now leads its title with its agent provider's mark, so it is clear at a glance whether a thread runs on Claude Code, Codex, or another backend. The row resolves the mark through the SDK's provider directory and `experimental_ProviderIcon`, and draws nothing until the directory knows the provider id. A new `showProviderIcons` preference, default on, controls it from Organize → Rows → Provider icons or `bb thread-list prefs set showProviderIcons false`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Provider icons in the thread list now take their color from, in order: a custom light/dark color for that provider, the theme's `--provider-icon-<id>` then `--provider-icon` variables, and finally the new `providerIconColor` mode, `brand` (each provider's own tint, the default) or `monochrome` (the row text color). Organize → Rows gains Brand colors / Monochrome and a Customize colors… dialog with a light and dark picker per provider, backed by the new `providerIconColors` preference. Colors are validated as CSS colors on write and again before use. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
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 sidebar thread list gives no hint of which agent provider a thread runs on. For someone running threads on several providers (for example, moving a long-lived thread between Claude Code and Codex as quota runs out), the only way to tell is to open each thread. The mobile recents list already draws a provider tile, and the sidebar list had no equivalent. See #4088.
What changed
plugins/thread-list/app/rows/ThreadRow.tsx: aThreadRowProviderIconleads the title. It looks the row'sproviderIdup inexperimental_useProviders()and drawsexperimental_ProviderIcon(providerKind="agent"), labelled and titled with the provider'sdisplayName. It draws nothing until the directory knows the id, or when the preference is off.plugins/thread-list/shared/preferences.ts/app/preferences/atoms.ts: new syncedshowProviderIconspreference (boolean, defaulttrue, no legacy key).plugins/thread-list/app/list/SidebarViewItems.tsx: Organize gains a Rows group with a Provider icons checkbox, beside the existing Groups → By environment item.app/rows/provider-icon-color.tsresolves each icon's color from, in order, a custom per-provider light/dark color (providerIconColors), the theme's--provider-icon-<id>then--provider-iconCSS variables, and theproviderIconColormode,brand(the provider's owniconTint, default) ormonochrome(row text color). Organize → Rows adds Brand colors / Monochrome and a Customize colors… dialog (app/list/ProviderIconColorsDialog.tsx) with light and dark pickers per provider. Colors are validated withisPresentationTintColorin the preference schema and again before use.docs/configuration.md(new "Thread list provider icons" subsection, including color precedence),theming.md(the two theme variables) and the thread-list skill's key list.bb thread-list prefs set showProviderIcons falseworks through the existing generic prefs CLI.How you verified
plugins/thread-list/app/rows/ThreadRow.test.tsxcover a known provider drawing its icon with the provider's label, the preference hiding it, and an unknown provider id drawing nothing.SidebarHeaderControls.test.tsxcovers the Rows → Provider icons toggle writing the preference both ways.provider-icon-color.test.ts,ProviderIconColorsDialog.test.tsxandshared/preferences.test.tscover the color precedence, the dialog's defaults, partial edits and reset, and schema rejection of non-color values.npx vitest runinplugins/thread-list: 29 files, 326 tests passed.tsc --noEmitinplugins/thread-list: clean.Fixes #4088