Skip to content

Sidebar: rows from another project still reserve hidden quick-action space and truncate early #7912

Closed

Description

@kamartem

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 main at fab8266 by source inspection

Steps to reproduce

  1. Create a parent thread in the Personal project, e.g. bb thread spawn --project <personal project id> --prompt "Reply only with ok.".
  2. 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.", then bb thread update <child id> --parent-thread <parent id>.
  3. Also create a second child in the Personal project with a title of similar length (control).
  4. 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

  • reserveActionSpace is true for every row with a cross-project label, independent of action visibility:
    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:
    (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 * actionCount spacing), so two actions plus the menu reserve
    the most:
    "--bb-sidebar-hover-actions-inset": `calc(var(--spacing) * ${7.5 * actionCount})`,
  • For cross-project rows the title container also drops flex-1 and the title gets min-w-0 truncate, with the icon
    rendered right after the title:
    <span
    className={cn(
    "pointer-events-none relative flex min-w-0 items-center self-stretch",
    ((crossProjectLabel === null &&
    (!parentOptions || !hasChildren)) ||
    isEditing) &&
    "flex-1",
    )}

    <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

Proposed approach

Apply #5530's mechanism to cross-project rows, with the project icon placed like the disclosure arrow:

  1. Pin the FolderExport icon to the row's right edge instead of right after the title, so the title can grow up to it.
  2. 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; main checked by source inspection only.)
  • 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.

Found in bb thread thr_86vv33ar4z.

AGENT GENERATED

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Low; labels: ui, confirmed-repro.
    • Verdict: REPRODUCED in two clean trusted-source checkouts; high root-cause confidence.
    • Root cause: a cross-project label selects permanent quick-action padding even when the action overlay is invisible (60px with two quick actions).
    • Reproduction and root-cause report includes screenshots and the focused browser regression: fails before the fix, passes after it. This is component/CSS verification with synthetic SDK boundaries, not a full macOS app run.
    • Fix: PR #7916, ready and unmerged; one file, 3 changed text lines. It reuses the hover-dependent inset and preserves parent disclosure and project-marker hit testing.
    • Verification: 455 existing tests, lint, typecheck, formatting, and git diff --check pass. The focused layout regression is embedded in the report, not CI-wired.
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