Skip to content

Keep Cmd/Ctrl-click opening a split with sidebar multi-select on - #6217

Merged
ymichael merged 1 commit into
mainfrom
bb/verify-sidebar-multi-select-behavior-thr_sjta84a7nx
Oct 24, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/verify-sidebar-multi-select-behavior-thr_sjta84a7nx

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

With the sidebarMultiSelect experiment on, Cmd/Ctrl-click on a sidebar thread row only toggled selection and could never open a split. ThreadSelectionStore.handleClick claimed every Cmd/Ctrl click before the row's split handler ran, which broke the Cmd/Ctrl-click = open in split convention the rest of the sidebar uses.

What changed

  • plugins/thread-list/app/selection/threadSelection.tsx: Cmd/Ctrl+Shift-click toggles a row, Shift-click selects a range, and a plain Cmd/Ctrl-click clears any selection and falls through to the row's existing open-in-split handling. The additive Cmd+Shift range (adding a second range to a selection) is dropped because that gesture now toggles.
  • Experiment description in Settings, docs/configuration.md, and the bb guide customization template now describe Cmd/Ctrl+Shift-click for selection and say Cmd/Ctrl-click still opens a split.

How you verified

  • pnpm exec turbo run test lint typecheck --filter=bb-plugin-thread-list: 468 tests pass, lint and typecheck clean.
  • ThreadRow.test.tsx now checks, with multi-select on, that Cmd/Ctrl+Shift-click selects the row and a following Cmd/Ctrl-click clears the selection and navigates with { split: true }. This fails on main, where the Cmd/Ctrl-click only toggles.
  • Ran pnpm start:worktree with the experiment on and a seeded project of six threads for manual checking.

AGENT GENERATED

🤖 Generated with Claude Code

Multi-select now toggles rows with Cmd/Ctrl+Shift-click; Shift-click still
selects a range, and plain Cmd/Ctrl-click clears any selection and opens
the thread in a split, matching the rest of the sidebar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit b17bfc8 into main Oct 24, 2026
49 checks passed
@ymichael
ymichael deleted the bb/verify-sidebar-multi-select-behavior-thr_sjta84a7nx branch October 24, 2026 04:09
@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