Repository navigation
Description
Summary
In the sidebar thread list, any thread that has child threads (subagents) truncates its title much earlier than an adjacent thread without children, leaving a wide empty gap between the expand/collapse chevron and the trailing status spinner at rest. With default settings (one quick action), a parent row loses 56 px of title width compared to a leaf row (26 px for the inline chevron plus 30 px of permanent right padding for hidden hover actions), and up to 116 px with three quick actions configured.
Parent titles should use the available row width at rest instead of permanently reserving space for hidden hover buttons.
Versions and environment
- bb 0.48.1 (npm global install
[email protected]), Node v24.22.1 - Host OS: Ubuntu Linux (GCP VM
x86_64), viewed in browser via bb Connect - Sidebar preferences:
organizationMode: "chronological",showProviderIcons: true,showRowMetadata: false,rowActions: ["bb--core/archive"](default, 1 quick action) - Verified that the exact same code path is still present on
mainat6e784b6363297369d03bf31bffe08b00aa37b124by source inspection (not live-run on 0.50.1 /main)
Steps to reproduce
- Spawn two threads with medium-length titles in the same project:
P=$(bb thread spawn --json --project <project-id> --title "drop people from team settings" --prompt "Reply only with ok." | jq -r .id) bb thread spawn --project <project-id> --title "Approvals (handoff)" --prompt "Reply only with ok."
- Spawn a child thread under the first thread:
bb thread spawn --project <project-id> --parent-thread "$P" --title "Child" --prompt "Reply only with ok."
- Collapse the parent thread (or leave it expanded) and move the pointer outside the sidebar rows so hover actions are hidden.
- Compare the truncation point of the parent row with the leaf row right above it.
Did not reproduce with: leaf rows (threads without children) at the same sidebar width and indentation.
Expected vs actual
Actual: The parent row truncates to "drop peopl…" followed by ">" and a wide blank gap (30 px with 1 quick action, 60 px with 2, 90 px with 3) before the trailing status spinner, while the pointer is not hovering the row. On the leaf row directly above it, "Approvals (handoff)" extends all the way to the spinner without truncating. Even when the parent is expanded and the chevron is hidden at rest, both the 26 px chevron slot and the 30–90 px action padding stay reserved.
Expected: At rest, a parent thread's title uses the available horizontal space rather than leaving a 30–90 px blank gap for hidden hover actions (and ideally matches leaf-row title width as closely as possible without moving the right-edge quick actions on hover).
Evidence
In both installed [email protected] (server/dist/builtin-plugins/thread-list/dist/app.js) and main at 6e784b6363297369d03bf31bffe08b00aa37b124:
reserveActionSpaceis permanentlytruefor every parent row with children:
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 416 to 421 in 6e784b6
const parentOptions = options.kind === "parent" ? options : null; const isParentRow = parentOptions !== null; const isParentCollapsed = parentOptions?.isCollapsed ?? false; const childCount = parentOptions?.childCount ?? 0; const hasChildren = childCount > 0; const reserveActionSpace = isParentRow && hasChildren; - That switches the row's content span from the hover-only
.bb-sidebar-hover-actions-insetclass to permanent right padding (pr-(--bb-sidebar-hover-actions-inset)):
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 539 to 546 in 6e784b6
!shortcut && !isEditing && !isCustomizingActions && (reserveActionSpace ? "pr-(--bb-sidebar-hover-actions-inset) [@media(hover:none)]:pr-0" : SIDEBAR_HOVER_ACTIONS_INSET_CLASS), )} style={getHoverActionsInsetStyle(quickActions.length)} - The inset is
calc(var(--spacing) * 7.5 * actionCount)(30 px per quick action at Tailwind's 4 px--spacing, so 30 px / 60 px / 90 px for 1 / 2 / 3 actions):
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 197 to 201 in 6e784b6
function getHoverActionsInsetStyle(actionCount: number): CSSProperties { return { "--bb-sidebar-hover-actions-inset": `calc(var(--spacing) * ${7.5 * actionCount})`, } as CSSProperties; } - In addition,
SidebarChildToggleChevron(size-5= 20 px) sits inline after the title withgap-1.5(6 px), consuming another 26 px even when expanded and invisible at rest (revealOnHover={!isParentCollapsed}):
bb/plugins/thread-list/app/rows/ThreadRow.tsx
Lines 667 to 677 in 6e784b6
{parentOptions && hasChildren ? ( <SidebarChildToggleChevron disabled={isEditing} className={isEditing ? "hidden" : undefined} isCollapsed={isParentCollapsed} expandLabel={`Expand ${labelTitle} threads`} collapseLabel={`Collapse ${labelTitle} threads`} onToggle={() => parentOptions.onToggleCollapsed(thread.id)} revealOnHover={!isParentCollapsed} /> ) : null}
bb/plugins/thread-list/app/rows/SidebarChildToggleChevron.tsx
Lines 43 to 52 in 6e784b6
event.preventDefault(); event.stopPropagation(); onToggle(); }} className={cn( revealOnHover ? SIDEBAR_HOVER_ACTIONS_CLASS : "pointer-events-auto", "relative z-10 inline-flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md outline-none ring-sidebar-ring focus-visible:ring-2", COARSE_POINTER_CHILD_TOGGLE_HIT_AREA_CLASS, SIDEBAR_CONTROL_STATE_CLASS, LIST_HOVER_TRANSITION,
What you ruled out
- Not already fixed by Sidebar: parent titles reserve hidden quick-action space and truncate too early #5125 / Let parent thread titles use the hidden quick-action space #5530: Sidebar: parent titles reserve hidden quick-action space and truncate too early #5125 reported this exact bug and Let parent thread titles use the hidden quick-action space #5530 fixed it, but Restore sidebar quick-action order on parent threads #6088 reverted Let parent thread titles use the hidden quick-action space #5530 to fix Archive button alignment (Sidebar: Archive moves and sits 2 px from the expand chevron on rows with sub-threads #5909), intentionally re-introducing permanent
reserveActionSpaceon parent rows. No open issue currently tracks the restored truncation. - Not fixed by Sidebar: rows from another project still reserve hidden quick-action space and truncate early #7912 / Avoid idle action padding on cross-project child rows #7916: Avoid idle action padding on cross-project child rows #7916 removed permanent
reserveActionSpacefor cross-project leaf rows only, explicitly leavingisParentRow && hasChildrenpermanently padded. - Prior design exploration exists in closed PR Lead parent thread rows with their disclosure and count their sub-threads #5910 (auto-closed as stale), which moved the disclosure chevron to the left edge (provider icon slot on hover) so parent rows neither reserve hidden right-side action space nor shift Archive/menu buttons on hover.
- Still happens on
mainat6e784b6363297369d03bf31bffe08b00aa37b124(by source inspection). - Not caused by indentation or cross-project labels: both rows in the comparison are top-level rows in the same project.
Suggested priority and effort (optional)
Medium — hits every user who spawns subagents / child threads, especially on narrower sidebars or with 2–3 configured rowActions; partial workaround is removing rowActions to shrink the reserved padding. Effort Medium (needs a layout that avoids both #5909's shifting Archive button and #5125's permanent right padding, such as #5910's leading disclosure).
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. (Observed live on[email protected]; verified unchanged onmainat6e784b6363297369d03bf31bffe08b00aa37b124by source inspection.) - 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.
Investigated in bb thread thr_rc579ua3j3.
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 23, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Medium · Effort: Medium · Area:
ui.Reproduction and root-cause report: REPRODUCED, high confidence. Label:
confirmed-repro.Two clean trusted-main checkouts produce identical source-component browser measurements. The rest-state padding regression fails for all six parent cases with 1–3 actions; existing row tests pass. The report includes screenshots, inline reproduction code, and harness limitations.
Root cause: parent rows apply permanent 30–90 px quick-action padding instead of the hover-only inset, while the inline disclosure and gap retain another 26 px even when invisible.
No PR: removing the padding moves the disclosure hit target by 30–90 px on hover; choosing disclosure placement or accepting that movement requires a layout decision outside the simple-fix gate.