Skip to content

Add experimental sidebar multi-selection, bulk actions, and multi-thread dragging - #6191

Merged
ymichael merged 8 commits into
mainfrom
bb/implement-sidebar-multi-select-and-drag-thr_pqtuyz5nyg
Oct 23, 2026
Merged

ymichael merged 8 commits into
mainfrom
bb/implement-sidebar-multi-select-and-drag-thr_pqtuyz5nyg

Conversation

@ymichael

@ymichael ymichael commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The built-in thread list only supported actions and dragging for individual rows. Selecting several threads to organize or mention together required repeating each operation. Initial multi-selection handling also detached selected children from selected parents during bulk section moves and excluded visible rows in expanded More lists from Shift-selection ranges.

What changed

Add sidebar multi-selection behind the sidebarMultiSelect experiment, with Cmd/Ctrl-click toggling, Shift-click ranges, bulk context-menu actions, multi-thread dragging, and dropping multiple thread mentions into the composer. Bulk section moves preserve selected ancestor hierarchies, and range selection is scoped to the active More list. Escape clears selection, dismisses the bulk-action menu, and restores focus to the open thread to avoid a lingering second focus highlight. Extend the plugin SDK for experiment access and multi-thread drag payloads, and update the Plugin Guide and configuration documentation.

How you verified

  • pnpm exec turbo run test lint typecheck --filter=bb-plugin-thread-list -- — all 468 thread-list tests, lint, and typecheck passed.
  • Added regression coverage for selected parents and descendants, independently selected children, and range selection within inline and portaled More lists. All three regression cases failed before the fixes and passed afterward.
  • git diff --check passed.
  • Verified Escape in the running worktree app with real browser input: direct Escape and Escape from the bulk menu both clear selection and restore focus to the open thread.
  • SDK version consistency test and plugin SDK version guard passed after updating to 0.6.77 and merging current main.

AGENT GENERATED

ymichael and others added 8 commits October 23, 2026 13:26
Cmd/Ctrl-click toggles a thread row into a selection (seeded with the open
thread), Shift-click selects the visible range from the anchor, plain click
or Escape clears it. Right-clicking a selected row opens a bulk menu (mark
read/unread, pin/unpin, move to section, archive with undo). Dragging a
selected row carries the whole selection: onto a section, onto a row to nest,
onto Pinned, or out of the sidebar into a composer to mention every thread.

experimental_useSidebarThreadSplit accepts dragThreadIds, and composers
implement insertDroppedThreads for multi-thread drops. Plugin SDK 0.6.76.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Multi-row selection is on for early adopters only; while it is off,
Cmd/Ctrl-click opens a thread in a split as before. Plugins read bb
experiments live with experimental_useExperiment. A pointer press outside
the sidebar (other than in a menu) now clears the selection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 21d5db7 into main Oct 23, 2026
49 checks passed
@ymichael
ymichael deleted the bb/implement-sidebar-multi-select-and-drag-thr_pqtuyz5nyg branch October 23, 2026 22:59
@ymichael ymichael mentioned this pull request Oct 24, 2026
ymichael added a commit that referenced this pull request Oct 24, 2026
## Human comments

## What was wrong

`main` has 14 commits since 0.47.0, including #6195, which fixes the
timeline staying detached at the bottom (a regression from #5951 that
shipped in 0.47.0). `bb-app` and `@bb/desktop` were still at 0.47.0, so
the publish and desktop workflows can't ship them.

## What changed

- `packages/bb-app/package.json`, `apps/desktop/package.json`: 0.47.0 →
0.47.1 (`node scripts/bump-version.mjs --patch`).
- No `CHANGELOG.md` or `RELEASE_META` entry: like earlier fix-only
patches, these changes go into the 0.48.0 notes.

The release commit sits directly on `b17bfc8fdd` (#6217). Everything
below was tested on `22d41249ee`, and the sidebar was tested again on
`b17bfc8fdd`. This release includes the daemon protocol bump from #6185
(251 → 252), so enrolled machines will update their daemon.

## How you verified

- `node .github/workflows/check-version-lockstep.mjs`: `bb-app=0.47.1
@bb/desktop=0.47.1`.
- Typecheck, tests and the `bb-app` tarball smoke run in CI on this PR,
instead of locally.
- `git diff --check`, and `oxfmt --check` on the changed files: clean.
- Manual QA of `22d41249ee` with `pnpm start:worktree` (production
bundle) and headless Chrome, on a fresh data dir:
- **Timeline (#6195):** a long unread reply stops at NEW, detached. A
short unread reply opens at the end with no jump arrow. Scrolling up 150
px and growing the viewport 900 → 1200 attaches. Scrolling up 400 px and
growing it stays detached. Sending after scrolling up 1,800 px jumps to
the end and follows the streamed Claude Code reply. The view is still at
the end after a reload.
- **Docs (#6146):** typing in a note while `bb docs pull`/`push`
appended a paragraph kept both edits on disk and in the editor. A stale
push after a UI edit was refused as a conflict. A new note was renamed
from its first line and kept its Markdown after a reload.
- **Skills (#6185):** `bb project commands` lists project skills from
the documented roots for Claude Code and Codex, with no duplicate names.
A Codex `/skill` turn ran the skill.
- **Storage & retention (#6190, #6205):** two outside worktrees were
listed. Bulk removal removed the clean one, kept its branch, and kept
the dirty one. The table fits a 390 px viewport.
- **Sidebar multi-select (#6191, #6217), on `b17bfc8fdd`:** with the
experiment on, Cmd+Shift-click selected a second thread without
navigating ("Actions for 2 threads"). Pressing it again on the same
thread deselected it. Shift-click selected a range of 4. Escape cleared
the selection. Cmd-click cleared the selection and opened a split. Bulk
Pin applied to the two selected threads (checked with `bb thread list`).
With the experiment off, Cmd-click opens a split.
- **omp (#6186):** the picker labels GPT-5.6 Terra rows `openai` and
`openai-codex`.

Not exercised: the Ultrafast icon (#6198), because no Codex model on the
test account offers Ultrafast. Also not exercised: the Android
touch-drag attach, the desktop app, the SDK realtime reconnect (#6183)
and retryable host RPCs (#6184). Those last two are covered by unit
tests only.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant