Skip to content

Add ⌘[ / ⌘] shortcuts to the sidebar's back and forward - #4897

Merged
brsbl merged 5 commits into
mainfrom
bb/back-forward-shortcuts-thr_tm8utsbqpb
Oct 5, 2026
Merged

brsbl merged 5 commits into
mainfrom
bb/back-forward-shortcuts-thr_tm8utsbqpb

Conversation

@brsbl

@brsbl brsbl commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

There was no keyboard shortcut for going back, and the sidebar's ‹ › arrows didn't show one (#3711).

What changed

  • ⌘[ and ⌘] now drive the sidebar's existing ‹ › back and forward history.
  • The same ⌘[ / ⌘] work in the web app; bb handles them instead of the browser's Back while it has somewhere to go.
  • Hovering an arrow shows its shortcut as a keycap, including when there is nowhere to go yet.
  • Holding ⌘ shows ⌘[ ⌘] beside the arrows, like the sidebar's other shortcut hints.
  • "Go back" and "Go forward" appear in ⌘⇧P and can be rebound in Keyboard settings.
  • The plugin SDK goes from 0.6.20 to 0.6.21, because its published types include the new command IDs.

How you verified

  • Browser QA: Chrome for Testing 151, headless via bb Browser Automation, at 1280×800 and 2× scale, with a seeded fixture of 4 projects and 40 threads.

  • Hovering the back arrow shows only its ⌘[ keycap.

  • Holding ⌘ shows ⌘[ ⌘] beside the arrows:

    Holding ⌘ shows ⌘[ ⌘] beside the arrows

  • Remote CI passed, including the handler, tooltip, and default-binding tests.

Screenshots

Before (main) After
Hover the back arrow Before: no tooltip ![After: the back arrow shows its ⌘ keycap
⌘⇧P, type "go" Before: no back or forward commands After: Go back and Go forward listed with shortcuts

BB-Thread: Add quick switcher to command palette

AGENT GENERATED

🤖 Generated with Claude Code

Bind new history.back / history.forward commands (⌘[ / ⌘] on desktop,
Ctrl+[ / Ctrl+] on web) to the sidebar's existing route history, and
show each arrow's shortcut in a tooltip, including while disabled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cuts-thr_tm8utsbqpb

# Conflicts:
#	packages/domain/src/plugin-sdk-version.ts
#	packages/plugin-sdk/package.json
@brsbl
brsbl marked this pull request as ready for review October 5, 2026 23:02
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@brsbl
brsbl merged commit 01cc43c into main Oct 5, 2026
60 of 61 checks passed
@brsbl
brsbl deleted the bb/back-forward-shortcuts-thr_tm8utsbqpb branch October 5, 2026 23:02
brsbl added a commit that referenced this pull request Oct 6, 2026
## Human comments

## What was wrong

The ⌘[ / ⌘] shortcuts from #4897 overrode a user's own binding on the
same key, ran inside the in-app browser, and showed in ⌘⇧P with nowhere
to go. The docs also said the keys do nothing at either end of history,
but on the web the browser's own Back runs.

## What changed

- A user's own ⌘[ / ⌘] binding now wins over Go back / Go forward.
- Go back / Go forward no longer run while the in-app browser has focus.
- ⌘⇧P lists Go back / Go forward only when there is somewhere to go.
- `docs/configuration.md` describes what happens at either end of
history.

## How you verified

- Remote CI: passed on 7a435a3.
[Run](https://github.com/get-bb/bb/actions/runs/37443067390)
- Chrome for Testing via bb Browser Automation, headless at 2×, on
7a435a3.
- A fresh window's ⌘⇧P lists neither command; after opening another
thread, only Go back.
- Earlier QA: with Previous thread rebound to ⌘[, ⌘[ opened the thread
above instead of going back.
- Not run end to end: the desktop-only in-app browser case, covered by a
server binding test.

### Screenshots

Before: fd31b75 (merge base) · After: 7a435a3 · Captured at 2×

| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| ⌘⇧P / type "go", fresh window | Desktop · 1440×900 | ![Before: Go back
and Go forward listed with nowhere to
go](https://github.com/user-attachments/assets/abbfd237-af52-4174-be64-03c1cfcc0f6b)
| ![After: neither command
listed](https://github.com/user-attachments/assets/dd8ff893-ba50-44ed-8952-e4a7da4fbe10)
|
| ⌘⇧P / type "go", fresh window | Mobile · 390×844 | ![Before on
mobile](https://github.com/user-attachments/assets/9b944c45-d805-40b6-bc77-6818dbeb5426)
| ![After on
mobile](https://github.com/user-attachments/assets/bb7b6ec5-5150-4069-9ed5-c7a6dee22cf0)
|
| ⌘⇧P / type "go", after opening another thread | Desktop · 1440×900 |
![Before: Go back and Go forward both
listed](https://github.com/user-attachments/assets/c7d48205-94a0-4521-8c4b-e388a0261f21)
| ![After: only Go back
listed](https://github.com/user-attachments/assets/4a6d96fd-a81e-48ac-aee7-60354ed72657)
|

Split out of #4962. Follows #4897.

BB-Thread: [⌘K
improvements](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_tm8utsbqpb)

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

> AGENT GENERATED

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