Repository navigation
Conversation
bb thread count excludes archived threads while bb thread list included them, so the two disagreed (41 counted vs 4,113 listed in one project). The CLI now sends archived=false unless --archived, the new --include-archived, or explicit --thread IDs are given. The route default is unchanged because SDK callers such as storage-retention rely on it. Fold the duplicate project-list filter builder into buildListThreadsFilters. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/exclude-archived-threads-from-bb-thread-list-by-thr_sipei3j4m9
branch
November 3, 2026 00:39
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 thread listsent noarchivedfilter, so the route (which defaults to all threads for SDK callers such as storage-retention) returned archived threads too, whilebb thread countexcludes them. In this repo's project the two disagreed: 41 counted, 4,113 listed.What changed
apps/cli/src/commands/thread/list.ts: sendsarchived=falseunless--archived, the new--include-archived, or explicit--threadIDs are given.--threadlookups keep returning archived threads, as the flag's help promises.--archivedwith--include-archivedis rejected. The route default is unchanged.packages/db/src/data/threads.ts: deletesbuildListThreadsForProjectsFilters, an exact duplicate of part ofbuildListThreadsFilters; the projects listing now uses the main builder plus its project filter.bb-guide-thread-inspection.md: documents--include-archivedand the default.No SDK or host-daemon protocol changes.
How you verified
--archived,--include-archived,--thread+--archived) and the flag conflict; 10 of 16 thread-list tests fail with the oldlist.ts.pnpm exec turbo run test typecheck --filter=@bb/cli --filter=@bb/db --filter=@bb/templatespasses; server project/startup/skeleton route tests pass.thread count41;thread list41 (was 4,113);--include-archived4,113;--archived4,072;--thread <archived id>still returns it.