Repository navigation
Description
The workflow
I work across several projects and keep the sidebar in Organize → Custom so recently active threads float to the top regardless of project. Thread titles alone ("Fix flaky test", "Update deps") do not say which repository a row belongs to, so I either hover and guess from the title, open the wrong thread, or switch back to By project and lose the cross-project chronology.
What happens today
A row only carries project information when it sits under a different project's section. ThreadTreeNodeRow computes crossProjectId as "this thread's project differs from the containing project":
bb/plugins/thread-list/app/list/ProjectRow.tsx
Lines 1650 to 1651 in 129f621
| const rowProjectId = node.thread.projectId; | |
| const crossProjectId = rowProjectId !== projectId ? rowProjectId : null; |
ThreadRow then draws a FolderExport icon with an "In project X" tooltip:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 352 to 357 in 129f621
| const crossProjectName = useSidebarProjectName(crossProjectId); | |
| const crossProjectLabel = | |
| crossProjectId === null | |
| ? null | |
| : crossProjectName | |
| ? `In project ${crossProjectName}` |
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 612 to 630 in 129f621
| {crossProjectLabel !== null ? ( | |
| <Tooltip> | |
| <TooltipTrigger asChild> | |
| <span | |
| data-sidebar-thread-cross-project="" | |
| role="img" | |
| aria-label={crossProjectLabel} | |
| className="relative z-[31] flex size-5 shrink-0 items-center justify-center text-muted-foreground" | |
| onClick={(event) => { | |
| event.preventDefault(); | |
| event.stopPropagation(); | |
| rowLinkRef.current?.click(); | |
| }} | |
| > | |
| <Icon name="FolderExport" className="size-3.5" aria-hidden /> | |
| </span> | |
| </TooltipTrigger> | |
| <TooltipContent side="top">{crossProjectLabel}</TooltipContent> | |
| </Tooltip> |
In Custom mode the containing project is the thread's own project, so crossProjectId is null and no project indicator is shown at all. The project name is not visible without hovering or opening the thread.
Checked against origin/main today: ThreadRow still only has the cross-project icon path; there is no project label for chronological rows. Open and closed issues searched for "project name sidebar", "project label", "project badge", "chronological project": no existing request. #1811 (nested projects) and #1614 (project section ordering) concern By project mode, not labelling rows in Custom.
What I would expect
- In Custom mode, every thread row shows a small project-name label after the title (truncated, with a
Project: <name>title attribute). Personal-project threads show the personal project's name. - The label appears in the Threads section, custom sections, and Pinned (including pinned environment/worktree groups and nested children) while in Custom mode.
- By project and By machine are unchanged: the containing section already names the project, and the existing cross-project icon keeps covering the moved-thread case.
- The row link's accessible name includes the project:
Open <title> in <project>. - No new preference; the label follows the organization mode.
Prototype
Fork branch, based on desktop-v0.45.0 (129f6217): desktop-v0.45.0...hxy91819:bb:feature/thread-project-label
3 commits, 7 files, +82/−4. Implementation:
plugins/thread-list/app/rows/ThreadRow.tsx: newshowProjectNameprop; resolves the name with the existinguseSidebarProjectNameand renders a[data-sidebar-thread-project-name]chip plus the extended link label.plugins/thread-list/app/list/ProjectRow.tsx,PinnedThreadTree.tsx,ProjectList.tsx: thread the flag down fromorganizationMode === "chronological";ProjectThreadTree(By project) passesfalse.- Tests:
ThreadRow.test.tsxasserts the chip text and the link name;app.test.tsxandProjectRow.interactions.test.tsxare updated for the new prop.
CONTRIBUTING.md asks for an issue before a PR for UI changes, so I am opening this first. I will open the PR once the proposal has sign-off and I am approved as a contributor.
AGENT GENERATED
Activity
Record upstream issues get-bb#4807-get-bb#4810 and the get-bb#3182 pr…
bb-slop-cop commentedon Oct 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classifications:
uiThis adds project identification to an existing sidebar view rather than correcting unexpected behavior. Alternative organization modes provide a workaround; supporting all row variants requires coordination across several UI components. No existing classifications were replaced.
No reproduction report or pull request: the verified Type is Feature, so this rule skips bug reproduction and fixes.
Record upstream issues get-bb#4807-get-bb#4810 and the get-bb#3182 pr…