Repository navigation
Delete the built-in thread list and show the placeholder while the plugin loads - #4041
Merged
Merged
Conversation
SawyerHood
force-pushed
the
thread-list/4-flip
branch
from
September 22, 2026 01:50
023c1c4 to
bbc7aaa
Compare
SawyerHood
marked this pull request as ready for review
September 22, 2026 01:51
SawyerHood
force-pushed
the
thread-list/4-flip
branch
from
September 22, 2026 01:57
bbc7aaa to
e5133fb
Compare
SawyerHood
force-pushed
the
thread-list/4-flip
branch
3 times, most recently
from
September 22, 2026 02:06
ae9259e to
503eb95
Compare
SawyerHood
force-pushed
the
thread-list/4-flip
branch
from
September 22, 2026 02:34
503eb95 to
903f962
Compare
SawyerHood
force-pushed
the
thread-list/4-flip
branch
from
September 22, 2026 02:36
903f962 to
8ea1dd4
Compare
…ugin loads The sidebar rendered bb's built-in list first and swapped in the plugin list once its bundle arrived, which showed as a flicker on every load. There is no reason to keep two lists: the bundled thread-list plugin is bb's list now. PluginThreadList mounts the resolved plugin directly. With no plugin it shows skeleton rows until plugin frontends have booted, then "No thread list plugin is enabled" with a link to Plugins. A crash shows "stopped working" with a Reload button that resets the crashed slot and remounts. ProjectList and everything only it reached are deleted from apps/app; SidebarPrimaryActions keeps the New thread and Search actions the navigation region still renders. Row and drag modules that other surfaces import stay. The thread list setting offers Automatic and the registered providers; a stored __builtin__ preference is read as Automatic. PluginThreadListProps loses Original and experimental_Original because there is nothing to delegate to, so the SDK moves to 0.5.7 and the guide, audit, and design docs describe the placeholder model. Co-Authored-By: Claude Fable 5.1 <[email protected]>
SawyerHood
force-pushed
the
thread-list/4-flip
branch
from
September 22, 2026 02:44
8ea1dd4 to
bf88fec
Compare
albrand
pushed a commit
to alb-hold/bb
that referenced
this pull request
Sep 22, 2026
Upstream get-bb#4041 deleted the built-in thread list, and with it the fork's sidebar New project button; the plugin that replaced it has no project creation at all, leaving the welcome screen as the only route. Adds experimental_useSidebarProjectActions, binding a plugin's own button to the host quick-create flow, and restores the button on the top-level threads header. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
benwaffle
added a commit
to benwaffle/bb
that referenced
this pull request
Sep 22, 2026
In project organization mode the Personal project's threads rendered twice: once under a "Personal" project section and once under the built-in "Threads" section, which is by construction the Personal project's threads. The built-in thread list that the bundled plugin replaced in get-bb#4041 read only the standard projects, so this appeared when the list moved into the plugin. ProjectModeSections now drops the personal project when it derives its project rows. Project sections, their ids, their groups and the "More" visibility list all come from projectRows, so the "Personal" heading disappears from each, while the threads themselves still reach the "Threads" section through threadsByProject, which keys off thread.projectId rather than the project list. Filtering in the plugin rather than in the host's SDK bridge is deliberate. Dropping personalProject from allProjects in plugin-sidebar-hooks.ts, as looks natural, removes the threads from the sidebar entirely: the plugin buckets the SDK thread array into its projects array and then flattens it back out, so a Personal project with no entry leaves its threads with no bucket. Measured on this fixture, that route yields headings ["App"] and zero Personal rows, not the intended one. PluginSidebarProject.isPersonal is also public SDK surface that third-party sidebar plugins read, so the host array keeps its shape. This is a temporary fork-local patch for upstream get-bb#4093. Drop this commit when upstream fixes that issue; the fix there may well land in a different place, and upstream must also decide whether project mode should show a "Personal" heading at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
benwaffle
added a commit
to benwaffle/bb
that referenced
this pull request
Sep 23, 2026
In project organization mode the Personal project's threads rendered twice: once under a "Personal" project section and once under the built-in "Threads" section, which is by construction the Personal project's threads. The built-in thread list that the bundled plugin replaced in get-bb#4041 read only the standard projects, so this appeared when the list moved into the plugin. ProjectModeSections now drops the personal project when it derives its project rows. Project sections, their ids, their groups and the "More" visibility list all come from projectRows, so the "Personal" heading disappears from each, while the threads themselves still reach the "Threads" section through threadsByProject, which keys off thread.projectId rather than the project list. Filtering in the plugin rather than in the host's SDK bridge is deliberate. Dropping personalProject from allProjects in plugin-sidebar-hooks.ts, as looks natural, removes the threads from the sidebar entirely: the plugin buckets the SDK thread array into its projects array and then flattens it back out, so a Personal project with no entry leaves its threads with no bucket. Measured on this fixture, that route yields headings ["App"] and zero Personal rows, not the intended one. PluginSidebarProject.isPersonal is also public SDK surface that third-party sidebar plugins read, so the host array keeps its shape. This is a temporary fork-local patch for upstream get-bb#4093. Drop this commit when upstream fixes that issue; the fix there may well land in a different place, and upstream must also decide whether project mode should show a "Personal" heading at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
benwaffle
added a commit
to benwaffle/bb
that referenced
this pull request
Sep 24, 2026
In project organization mode the Personal project's threads rendered twice: once under a "Personal" project section and once under the built-in "Threads" section, which is by construction the Personal project's threads. The built-in thread list that the bundled plugin replaced in get-bb#4041 read only the standard projects, so this appeared when the list moved into the plugin. ProjectModeSections now drops the personal project when it derives its project rows. Project sections, their ids, their groups and the "More" visibility list all come from projectRows, so the "Personal" heading disappears from each, while the threads themselves still reach the "Threads" section through threadsByProject, which keys off thread.projectId rather than the project list. Filtering in the plugin rather than in the host's SDK bridge is deliberate. Dropping personalProject from allProjects in plugin-sidebar-hooks.ts, as looks natural, removes the threads from the sidebar entirely: the plugin buckets the SDK thread array into its projects array and then flattens it back out, so a Personal project with no entry leaves its threads with no bucket. Measured on this fixture, that route yields headings ["App"] and zero Personal rows, not the intended one. PluginSidebarProject.isPersonal is also public SDK surface that third-party sidebar plugins read, so the host array keeps its shape. This is a temporary fork-local patch for upstream get-bb#4093. Drop this commit when upstream fixes that issue; the fix there may well land in a different place, and upstream must also decide whether project mode should show a "Personal" heading at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Layer 12 of the thread-list plugin stack, stacked on #4039 (list assembly). This is the flip.
Human comments
What was wrong
The sidebar rendered bb's built-in list first and swapped in the plugin list once its bundle arrived, which showed as a flicker on every load. Keeping two lists had no purpose once the bundled
thread-listplugin reached parity (#4039): the plugin is bb's list now.What changed
apps/app/src/components/sidebar/PluginThreadList.tsxmounts the resolved plugin directly throughPluginSlotMount. With no plugin it rendersThreadListPlaceholder: skeleton rows until the existingusePluginFrontendsSettledhook (lightplugin-frontend-boot-state.ts, no loader import, so the boot payload does not grow) reports the deferred boot done, then "No thread list plugin is enabled" with a link to Plugins. A crash shows " stopped working" with a Reload button that callsresetCrashedPluginSlotsand remounts, plus one toast.AppSidebar.tsxno longer builds a built-in list and drops the unused quick-create controller.ProjectListand everything only it reached are deleted fromapps/app(about 12,900 lines including tests and stories).SidebarPrimaryActions.tsxkeeps the New thread and Search actions the navigation region still renders;SectionSidebartakes its button class fromsidebarRowClasses. Row and drag modules that other surfaces import (mobile recents, section move provider, settings) stay.ReplacementProviderSettingonly adds the built-in option when a description is passed. A stored__builtin__value forsidebar.threadListProvideris read as Automatic (threadListProvider.ts); the preference description in@bb/domainanddocs/configuration.mdsay so.PluginThreadListPropslosesOriginalandexperimental_Original(nothing to delegate to). Plugin SDK 0.5.7. The guide (frontend-registration.md),docs/api_to_audit.md,docs/plugin-sidebar-thread-list.md, the API map summary, the docs-parity prop list, the plugin's own test fixture, and thereplacement-lab-betaexample are updated.plans/thread-list-plugin.md.No wire changes.
How you verified
PluginThreadList.test.tsx: loading placeholder until boot settles then missing state; plugin receives the host props and noOriginal; crash shows the crashed placeholder and toast, and Reload remounts a recovered list.SidebarThreadListSetting.test.tsx: no built-in menu item; pinning a plugin stores its key.pnpm exec turbo run typecheck --filter=@bb/app --filter=bb-plugin-thread-list --filter=@get-bb/plugin-sdk --filter=@bb/domain --filter=bb-plugin-replacement-lab-betaapps/app: sidebar, settings, layout, plugin, views, and plugin-* lib suites: 154 files, 1501 tests pass.@get-bb/plugin-sdk(346),@bb/plugin-api-map(82),bb-plugin-thread-list(297), server plugin docs-parity and builtin-plugin tests (57) pass.pnpm buildpluscheck-bundle-budget.mjs: boot payload within budget (numbers below).🤖 Generated with Claude Code