Repository navigation
Description
Summary
A child thread that lives in a different project than its parent (the row with the FolderExport "In project X" icon) truncates its title early even when the pointer is outside the row and its quick actions are hidden: the row permanently reserves the quick-action width on the right. #5125 fixed exactly this for parent rows (#5530), but #5530 left rows from another project on the old layout, so in a task-coordinator tree (coordinator in Personal, one child per repo project) every child title is cut while the space to its right stays empty.
Versions and environment
- bb 0.50.1, desktop app, macOS 27.2, arm64
- Sidebar: Organize → chronological (custom sections), mouse hover layout,
rowActions= archive + delete - Checked against
mainat fab8266 by source inspection
Steps to reproduce
- Create a parent thread in the Personal project, e.g.
bb thread spawn --project <personal project id> --prompt "Reply only with ok.". - Create a thread in a repo project and make it a child of that parent:
bb thread spawn --project <repo project id> --title "deploy pin follow-ups build" --prompt "Reply only with ok.", thenbb thread update <child id> --parent-thread <parent id>. - Also create a second child in the Personal project with a title of similar length (control).
- Expand the parent in the sidebar and move the pointer outside the rows.
Did not reproduce with: the control child in the parent's own project (step 3) shows its full title at the same indentation.
Expected vs actual
Actual: the cross-project child shows "deploy pin foll…" followed by the FolderExport icon and a large empty area up to the
row's right edge, with and without hover. On hover, archive / delete / "…" appear in that empty area; the title does not
move. The same-project child at the same depth shows its whole title.
Expected: at rest the title uses the row's width, as leaf rows and (since #5530) parent rows do. When quick actions are
revealed they overlay the end of the row with the title masked, and the project icon stays visible and clickable.
Two screenshots from the running app (at rest, and hovering a cross-project child) are attached in a comment below.
Evidence
reserveActionSpaceis true for every row with a cross-project label, independent of action visibility:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 421 to 422 in fab8266
const reserveActionSpace = crossProjectLabel !== null || (isParentRow && hasChildren); - With it, the row gets the permanent
pr-(--bb-sidebar-hover-actions-inset)instead of the hover-dependent inset class:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 543 to 545 in fab8266
(reserveActionSpace ? "pr-(--bb-sidebar-hover-actions-inset) [@media(hover:none)]:pr-0" : SIDEBAR_HOVER_ACTIONS_INSET_CLASS), - The inset grows with the number of quick actions (
7.5 * actionCountspacing), so two actions plus the menu reserve
the most:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Line 199 in fab8266
"--bb-sidebar-hover-actions-inset": `calc(var(--spacing) * ${7.5 * actionCount})`, - For cross-project rows the title container also drops
flex-1and the title getsmin-w-0 truncate, with the icon
rendered right after the title:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 596 to 603 in fab8266
<span className={cn( "pointer-events-none relative flex min-w-0 items-center self-stretch", ((crossProjectLabel === null && (!parentOptions || !hasChildren)) || isEditing) && "flex-1", )}
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 636 to 665 in fab8266
<span className={cn( "bb-thread-title", crossProjectLabel !== null && "min-w-0 truncate", )} title={labelTitle} onDoubleClick={startTitleEditing} > <ThreadTitle threadId={thread.id} /> </span> )} </span> {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> - Let parent thread titles use the hidden quick-action space #5530's description: "Leaf and child rows are unchanged. Rows from another project and archived parents keep their
previous layout."
What you ruled out
- Not Sidebar: parent titles reserve hidden quick-action space and truncate too early #5125: that issue and its fix Let parent thread titles use the hidden quick-action space #5530 cover parent rows; Let parent thread titles use the hidden quick-action space #5530 explicitly kept rows from another project on the old
layout. This is the remaining case. - Not Thread list: show each thread's project name in the Custom organization #4810: that is a feature request for a project-name label in Custom organization; this is the space lost by the
existing cross-project icon row. A fix here should leave room for Thread list: show each thread's project name in the Custom organization #4810's label. - Not indentation: the same-project child at the same depth is not truncated.
- Workaround: fewer
rowActionsshrink the reserved inset; titles can be shortened by hand.
Proposed approach
Apply #5530's mechanism to cross-project rows, with the project icon placed like the disclosure arrow:
- Pin the
FolderExporticon to the row's right edge instead of right after the title, so the title can grow up to it. - Stop reserving the action inset at rest; when actions are revealed they overlay the row end with the title masked,
and open just left of the icon when they would cover it (the same overlap handling Let parent thread titles use the hidden quick-action space #5530 uses for the arrow).
The minimal variant is step 2 alone, keeping the icon after the title.
Suggested priority and effort (optional)
Medium: every child thread in another project than its parent is affected, which is every repo child of a
coordinator thread in the Personal project; workaround is partial. Effort probably Low to Medium, reusing #5530.
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. (Reproduced on the 0.50.1 desktop release;mainchecked by source inspection only.) - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
Found in bb thread thr_86vv33ar4z.
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 20, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,confirmed-repro.git diff --checkpass. The focused layout regression is embedded in the report, not CI-wired.Avoid idle action padding on cross-project child rows (get-bb#7916)