Skip to content

Sidebar: parent thread rows permanently reserve hidden quick-action space and truncate titles much earlier than leaf rows #8053

Description

@ryanbbrown

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 main at 6e784b6363297369d03bf31bffe08b00aa37b124 by source inspection (not live-run on 0.50.1 / main)

Steps to reproduce

  1. 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."
  2. Spawn a child thread under the first thread:
    bb thread spawn --project <project-id> --parent-thread "$P" --title "Child" --prompt "Reply only with ok."
  3. Collapse the parent thread (or leave it expanded) and move the pointer outside the sidebar rows so hover actions are hidden.
  4. 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:

  • reserveActionSpace is permanently true for every parent row with children:
    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-inset class to permanent right padding (pr-(--bb-sidebar-hover-actions-inset)):
    !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):
    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 with gap-1.5 (6 px), consuming another 26 px even when expanded and invisible at rest (revealOnHover={!isParentCollapsed}):
    {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}

    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

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 on main at 6e784b6363297369d03bf31bffe08b00aa37b124 by source inspection.)
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

Investigated in bb thread thr_rc579ua3j3.

AGENT GENERATED

Activity

  1. added theissue type on Nov 23, 2026
  2. added
    ui
    confirmed-repro
    on Nov 23, 2026
  3. bb-slop-cop commented on Nov 23, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions