Repository navigation
Add configurable thread rename and archive shortcuts - #1172
Merged
ymichael merged 3 commits intoAug 10, 2026
Merged
Conversation
ryanbbrown
force-pushed
the
feature/thread-archive-shortcut
branch
from
August 9, 2026 13:11
42f2b0d to
5ecfa54
Compare
ymichael
force-pushed
the
feature/thread-archive-shortcut
branch
from
August 10, 2026 22:37
5ecfa54 to
fc83c63
Compare
ymichael
marked this pull request as ready for review
August 10, 2026 22:39
amadad
pushed a commit
to amadad/bb
that referenced
this pull request
Aug 14, 2026
Closes get-bb#1157. Closes get-bb#1242. ## Summary - expose **Rename thread** and **Archive thread** in Settings → Keyboard without assigning default shortcuts - support assigning, clearing, and resetting keyboard commands that have no default shortcut - route both commands to the focused thread and target only the focused pane when multiple threads are visible - reuse the existing rename dialog and archive lifecycle, including child handling, pane cleanup, navigation, and toast behavior - ignore archived threads instead of turning the archive command into an archive/unarchive toggle ## User impact Users can choose keyboard shortcuts for renaming and archiving the focused thread. Neither command is assigned by default, and the existing rename and archive behavior remains unchanged. ## Testing - full GitHub CI matrix - `pnpm exec turbo run test --filter=@bb/app -- --run src/components/settings/KeyboardSettingsSection.test.tsx src/lib/keyboard-shortcut-settings.test.ts src/views/thread-detail/ThreadRenameCommandHandler.test.tsx src/views/thread-detail/ThreadArchiveCommandHandler.test.tsx` - `pnpm exec turbo run test --filter=@bb/server -- --run test/system/app-keybindings.test.ts` - `pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/server --filter=@bb/domain --filter=@bb/server-contract --filter=@bb/plugin-sdk --filter=@bb/templates` - full local app suite: 330 test files and 2,484 tests - manual QA by assigning the shortcuts and renaming or archiving focused threads in single-pane and split views - `git diff --check` --------- Co-authored-by: Michael Yong <[email protected]>
This was referenced Aug 19, 2026
SawyerHood
added a commit
that referenced
this pull request
Aug 19, 2026
## What was wrong Archiving a thread from the sidebar took two or three actions: open the `…` menu or the right-click menu, then pick Archive. Users who clean up many threads a day asked for a one-click hover button like Cursor has (#1958, which supersedes #1159; the keyboard shortcut from #1172 is opt-in and not discoverable from the list). ## What changed - `apps/app/src/components/thread/ThreadActionsMenu.tsx`: new `ThreadArchiveQuickAction`, an icon button with a tooltip that calls the same `archiveThreadAndChildren` / `unarchiveThread` actions as the menu entry. It uses the existing `Archive` / `ArchiveRestore` icons and stops propagation so the row link does not navigate. - `apps/app/src/components/sidebar/ThreadRow.tsx`: the hover overlay is anchored `inset-y-0 right-0` so it can hold two actions; the archive button sits left of the `MoreHorizontal` trigger with a 2px gap. - `apps/app/src/components/ui/theme.css` + `sidebar-hover-actions.ts`: new `bb-sidebar-hover-actions-inset` class reserves one action width on the title under the same row states that reveal the overlay (hover, focus-visible, open menu), so long titles truncate instead of running under the button. Reset to 0 on coarse phones where the overlay is hidden. Not applied when the row shows a shortcut pill instead of hover actions. No wire, CLI, or doc changes; no new icon registered. ## How you verified - New `ThreadArchiveQuickAction.test.tsx`: one click archives without bubbling to the row; an archived thread unarchives instead. - Updated `ThreadRow.test.tsx` mock and wrapped `ProjectRow.interactions.test.tsx` renders in `TooltipProvider`. - `pnpm exec turbo run typecheck lint test --filter=@bb/app`: 404 files, 3100 tests pass. - Manual: dev app in headless Chromium — hover shows the button left of `…`, click removed the row and set `archived_at` in the dev DB; long title truncates before the button. Fixes #1958 > AGENT GENERATED: by Claude Opus 5 --------- Co-authored-by: Claude <[email protected]>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1157.
Closes #1242.
Summary
User impact
Users can choose keyboard shortcuts for renaming and archiving the focused thread. Neither command is assigned by default, and the existing rename and archive behavior remains unchanged.
Testing
pnpm exec turbo run test --filter=@bb/app -- --run src/components/settings/KeyboardSettingsSection.test.tsx src/lib/keyboard-shortcut-settings.test.ts src/views/thread-detail/ThreadRenameCommandHandler.test.tsx src/views/thread-detail/ThreadArchiveCommandHandler.test.tsxpnpm exec turbo run test --filter=@bb/server -- --run test/system/app-keybindings.test.tspnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/server --filter=@bb/domain --filter=@bb/server-contract --filter=@bb/plugin-sdk --filter=@bb/templatesgit diff --check