Skip to content

Sidebar: Archive moves and sits 2 px from the expand chevron on rows with sub-threads #5909

Description

@alexandre-vl

The workflow

My threads spawn sub-agents, so many sidebar rows have sub-threads. Many times a day I hover a row to expand it, or to archive a finished one, without slowing down to aim.

What happens today

Seen on bb 0.46.1, measured on main at e2f4b9d: a parent row keeps its expand chevron right after the title, under the hover actions. When the two collide, useDisclosureActionsClearance slides the actions so the chevron fits between Archive and "…" (L902-L919). So from one row to the next:

  1. Archive moves. It sits 30 or 58 px from the right edge, before or after the chevron, depending on the title length.
  2. Archive is 2 px from the chevron. Aim for one and you get the other: a confirmation dialog by default, or, with confirmations off, the thread and all its sub-threads archived.
  3. No count. A collapsed parent doesn't say how many sub-agents it holds.
  4. Whose spinner? A collapsed parent shows its sub-threads' work with the same glyph as its own (L542-L572). "Triage open bug reports" below is idle, yet spins.
Today (main)Proposal (prototype)

Measured with Playwright in a Ladle story with neutral data (in the branch), against main's ThreadRow and the proposal's, each row hovered in turn:

Sidebar Archive from the right edge, today → proposal Chevron to Archive, today → proposal
220 px 30 px on leaves, 58 px on parents → 30 px everywhere 2 px → 118 px
288 px 30 or 58 px, order flips → 30 px everywhere 2–26 px → 186 px
360 px 30 px → 30 px 16–98 px, follows the title → 258 px

To reproduce:

P=$(bb thread spawn --json --project <project-id> --title "Triage open bug reports" --prompt "Reply only with ok." | jq -r .id)
Q=$(bb thread spawn --json --project <project-id> --title "Migrate billing to Stripe webhooks and retries" --prompt "Reply only with ok." | jq -r .id)
bb thread spawn --project <project-id> --parent-thread "$P" --title "Child" --prompt "Reply only with ok."
bb thread spawn --project <project-id> --parent-thread "$Q" --title "Child" --prompt "Reply only with ok."

Then hover a thread without sub-threads, then each parent, and compare where Archive and the chevron land.

What you would expect

Two edges, two jobs. PR: #5910.

  • Left edge: disclose. A parent's provider icon turns into the chevron on hover and keyboard focus, and is a chevron on touch screens. With provider icons off, the chevron hangs in the left margin, so titles stay aligned with leaves. Leaf rows don't change.
  • Right edge: one slot. Status at rest; Archive and "…" on hover, where a leaf row has them today. The chevron is now 118–258 px away.
  • A count after the title. 4 sub-threads, or ⟳ 2/4 while 2 of them work. The glyph keeps the kind of work (runtime, workflow, plan mode, goal). Screen readers get it from the toggle's description: "3 threads, 2 working, Claude Code".
  • The status glyph is the row's own. Hidden sub-threads still raise attention on it (needs input, draft); their work moves to the count.
Provider icons off, and nested parents
Today Proposal

Context and alternatives

This is the third pass on this corner of the row. #3821 kept the chevron still so Archive would stop landing under it; #5125 stopped hidden actions from eating title space. The collision measurement that satisfies both is what moves Archive now. The proposal satisfies both without measuring: nothing moves on hover, and parents truncate exactly like leaves.

What other sidebars do. Disclosure leads, or hugs the label; the trailing edge is one hover slot, and disclosure never shares it with a destructive action:

Product Disclosure Trailing edge Source
Open WebUI folder icon turns into the chevron on hover "…" RecursiveFolder.svelte
Apple Mail, HIG chevron on the leading edge, in a margin outside the icon column unread count HIG, Mail
VS Code trees 16 px twistie, leading inline actions; counts stay at the far right tree.css, scm.css
Fluent 2 Tree chevron, leading quick actions replace the badges useTreeItemLayout.tsx, guidelines
Primer TreeView toggle column, leading trailing action TreeView.module.css
Zed threads chevron follows the label (headers) one slot: rename and Archive (Stop while running) sidebar.rs
Conductor 0.44 none the diff stat turns into Archive changelog
Linear chevron right after the label muted count docs

Exceptions: shadcn's sidebar-08 and Primer NavList put the chevron at the right edge, as the row's only trailing control (nav-main.tsx, NavList.tsx).

Tried and dropped:

  • Pin Archive to one side of the chevron: the order holds, but Archive still moves with the title, 2 px from the chevron.
  • Reserve fixed columns for the chevron and the actions on every row: stable, but leaves get empty gaps and every title loses about 30 px.
  • A chevron column on every row (VS Code): an empty column on every leaf.

What it costs: the chevron moves from the right edge to the left (relearned once), and a parent's provider icon is hidden while the row is hovered.

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Medium. Applied ui and confirmed-repro.
    • Report: Reproduction and root-cause report.
    • Verdict: REPRODUCED · root-cause confidence high.
    • Root cause: Title-dependent disclosure clearance adds margin before the trailing menu, moving Archive 28 px left and leaving a 2 px gap beside disclosure.
    • Evidence: Two clean trusted-main builds produced identical measurements across 12 samples. The alignment regression assertion fails on four parent samples; all 84 existing thread-row tests pass. Desktop pointer styles were emulated; no destructive archive action was run.
    • No new PR: Open #5910 already links this issue, so a duplicate fix was skipped. Its code was not executed.

    AGENT GENERATED

  4. added a commit that references this issue on Oct 22, 2026
    831f743
  5. added a commit that references this issue on Nov 23, 2026
    977baf3
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