Repository navigation
Ship bb's sidebar navigation as a bundled Navigation plugin - #4117
Merged
SawyerHood merged 1 commit intoSep 22, 2026
Merged
SawyerHood merged 1 commit into
SawyerHood merged 1 commit into
Conversation
Port bb's navigation rows onto the public navigation API as the bundled navigation plugin: New thread, Search, Plugins, Skills, and plugin panel rows in saved order, drag reorder of plugin rows, hover and context menus (Open in split, View details, Hide, Disable, Customize), the More menu for hidden rows, split mini-maps, panel accessories, shortcut labels, and the divider below the rows. Everything goes through experimental_useSidebarNavigation, so the plugin uses no host internals. The plugin is registered disabled by default, so bb's own navigation stays the default until the host switches over. Add isShortcutModifierHeld to the navigation state so plugin rows can reveal item shortcuts when bb's rows do. Plugin SDK 0.5.13. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood
marked this pull request as ready for review
September 22, 2026 23:02
3 tasks done
SawyerHood
added a commit
that referenced
this pull request
Sep 25, 2026
## Human comments ## What was wrong When the sidebar moved into the thread-list and navigation plugins (#4036, #4041, #4117, #4140), the old app and client-core copies stayed behind. Nothing in the shipped app renders or calls them, but their tests kept them compiling and passing. The shipped plugin copies have their own tests. A few other app tests could not fail: they restated constants or asserted a flag inside a block that only runs when the flag has that value. Others were near-duplicates of a stronger test. ## What changed Found by a read-only test audit using the repo `test-audit` skill (#4361). - Deletes dead code that nothing in the shipped app calls, and the tests that only exercised it: - `ThreadArchiveQuickAction` and `ThreadActionsContextMenu` (the plugin copies ship) - `SidebarRenameProvider`, the app's sidebar row state classes, the drop-animation constant and the sidebar lifecycle atom - `useSystemProviderUsageLimits` and its query key (unused since #3449), and `getAppCommandMetadata` - client-core's environment grouping, sort policy and pinned-root ordering. The only live callers read `effectivePinnedThreadIds` or pass their own comparator. - the unused `hasRunningPluginStatus` parameter, and the plugin copy of `arrangeByStoredOrder` - The theme-preview anatomy anchor now points at `plugins/thread-list/app/rows/sidebarRowClasses.ts`, the file that actually renders the rows. - Folds duplicate suites into table tests at their owners: bundle budget, command ordering, `isRowExpandable`, steer rendering and child activity. - Deletes tests that restate constants or cannot fail. - Adds two tests after coverage verification: - an unpinned parent stays out of `effectivePinnedThreadIds`; - the terminal enables xterm's proposed API, which the Unicode 11 addon requires. This builds a real `Terminal`. Production +59/−706, tests +476/−1618. ## How you verified - `pnpm exec turbo run test lint typecheck` passes for `@bb/app`, `@bb/client-core`, `@bb/thread-view`, `bb-plugin-thread-list` and `bb-plugin-theme-preview`, plus typecheck of every client-core and thread-view dependent. - An independent verifier used before and after worktrees on 175d5ac and 55 mutations. For each of the 75 removed or merged tests, it wrote the bug that test catches as a production change and checked that the old test fails and a remaining test also fails. - Result: 64 OK, 10 with no unique failure mode, 1 lost. The lost assertion is restored above. - The live callers `RootComposeMobileRecents` and `useSidebarThreadReveal` still fail on sort or pin mutations. - Known gap, not caused by this change: the rename-cancel effect in `useSidebarRename` was untested before and after. > 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
bb's navigation rows were host code beside the replacement slot. So bb's own navigation couldn't prove the public API was sufficient, and there were two implementations of the same rows.
What changed
Builds on the previous layer: "Add an experimental sidebar header slot".
plugins/navigation(Navigation) ports bb's rows ontoexperimental_useSidebarNavigation:@get-bb/plugin-sdk/appand bundled workspace UI packages, and ships a few sidebar UI helpers, as the thread-list plugin does.isShortcutModifierHeldon the navigation state lets plugin rows reveal shortcuts when bb's rows do.How you verified
plugins/navigation/app.test.tsxcovers:builtin-plugins.test.tsand the API map tests pass.🤖 Generated with Claude Code