Repository navigation
Remove dead sidebar leftovers and low-value app tests - #4372
Merged
Merged
Conversation
Removes dead app copies of sidebar/thread-list code left after the thread-list plugin fork (ThreadArchiveQuickAction, ThreadActionsContextMenu, SidebarRenameProvider, sidebar row state classes, the drop-animation constant, the sidebar lifecycle atom), the unused useSystemProviderUsageLimits hook and query key, getAppCommandMetadata, client-core environment grouping/sort policy/pinned-root ordering, the unused hasThreadListWorkingActivity plugin-status parameter, and the plugin copy of arrangeByStoredOrder, together with the tests that only kept them alive. Constant-restating and tautological tests are deleted; duplicate suites are folded into tables at their owners (bundle budget, command ordering, isRowExpandable, steer rendering, child activity). The theme-preview anatomy anchor now watches the plugin's sidebarRowClasses.ts, which renders the rows. Coverage verification found one lost assertion (a pinned child's unpinned parent must stay out of effectivePinnedThreadIds), restored as a pinnedSidebarThreads keeper, and one retained dependency contract: the terminal must allow xterm's proposed API because the Unicode 11 addon requires it. That guard now constructs a real Terminal with TERMINAL_ALLOW_PROPOSED_API and loads the addon. 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
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-auditskill (#4361).ThreadArchiveQuickActionandThreadActionsContextMenu(the plugin copies ship)SidebarRenameProvider, the app's sidebar row state classes, the drop-animation constant and the sidebar lifecycle atomuseSystemProviderUsageLimitsand its query key (unused since Discover plugin RPC contracts and move usage displays into Provider Usage #3449), andgetAppCommandMetadataeffectivePinnedThreadIdsor pass their own comparator.hasRunningPluginStatusparameter, and the plugin copy ofarrangeByStoredOrderplugins/thread-list/app/rows/sidebarRowClasses.ts, the file that actually renders the rows.isRowExpandable, steer rendering and child activity.effectivePinnedThreadIds;Terminal.Production +59/−706, tests +476/−1618.
How you verified
pnpm exec turbo run test lint typecheckpasses for@bb/app,@bb/client-core,@bb/thread-view,bb-plugin-thread-listandbb-plugin-theme-preview, plus typecheck of every client-core and thread-view dependent.RootComposeMobileRecentsanduseSidebarThreadRevealstill fail on sort or pin mutations.useSidebarRenamewas untested before and after.🤖 Generated with Claude Code