Skip to content

Fix gaps in the back/forward shortcuts - #5013

Merged
brsbl merged 1 commit into
mainfrom
bb/history-shortcut-fixes-thr_tm8utsbqpb
Oct 6, 2026
Merged

brsbl merged 1 commit into
mainfrom
bb/history-shortcut-fixes-thr_tm8utsbqpb

Conversation

@brsbl

@brsbl brsbl commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

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
  • 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 After: neither command listed
⌘⇧P / type "go", fresh window Mobile · 390×844 Before on mobile After on mobile
⌘⇧P / type "go", after opening another thread Desktop · 1440×900 Before: Go back and Go forward both listed After: only Go back listed

Split out of #4962. Follows #4897.

BB-Thread: ⌘K improvements

🤖 Generated with Claude Code

AGENT GENERATED

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 0327846 into main Oct 6, 2026
41 checks passed
@brsbl
brsbl deleted the bb/history-shortcut-fixes-thr_tm8utsbqpb branch October 6, 2026 12:04
brsbl added a commit that referenced this pull request Oct 6, 2026
## Human comments

## What was wrong

⌘K buried exact title matches under message matches, and multi-line
excerpts hid each row's thread name. Its highlight could also jump to
another thread when server results arrived.

## What changed

- Threads whose title contains every typed word rank above message-only
matches.
- Title matching follows the server's rule: each word starts a title
word, ignoring accents and punctuation.
- Each row leads with the thread title.
- When a message matched, the row's second line shows that excerpt on
one line.
- Every row reserves the "Open in split" column, so text truncates at
the same edge.
- The highlighted row stays visible and selected when server results
arrive, and stays listed when you arrow back up.
- Local matching builds rows only for the top 50 matches.
- Personal threads no longer match the hidden "Personal" project name.

## How you verified

- Remote CI: passed on a258a28.
[Run](https://github.com/get-bb/bb/actions/runs/37459309899)
- Eval test: real "moss plugins" results put the exact title first,
selected and highlighted.
- Chrome for Testing via bb Browser Automation, headless at 2×, desktop
and mobile web.
- Typing "in": every row leads with its title; message matches show
one-line excerpts.
- Arrowing to the 6th row before server results: it stays highlighted on
"Upgrade toolchain…".
- Opening ⌘K on a thread that's already open: all rows keep the split
column; widths hold while arrowing.
- Slop Cop (security, architecture, code quality, performance) on
a7673d5: one blocker, fixed in 24ebaa0.
- Two review follow-ups fixed in a258a28, with tests for accented,
hyphenated and mid-word queries and for arrowing back up.

### Screenshots

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

| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| ⌘K / type "in" | Desktop · 1440×900 | ![Before: message excerpts lead
each row,
multi-line](https://github.com/user-attachments/assets/8796e92e-6938-4ea4-a103-a93d0a68ca2d)
| ![After: titles lead, one-line
excerpts](https://github.com/user-attachments/assets/32d2e14a-dab0-48c5-9375-15035f943927)
|
| ⌘K / type "in" | Mobile · 390×844 | ![Before on
mobile](https://github.com/user-attachments/assets/a20a2096-4994-480b-b8b5-8b85368e8a05)
| ![After on
mobile](https://github.com/user-attachments/assets/86817cdd-e795-432e-a649-55bd4fd8cae3)
|
| ⌘K / "in", arrow to the 6th row before server results arrive | Desktop
· 1440×900 | ![Before: highlighted row pushed out of
view](https://github.com/user-attachments/assets/c74c828d-0d4f-4017-9249-41c81e3e8f08)
| ![After: Upgrade toolchain stays highlighted in
view](https://github.com/user-attachments/assets/1f670e02-73e3-42e7-b777-a767f5d184c8)
|

The back/forward shortcut fixes moved to #5013.

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