Repository navigation
Stop thread switches from forcing full timeline layouts and cache large timelines - #1
Merged
Merged
Conversation
This was referenced Sep 27, 2026
bborn
force-pushed
the
perf/thread-switch-layout-thrash
branch
from
September 29, 2026 10:59
6cb246b to
51250ac
Compare
…et-bb#4976) ## Human comments ## What was wrong Recent CI failures came from independent lifecycle and readiness races, shared test state, and live registry resolution. A review of 900 recent CI runs classified 213 distinct failing test names; broad shuffled runs then exposed additional icon-generation and app teardown/order failures. A refresh of newer main runs found three more failures from the generated-bundle checker race fixed here. This follows get-bb#4963. Evidence includes [host/ACP failures](https://github.com/get-bb/bb/actions/runs/37389341709), [browser ownership](https://github.com/get-bb/bb/actions/runs/37389714139), [Claude permissions](https://github.com/get-bb/bb/actions/runs/37388331904), [Pi PID reuse](https://github.com/get-bb/bb/actions/runs/37285422900), [server move](https://github.com/get-bb/bb/actions/runs/37374976858), [environment cleanup](https://github.com/get-bb/bb/actions/runs/37095834703), and [registry resolution](https://github.com/get-bb/bb/actions/runs/37386279602). ## What changed - Host plugin shutdown now shares one directory-cleanup promise instead of deleting the same directory concurrently. - ACP and browser child fixtures publish usable readiness after signal handlers are installed. Pi fixtures use actual child handles rather than probing retired, potentially reused PIDs. - Claude permission tests wait for the expected request; server retirement and environment cleanup tests await lifecycle completion; Tasks tests wait until form submission is enabled. - The server-move fixture retains its listening socket until the child accepts ownership, removing the free-port selection race. - The integration harness stops plugins and closes WebSockets during shutdown, matching production. - External scaffolds install the packed SDK offline using locked local dependencies. - PWA generation skips unchanged assets and publishes changed files atomically, preventing concurrent checks from reading truncated icons. - The provider-literal checker excludes generated Wrangler and SDK runtime-test bundles while continuing to scan adjacent source files. A [native Windows reproduction](https://github.com/get-bb/bb/actions/runs/37395770823) identified `apps/demo-server/.wrangler/tmp/dev-*/worker.js` as the extra provider-reference source. - The filesystem-watcher test awaits actual change events under its existing test watchdog and propagates errors received after readiness. - The cold-loading toast test runs in its own isolated environment. Palette tests complete Radix's scheduled focus cleanup before disposing jsdom. - Replay initialization is limited to four simultaneous workers; initialized replays retain their existing concurrency. Queue slots release on initialization, timeout, exit, signal, and spawn failure. No wire, public API, or user-facing configuration changes. ## How you verified Controlled before/after failures cover duplicate directory cleanup, readiness publication, stale PID probes, delayed permission delivery, retirement/cleanup scheduling, occupied ports, disabled form submission, open WebSocket shutdown, concurrent icon checking, shuffled toast startup, unfinished focus cleanup, delayed native filesystem events, and generated bundles appearing in the source scan. The replay regression launches eight real workers, checks the initialization bound, then verifies all eight can replay concurrently; failure cases verify queued work completes and children exit. - First repository shuffle (seed 61973) passed 14,512 tests outside the app; its icon precheck and subsequent app failures produced the fixes above. - Focused verification passes: six replay-helper regressions, all 59 recorded parity cases, 616 host source tests, all 74 integration tests, all 41 Tasks manage tests, and 17 affected app tests. Changed-package lint/typechecks pass. - [Native Windows shutdown verification](https://github.com/get-bb/bb/actions/runs/37394517960) passes the formerly failing live-WebSocket regression and three environment-isolation repetitions. - [Windows startup measurements](https://github.com/get-bb/bb/actions/runs/37393953100): limiting startup to four reduced maximum cold initialization from 15.8s to 2.8s and suite duration from 44.1s to 27.3s, while keeping peak live replays at 16. The original 60-second initialization timeout did not reproduce; this is a measured contention mitigation, not a proven diagnosis of that exact failure. - Second repository shuffle (seed 82317): 19,886 tests passed, including all 5,370 app tests; one watcher readiness failure led to the final event-wait fix. The complete watcher suite then passed (56 tests), and the scripts suite passed all 201 tests with the artifact exclusions. - CI at 2712483 passed 30 checks; its sole failure was the generated-bundle checker race fixed in f4e976b. - Final repository-wide shuffle (seed 90071) passes: **19,889 tests across 92 package suites; all 106 Turbo tasks passed**, with no unhandled errors. - [Native Windows scanner after-proof](https://github.com/get-bb/bb/actions/runs/37396098532) passes 15 demo tests and the source scan with exactly 14 references across six allowlisted source files. - [Linux/Windows CI at f4e976b](https://github.com/get-bb/bb/actions/runs/37396210581) is green: **all 31 non-skipped checks passed** (three intentionally skipped). Diff scope: four production/tooling files (+392/-317, mostly replay-helper try/finally indentation) and 23 tests/support files (+745/-230). > AGENT GENERATED
…get-bb#4987) ## Human comments ## What was wrong The four built-in environment plugins (Worktree, Project checkout, Personal workspace, Modal Sandbox) had their own Environments category. That added a whole browse shelf for four plugins. ## What changed - The environment plugins now appear under Cloud & Remote, renamed Environments & Cloud. - The category's built-in description now covers choosing where threads run. - Only the display name changes; the `cloud-and-remote` ID stays. - The `environments` category stays defined so third-party listings that use it keep working. - The live name and description come from the marketplace manifest; get-bb/marketplace#490 updates it there. ## How you verified - Remote CI: pending. - Chrome for Testing (Browser Automation): the four plugins show in Cloud & Remote, and the Environments shelf is gone. ### Browse plugins overview Before: f7c33a2 (main) · After: effc2e7 · Captured at 2×, Oct 5. The shelf heading still reads Cloud & Remote until get-bb/marketplace#490 merges. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | App · Cloud & Remote and following shelves | Desktop · 1440×900 |  |  | BB-Thread: [Fresh plugin browse shelves](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_a4kxc4rfxg) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong AI services selectors had a fixed minimum width and followed the optional Test button. On mobile, the thread title and commit message selectors were indented while Voice input started at the left edge, producing inconsistent alignment and unused space. ## What changed Place each selector before its Test button and let it fill the available width on mobile. Keep selectors compact on desktop, truncate long service names, and shorten the AI services introduction. ## How you verified - `pnpm exec turbo run typecheck --filter=@bb/app` passed. - Verified the source app in Chromium at 320px, 390px, and 1280px widths: aligned mobile selectors, no horizontal overflow, and compact desktop controls. - Opened the mobile picker, changed a selection, confirmed persistence after reload, and restored the original selection. - Reviewed mobile and desktop screenshots. iOS Safari was not tested. - `git diff --check` passed. > AGENT GENERATED
…b#4996) ## Human comments ## What was wrong The global restart splash still displayed the package version for source updates because the server dropped the launcher's target commit when exposing restart status. A source update to `9f4ee4d` consequently appeared as “Updating bb to 0.45.0.” On narrow update rows, progress captions competed with the app identity and commit metadata for horizontal space, producing different wrapping at each stage. ## What changed - Carry the target commit through restart status and use the existing revision formatter in the splash. Source updates show the short commit; npm updates retain the release version. - Use the update row's available width to stack metadata and progress beneath the app identity in narrow layouts. Align the spinner with the heading and allow long captions to wrap. Wider rows retain inline content. - Add required nullable `targetCommit` to the public restarting activity returned by `sdk.system.appUpdate()` and the system update API. It is null for npm updates. The CLI's JSON output inherits this status field. No host-daemon wire changes or protocol bump are involved. ## How you verified - Focused app-update tests: 10 passed, including a source restart with no cached available update, npm version display, overdue dismissal, and revision reload behavior. - Server app-update tests: 25 passed, including source and npm launcher-to-public-status mapping. - Updates settings tests: 45 passed. - `pnpm exec turbo run test --filter=@bb/app -- src/components/app-update/AppUpdateHost.test.tsx src/components/app-update/app-update-presentation.test.ts` - `pnpm exec turbo run test --filter=@bb/server -- test/system/app-update.test.ts` - `pnpm exec turbo run test --filter=@bb/app -- src/components/settings/UpdatesSettingsSection.test.tsx` - `pnpm exec turbo run typecheck lint --filter=@bb/app --filter=@bb/server` passed; app checks also passed after the layout change. Lint reported existing warnings and no errors. - Browser previews verified checking, ready-to-restart, and restarting rows at 320px and 390px without horizontal overflow, and inline layout at a 1000px viewport. Matching 390px splash previews verified the version-to-commit label change. These used synthetic fixtures, not a real application update/restart. - `git diff --check` passed. > AGENT GENERATED
## Human comments
## What was wrong
The thread Info panel was a single label/value table with lists bolted
on. Commit IDs and file paths competed with commit subjects and file
names, and each section used a different layout. Thread storage was a
file tree that looked detached from the rest of the panel. Rows also
didn't say what clicking them would do.
## What changed
**Layout**
- **Sections:** Forks, Commits, Changes, and Thread storage share one
heading with a count pill, separated by dividers.
- **Rows:** every row is 24px with a 12px glyph column, so names line up
across sections. Names are full color; glyphs, folder hints, and compact
ages ("5h", "1d") are tertiary.
- **Overflow:** long lists show five rows, then an "N more" row that
expands in place.
**Actions**
- Hovering a row highlights it and shows its actions right after the
name. Each action has its own nested hover and a short tooltip. On touch
screens, a row with more than one action shows a single "…" beside its
timestamp that opens them in the mobile drawer:
- **Commits:** "Open diff" and "Copy commit SHA".
- **Changed files and stored files:** "Open in tab".
- **Clicking a row:**
- a commit or changed file opens its diff;
- a stored file opens it;
- a fork opens that thread.
**Changes and storage**
- **Changes:** boxed git status icons with one-word tooltips (Modified,
Added, Deleted, Renamed, Conflict). Untracked files read as Added
because bb's commit stages every change. Each row shows a filename with
its folder, and a five-block size bar that swaps to exact counts on
hover. The Uncommitted / Committed switcher sits next to the count.
- **Thread storage:** a flat list replaces the file tree, so
`@pierre/trees` leaves the app. Lists longer than six files get a search
button in the heading. It opens a soft-bordered field in the same row,
and the close button takes the search button's place, so the list
doesn't move.
**Properties**
- Icons are smaller and quieter, and copy buttons appear on hover.
- The new-thread-in-environment icon matches the other row icons.
- **Directory:** shows the home folder as `~/` and truncates at the end.
- **Git status:** a dirty working tree shows a red icon with an
"Uncommitted changes" tooltip. The "Ahead" or "Behind" label is dropped
when the summary already says it.
- **Carets:** every caret is 12px.
### Code structure
- Each section is its own module under `secondary-panel/info/`, built
from shared primitives in `info-list.tsx`: `InfoSection`, `InfoList`,
`InfoListRow`, `InfoRowAction`, `InfoRowTime`, and `InfoMenuTrigger`.
This prepares the panel for get-bb#4956 (Info panel as a forkable plugin).
- `RelatedThreadsSection` renders any thread list, so subthreads can
reuse it.
- The commit dialog's changed-files row is single-bucket. The unused
`TruncatedList` is removed.
No API, CLI, SDK, or wire changes.
## How you verified
Screenshots come from the branch web app in headless Chrome for Testing
through the Browser Automation plugin, at 2×, with identical seeded
data. The fixture is a subthread on a branch 6 commits ahead of `main`,
with modified, renamed, added, deleted, and untracked files, 32
committed files, and four stored files. The storage search row uses the
parent thread, which has seven stored files.
Before: `a71d215` · After: desktop rows at `cf56d66`, mobile rows at
`1cde32f` (PR head) · Captured at 2×
The commits after `cf56d66` change only the untracked label,
touch-screen row actions, and a slightly later truncation point for long
row names. The desktop rows otherwise look the same at the head.
The PR is based on `630bdf4`. Nothing between `a71d215` and `630bdf4`
touches the Info panel.
| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| Info panel | Desktop · 1440×900 | 
| 
|
| Commit row / hover | Desktop · 1440×900 | Not captured | 
|
| Changed file / hover | Desktop · 1440×900 | Not captured | 
|
| Bucket switcher / menu open | Desktop · 1440×900 | Not captured |

|
| Committed bucket / expanded | Desktop · 1440×900 | Not captured |

|
| Thread storage / search | Desktop · 1440×900 | Not captured | 
|
| Info panel / dark | Desktop · 1440×900 | Not captured | 
|
| Info panel | Mobile · 390×844 | Not captured | 
|
| Commit actions menu | Mobile · 390×844 | Not captured | 
|
The state rows have no "Before" capture. Capturing them would have moved
the live QA preview off the PR head while QA was in progress.
Browser QA (Chrome for Testing, light and dark):
- The commit open action opens the Diff tab; copying a commit SHA shows
a toast.
- File hover shows exact counts. "Open in tab" opens the file.
- The bucket switcher and "N more" work.
- Storage search filters in place, and Escape closes it.
- Rows are reachable by keyboard.
- All carets measure 12×12.
User QA: signed off.
Tests:
- New tests cover the compact time format, the size-bar scale, the list
overflow threshold, and storage search.
- `GitStatusRow` tests cover the dirty icon and the label rule.
Remote CI runs on the PR head. Tests, typecheck, and lint were not run
locally.
Follow-ups (P2, not in this PR):
- Guard `InfoRowTime` against out-of-range commit dates.
- Cap expanded lists for very large thread storage.
- Fetch forks once and pass them in as data.
- Share the Ahead/Behind label rule with the commit dialog.
- Let a click on the 12px status icon open the diff.
- Align the composer's "New thread in this environment" wording.
BB-Thread: [Enhance info panel to thread
navigation](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_6ii952bx6f)
BB-Thread-ID: thr_6ii952bx6f
> AGENT GENERATED
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong The redesigned thread Info panel (get-bb#4898) stacks properties, Commits, Changes, Forks, and Thread storage in one scrolling column. On active threads it gets long, and there was no way to put away a section you don't need. ## What changed - **Collapse from the heading:** clicking a section heading (Commits, Changes, Forks, Thread storage) collapses or expands it. The heading is a button with `aria-expanded`, and it gets a rounded highlight on hover. - **Collapsed sections stay quiet:** a collapsed section keeps its label and count. Its controls hide: the Uncommitted / Committed switcher, the +/− totals, and the storage search button. - **Synced preference:** the collapsed set is a new server-backed UI preference, `infoPanel.collapsedSections`. It's a list of section ids (`commits`, `changes`, `forks`, `threadStorage`) and follows the user across windows and devices. - **CLI:** `bb settings ui get` and `bb settings ui set` read and write it. - **Docs:** `docs/configuration.md`, the bb-cli skill reference, and the `bb guide` customization chapter cover it. - **Fix for late-loaded preferences:** a synced preference atom created in a lazily loaded module missed the initial reconcile, so it kept its default until the next refetch. Registration now reconciles from the cached server response, without overriding pending local writes. **Compatibility:** the change is additive. An older server that lacks the key leaves the preference local to the device, which is existing behavior for missing entries. Old clients ignore the extra key. ## How you verified Screenshots come from the branch web app in headless Chrome for Testing through the Browser Automation plugin, at 1440×900 and 2×, with the same fixture and pointer positions. Before: `cf56d66` (get-bb#4898 head) · After: `329c78a` · Captured at 2× The current head `f05ef84` adds only documentation and rebases onto get-bb#4898's latest head. The collapse code is unchanged. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Changes heading / hover | Desktop · 1440×900 |  |  | | Changes / after clicking the heading | Desktop · 1440×900 |  |  | - **Browser QA:** toggling Changes three times kept `aria-expanded` and the server value in sync. After a reload the collapsed state came back from the server, both before and after the late-registration fix. - **Tests:** - an `InfoSection` test covers `aria-expanded`, hiding the body, and hiding the heading controls; - a sync test covers hydrating a preference registered after sync starts. - **Remote CI:** runs on the PR head. Tests, typecheck, and lint were not run locally. Follow-ups (P2, not in this PR): - Close Thread storage search when its section collapses, so focus doesn't jump to the input on expand. - Make `bb settings ui list/get/set` tolerate older servers that lack newer keys. This predates this PR. BB-Thread: [Enhance info panel to thread navigation](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_6ii952bx6f) BB-Thread-ID: thr_6ii952bx6f > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong The Git shelf and Commit button always occupied space, even for people who use another interface for Git. ## What changed - Add **Show Git changes and Commit button** under General → Threads & editing, enabled by default. - Turning it off hides the file summary, expanded file list, and Commit action, including split-pane overflow menus. - Save the preference across sessions and clients, with CLI/SDK documentation and preservation for older clients. ## How you verified - Remote CI passed for `9e28af6d` (38 checks passed, three skipped; Windows dependency-download timeout passed on retry). [Run](https://github.com/get-bb/bb/actions/runs/37426612620). - Chrome for Testing 151.0.7922.71 passed desktop, mobile, reload persistence, re-enabling, and live split-pane overflow updates. - Slop Cop passed the cumulative diff at `9e28af6d`: security, architecture, quality, performance, and existing exact-head product QA; zero P0/P1/P2 findings. Slim PR found no redundant scope. User authorized merge after clean Slop Cop review and green CI. ### Screenshots Before: 9f4ee4d · After: 9e28af6 · Captured at 2× from the branch web app with the same fixture. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | General settings | Desktop · 1440 × 900 |  |  | | General settings | Mobile · 390 × 844 |  |  | | Shelf and Commit / setting off | Desktop · 1440 × 900 |  |  | | Shelf and Commit / setting off | Mobile · 390 × 844 |  |  | | Split-pane overflow / setting off | Desktop · 1400 × 900 |  |  | BB-Thread-ID: thr_62g2z6j9vr BB-Thread: [Dismiss git shelf in session above composer](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_62g2z6j9vr) > AGENT GENERATED
## Human comments ## What was wrong Responsive settings layouts stacked toggles and compact action buttons beneath their labels on mobile, wasting vertical space. ## What changed - Keep settings toggles beside their labels on mobile, with descriptions wrapping below the label. - Keep **Reset all** beside the Keyboard shortcuts heading and **Install** beside the bb CLI skills label. - Reuse the shared settings row and existing inline action placement. ## How you verified - Chrome for Testing 151.0.7922.71: mobile layouts passed at 390 × 844, with screenshots captured at 2×. - Reload, 639px/640px transitions, and the Install dialog’s open/cancel flow passed without overflow or page errors. - [Remote CI passed](https://github.com/get-bb/bb/actions/runs/37421058694) at `84d7f408`: 38 checks green, three skipped. User authorized merge after clean Slop Cop review and green CI. Slop Cop passed the cumulative diff at `84d7f408`: security, architecture, quality, performance, and existing exact-head product QA; zero P0/P1/P2 findings. ### Screenshots Before: e710dbd · After: 84d7f40 · Branch web app, 390 × 844 CSS pixels at 2×. | Screen | Before | After | | --- | --- | --- | | General |  |  | | Skills, privacy and diagnostics |  |  | | Keyboard |  |  | | Providers |  |  | | Experiments |  |  | BB-Thread-ID: thr_62g2z6j9vr BB-Thread: [Dismiss git shelf in session above composer](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_62g2z6j9vr) > AGENT GENERATED
## Human comments
## What was wrong
The Info panel's Git status row mixed several facts into one label.
"Dirty", "Untracked", "Clean", "Up to date", "Ahead", "Behind" and
"Diverged" each answered two questions at once: are there uncommitted
edits, and how does the branch compare to main. Two of those facts also
showed elsewhere: ahead commits in Commits and uncommitted files in
Changes. Changes also hid one of its two file lists behind an
Uncommitted / Committed dropdown.
## What changed
Each fact about the thread's code now appears once.
| Fact | Where it shows |
| --- | --- |
| How the branch compares to its merge base | **Git status**: "Even with
main", "6 ahead of main", "3 behind main", or "4 ahead, 2 behind main" |
| Commits on the branch | **Commits** |
| What those commits changed | **Commits → Files changed**: a subheading
with a plain count after a dot ("Files changed · 32"), line totals, and
the files |
| Edits not committed yet | **Uncommitted files**: its own section with
count, line totals, and files |
| Workspace can't be read | **Git status**: a warning icon and the
reason, e.g. "Workspace not found" |
- **Git status:** shows only the branch comparison. The uncommitted icon
and the state words are gone. It is hidden until the daemon reports a
merge base. "Even with main" is GitHub's wording.
- **Properties:** one group: Parent, Project, Environment, Directory,
Branch, Merge base, Git status, Pull request, Archived. Directory's
value is muted. Dividers separate only the sections.
- **Changes:** the dropdown section is gone. Committed files sit under
Commits, and uncommitted files have their own section. Each part is
hidden when it has no files. Untracked-only files count as uncommitted.
- **Mobile:** on touch screens, list rows are one type step smaller than
properties (13px vs 14px). Long commit subjects no longer outweigh the
properties.
- **Collapse ids:** the synced `infoPanel.collapsedSections` preference
uses `uncommittedChanges` in place of `changes`. The ids are documented
in `docs/configuration.md` and the bb-cli settings reference. A
collapsed Changes section shows Uncommitted files expanded once.
- **Removed:** the bucket dropdown (`ChangedFilesBucketMenu`,
`InfoMenuTrigger`). The composer banner and commit dialog share
`getGitStatusDisplay`, which is unchanged.
No API, CLI, SDK, or wire changes.
## How you verified
Screenshots come from the branch web app (1440×900 and a 390×844 mobile
view) and the `right-panel/Info/Row/Git status` Ladle story. Both
revisions use the same fixture: a subthread 6 commits ahead of `main`
with 32 committed files, captured with and without one uncommitted edit.
Before: `df913a7` (merge base) · After: `6c9eb71` (PR head) · Captured
at 2×
| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| Info panel / one uncommitted file, 6 ahead | Desktop · 1440×900 |

| 
|
| Info panel / no uncommitted files, 6 ahead | Desktop · 1440×900 |

| 
|
| Info panel / one uncommitted file | Mobile · 390×844 | 
| 
|
| Git status / every state (Ladle) | Story | 
| 
|
- Tests cover `formatBranchComparison` for even, ahead, behind and
diverged. They also check that the dirty-row render shows only the
branch comparison, and that the comparison is empty when the daemon
reports no merge base.
- CI runs remotely on the PR head. Tests, typecheck, and lint were not
run locally.
QA: signed off by the user on the branch app.
Follow-ups (P2, not in this PR):
- Give Git status a hover title when its value is truncated.
- Add render tests for Commits → Files changed, Uncommitted files, and
the warning fallback.
- On touch screens, list rows keep `leading-5`, so the 13px rows still
use 20px line height. Drop the unused line-height override, or use the
token's line height.
- If a branch has committed files but no commits, Commits shows "0"
above an empty list. Render the commit list only when there are commits.
- Make the "Files changed" subheading a real heading for screen-reader
navigation.
BB-Thread: [Enhance info panel to thread
navigation](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_6ii952bx6f)
BB-Thread-ID: thr_6ii952bx6f
> AGENT GENERATED
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments
## What was wrong
The pull request row combined five independent facts into one colored
label:
- lifecycle;
- checks;
- review;
- mergeability;
- merge automation.
That caused four problems:
- **Checks appeared twice.** Failing checks were a red ✗ badge and red
"Checks failing" text.
- **Some states had no label.** Passing, missing and unknown checks
showed nothing.
- **"Blocked" was unexplained.** It covered three different GitHub
causes, one of which ("behind main") the Git status row also reports.
- **Labels and colors mixed meanings.** "Approved · Checks pending"
combined review and checks. Amber meant both "waiting" and "good news"
("Auto-merge on", "Queued").
## What changed
`getPullRequestNextStep` replaces `getPullRequestAttentionDisplay`.
- **One next step:** the row names the single next step, in the server's
existing priority order:
- Checks failing
- Changes requested
- Conflicts with main
- Behind main / Blocked by rules / Blocked by hooks
- Checks running
- Review requested / Review required
- Queued to merge
- Ready to merge
- otherwise the checks state (Checks passing / No checks / Checks
unknown)
- **Color only for action:** red marks steps you must act on, and green
marks the one positive step, "Ready to merge". Everything else is muted.
- **Checks in one place:** in the Info panel, checks appear only in the
label; the GitHub icon no longer carries a badge. The composer banner
keeps its badge because it has no room for a label.
- **Checks icons:** checks steps start with a state icon: ✓ passing, ✗
failing, a clock while running, an empty circle for no checks, and a
question mark when unknown. "Checks running" shimmers.
- **Auto-merge:** when auto-merge is on, a small ⚡ icon appears instead
of replacing the label.
- **Same wording everywhere:** the composer banner and the PR status
pill tooltip use the same next step.
No API, CLI, SDK, or wire changes; the server's `attention` value is
unchanged.
## How you verified
The screenshots come from a local Ladle story that renders the
production Branch, Merge base, Git status and Pull request rows, in
light theme at 2×, with the same fixture for every state. The story is
not part of this PR.
Before: `f9a26ab` (get-bb#5006, PR row unchanged at its head `6c9eb71`) ·
After: `4919bdb` (PR head) · Captured at 2×
| PR state | Before | After |
| --- | --- | --- |
| Open · ready to merge | 
| 
|
| Open · checks passing | 
| 
|
| Open · no checks | 
| 
|
| Open · checks unknown | 
| 
|
| Open · checks failing | 
| 
|
| Open · checks pending | 
| 
|
| Open · changes requested | 
| 
|
| Open · review requested | 
| 
|
| Open · conflicts | 
| 
|
| Open · blocked | 
| 
|
| Draft · checks passing | 
| 
|
| Draft · checks failing | 
| 
|
| Draft · no checks | 
| 
|
| Draft · checks unknown | 
| 
|
| Draft · checks pending | 
| 
|
| Draft · changes requested | 
| 
|
| Merged | 
| 
|
| Closed | 
| 
|
- **Tests:**
- `getPullRequestNextStep` covers every attention state, the three
blocked causes, review required vs requested, merged and closed, and
keeps auto-merge out of the label.
- The composer banner test now expects the next step plus the auto-merge
icon.
- **QA:** signed off by the user on the branch app.
- **Follow-ups (P2, not in this PR):**
- Decide whether open PRs without CI should show "No checks" as their
next step.
- Hide the ⚡ icon in a squeezed composer banner.
- Add a render test for the Info panel PR row.
- **Remote CI:** runs on the PR head. Tests, typecheck, and lint were
not run locally.
BB-Thread: [Enhance info panel to thread
navigation](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_6ii952bx6f)
BB-Thread-ID: thr_6ii952bx6f
> AGENT GENERATED
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong The ⌘[ / ⌘] shortcuts from get-bb#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 |  |  | | ⌘⇧P / type "go", fresh window | Mobile · 390×844 |  |  | | ⌘⇧P / type "go", after opening another thread | Desktop · 1440×900 |  |  | Split out of get-bb#4962. Follows get-bb#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]>
## Human comments ## What was wrong Thread search ranked threads by the best bm25 score of any segment, so chatty threads outranked exact titles. On a real workspace, "moss plugins" returned three message-only threads before the thread titled "Moss plugins". This order reaches `bb thread search`, the SDK, and ⌘K's archived results. ## What changed - Threads whose displayed title contains every query word rank first. - Remaining matches are ordered by most recent activity. - A fallback title from the first prompt counts only for threads without a title. - Matching still requires every word somewhere in the thread. - Each thread's excerpt is its earliest matching message, preferring ones with every word. - The all-words search runs once per query and serves both title matching and excerpt choice. - The API, response shape, limits and highlighting are unchanged. ## How you verified - Remote CI passed on 02c4742. [Run](https://github.com/get-bb/bb/actions/runs/37459488310) - Real-data evals on be02de8: the new query passed 13 of 13 cases; the old one passed none. - Both queries found the same number of matching threads in every case. - Speed stayed about the same, within ±15% in both directions. - New unit tests cover title-first order, recency, the fallback-title rule, partial titles, and excerpt choice. - Slop Cop (security, architecture, code quality, performance) on be02de8: no blockers. A synthetic benchmark measured it 30–50% faster than the old query; sharing the all-words search saved up to another 15–20% with identical rows. <details> <summary>Eval details: 4,714 threads, 229,718 segments, median of 7 alternating runs</summary> The expected results were written before any run. Old is base `e710dbd88f`. Both used the server's SQLite settings and the app's limit of 20 per group. | Query | Old: first result | Old | New: first result | New | Old ms | New ms | | --- | --- | --- | --- | --- | --- | --- | | "moss plugins" | 💰 Google Ads spike | fail | Moss plugins | pass | 70 | 66 | | "quick switcher" | Quick switcher in palette | fail | Quick switcher in palette | pass | 7 | 14 | | "coordinator mode" | Moss plugins | fail | Coordinator Mode | pass | 35 | 38 | | "google ads" | 📆 Content strategy and calendar | fail | 💰 Google Ads spike | pass | 9 | 10 | | "plugins blog" | ⏳ Plugins blog post | fail | ⏳ Plugins blog post | pass | 31 | 40 | | "info panel" | Rename child threads to subthreads | fail | Redesign info panel | pass | 29 | 36 | | "thread title" | Quick switcher in palette | fail | Thread title fixes | pass | 96 | 88 | | "moss" | Moss plugins | fail | Moss plugins | pass | 48 | 50 | | "iphone promotional" (archived) | iPhone promotional screenshot | fail | iPhone promotional screenshot | pass | 3 | 4 | | "regression test" | Quick switcher in palette | fail | Dismiss git shelf in session above | pass | 100 | 87 | | "mo" | 📆 Content strategy and calendar | fail | Moss plugins | pass | 95 | 104 | | "in" | Pinned Files: marketplace listing | fail | Dismiss git shelf in session above | pass | 177 | 165 | | "the" | 🌱 Multi-persona website | fail | Test Video Markup with the iPhone | pass | 268 | 222 | </details> 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]>
…-bb#4962) ## 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 |  |  | | ⌘K / type "in" | Mobile · 390×844 |  |  | | ⌘K / "in", arrow to the 6th row before server results arrive | Desktop · 1440×900 |  |  | The back/forward shortcut fixes moved to get-bb#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]>
## Human comments ## What was wrong Queued messages used a size-dependent caret and drag handle to switch between three modes, unlike workflow stack disclosure. ## What changed - Toggle the drawer from the full header or close it with the bottom collapse row. - Show a lighter Queue label and trailing count pill, with hover, press, and keyboard-focus feedback. - Extend the collapse-row background to the drawer edges and behind the composer’s rounded corners. ## How you verified - Chrome for Testing 154 passed desktop keyboard/hover checks and mobile touch toggles. - Matched 2× screenshots confirm drawer alignment and continuous fill behind the composer corners. - [Remote CI passed all 38 checks](https://github.com/get-bb/bb/actions/runs/37461480020), including header toggling and focus after automatic reopening. <details> <summary>Review status</summary> Slop Cop passed the feedback scope `fc69b7e2a3..1fdbf26`: security, architecture, code quality, and performance reported no findings. Desktop keyboard/hover and mobile touch QA passed. The generated registry was updated at `aaa2f9c2d4`. Final head `80c3a40a4a` adds only contextual story coverage; production code is unchanged. The original focus-loss follow-up is resolved by keeping the header mounted. Remote coverage checks focus after automatic reopening. Slim PR retained the necessary diff: production +52/−173, tests +32/−81, stories +14/−4, generated registry +1/−1. Ladle’s Follow-up Prompt Box overview now shows a fitted queue above the real composer alongside the overflowing queue. Header and footer keyboard toggles passed in Chrome for Testing 154. </details> Before: fd31b75 · After: aaa2f9c · Captured at 2× | Queue state | Viewport | Before | After | | --- | --- | --- | --- | | Open | Desktop · 1100×850 |  |  | | Collapsed | Desktop · 1100×850 |  |  | | Open | Mobile web · 390×844 |  |  | | Collapsed | Mobile web · 390×844 |  |  | Collapse-row hover refinement: before `fc69b7e2a3`, after `aaa2f9c2d4`, same 1100×850 viewport at 2×. | Before | After | | --- | --- | |  |  | BB-Thread: [Update message drawer expand collapse logic](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_ub2xrt4qa4) BB-Thread-ID: thr_ub2xrt4qa4 > AGENT GENERATED
## Human comments ## What was wrong getbb.app had no page for people looking for a Superset alternative, so `/compare/superset-alternative` returned Not Found. The homepage spawn sidebar also used `rc-*` animations that were never defined, so its threads never reached "done". ## What changed - `/compare/superset-alternative` is a new comparison page: a hero, four visual sections, a feature table, and a 21-question FAQ. - The FAQ also ships as `FAQPage` structured data built from the same answers. - A "Who builds and maintains bb?" FAQ answer covers the venture-backed team, which most recently worked together at Figma building Figma's plugin platform, and its open development on GitHub. - `compare/$slug` and `guides/$slug` can render Markdown pages, which upcoming comparison and guide pages will use. - Homepage visuals moved into `landing-visuals.tsx` so both pages share them. - The homepage spawn sidebar now finishes its animation and shows "done". - The shared install note reads "Windows, Intel Macs & remote machines", with Windows linking to the latest GitHub release. - `/sitemap.xml` now lists `/compare/superset-alternative`. - The site footer adds a "Compare: bb vs Superset" line under its existing links. - On the page, *bb* is set in bold italics wherever it appears in running text, using Inter's italic face. - The customize section now says what you build is "immediately available wherever you use bb, including your phone." - Comparison pages are now built from one template: a hero with an optional visual, one section tailored to the competitor, then shared pricing, agents, anywhere, and plugins sections with fixed visuals and per-page copy. - The "Built by alumni from" strip moved from under the hero to under the closing install buttons, so the pricing section follows the hero directly. - The shared agents section copy is two lines: "Claude Code builds, Codex reviews, and Cursor writes the release notes. No copying between tools." - The "How do I switch from Superset to bb?" answer now says to ask bb: an agent can add the repo and open each unfinished worktree as a thread. - The cost calculator prices Superset Pro at $20 a month, matching the table and FAQ, instead of the yearly $15 rate. - The shared plugins demo, on the homepage and every comparison page, now shows an agent building a Linear plugin instead of a tasks plugin. - The hero, meta description, and anywhere section now say "check in from your phone" and "answer your agents" instead of "approve". - The table's "partly" mark is a half-filled circle instead of a minus, so it no longer reads as "no". - The "partly" mark is yellow, using the product's `--attention` color, so it no longer shares orange with the "$ Pro" badge. - The agents demo's handoff composer stays inside its pane at narrow widths instead of spilling across the divider. ## How you verified - Chrome for Testing 151, headless: the page renders at 1440×900 and 390×844. - The agents demo stays 520px tall through its whole animation cycle. - The FAQ structured data parses and lists all 21 questions. - The homepage spawn sidebar runs 15 animations on this branch and 0 on main. - One code review found no P0 issues; both P1s are fixed: links to unreleased guides and a CSS comment. - Safari 26.5.2 on macOS passed every check, driven by safaridriver at 1440×1000 and 390×900: - The first paint settles into the hero, and every section appears while scrolling. - The team-size stepper changes the price from $900 to $1,080. - The agents demo stays 520px tall for a full cycle, and the machine packets animate. - A FAQ answer opens on click. - The page survives a hard reload, client navigation to Blog, and Back. - Dark mode renders correctly. - The homepage Windows link and spawn sidebar work. - Neither page throws a runtime error. - A new test checks that the footer links cover every comparison and guide page exactly once. - `/sitemap.xml` on the dev server lists `/compare/superset-alternative`. - The footer line renders in Chrome for Testing 151 and Safari 26.5.2 at desktop and mobile widths, and its link points to the page. - One code review of the sitemap and footer commits found no P0 or P1 issues. - Chrome for Testing 151 and Safari 26.5.2 both render *bb* in bold italics in 44 places, with the italic face loaded. Code like `npx bb-app@latest` stays plain. - The section template renders the Superset page with the same sections, visuals, and copy, in the same order; Chrome for Testing shows no console errors at 1440×900 or 390×844. - The plugins demo settles with all seven Linear rows on one line in Chrome for Testing at 1440×900 and 390×844, with no console errors. - Chrome for Testing 151 shows the new hero and anywhere copy at 1440×900 and 390×844, with no console errors. - The half-filled circle renders on all 10 partial cells of the Superset table at 1440×900 and 390×844. - The yellow mark reads clearly in light and dark mode at 1440×900. - At 860px wide, the agents demo's handoff composer ends 12px inside its pane, where it used to overrun the divider by 32px. - Safari 26.5.2 on macOS re-passed the Superset page and homepage on `43bb05b246`. It covered the first paint to the settled state, a hard reload, client navigation to Blog and back, a FAQ answer, and a full animation cycle with no height change. It found no runtime errors and no overflow at 390px. - In Safari at 860px, the agents demo's handoff composer ends 12px inside its pane. - Dark mode for the yellow mark was checked in Chrome only, because Safari's WebDriver can't switch color schemes. - Remote CI: passed on `43bb05b246`. ### Screenshots Before: `52da28609e` (main) · After: `7ad9c2540c` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | `/compare/superset-alternative`, top | Desktop · 1440×900 |  |  | | `/compare/superset-alternative`, top | Mobile · 390×844 |  |  | | Agents demo, final frame | Desktop · 1440×900 | Page not on main |  | | Machines card, mid-animation | Desktop · 1440×900 | Page not on main |  | | Comparison table | Desktop · 1440×900 | Page not on main |  | | Comparison table | Mobile · 390×844 | Page not on main |  | | FAQ | Desktop · 1440×900 | Page not on main |  | | Homepage install note | Desktop · 1440×900 |  |  | | Homepage install note | Mobile · 390×844 |  |  | | Homepage spawn sidebar, settled | Desktop · 1440×900 |  |  | Footer: Before `7ad9c2540c` · After `b9abb15f0f` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Site footer | Desktop · 1440×900 |  |  | | Site footer | Mobile · 390×844 |  |  | *bb* in prose: Before `b9abb15f0f` · After `0424e90be8` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | "Turn bb into the tool you need" section | Desktop · 1440×900 |  |  | | FAQ, first answer open | Desktop · 1440×900 |  |  | | FAQ, first answer open | Mobile · 390×844 |  |  | Section template and alumni strip: Before `f0131a6a36` · After `efdb9b84b5` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | `/compare/superset-alternative`, top | Desktop · 1440×900 |  |  | | `/compare/superset-alternative`, top | Mobile · 390×844 |  |  | | Closing install section | Desktop · 1440×900 |  |  | Shared agents copy: Before `efdb9b84b5` · After `03f6ce8daa` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Agents section, final frame | Desktop · 1440×900 |  |  | Price basis: Before `dc6aea1775` · After `5d1e410b2c` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Cost calculator, 5 people | Desktop · 1440×900 |  |  | Plugins demo: Before `5d1e410b2c` · After `514b2e6c12` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Homepage "Fully customizable.", settled | Desktop · 1440×900 |  |  | | Homepage "Fully customizable.", settled | Mobile · 390×844 |  |  | | `/compare/superset-alternative` plugins section, settled | Desktop · 1440×900 |  |  | No approval wording: Before `514b2e6c12` · After `40077e479a` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | `/compare/superset-alternative`, top | Desktop · 1440×900 |  |  | | `/compare/superset-alternative`, top | Mobile · 390×844 |  |  | | Anywhere section | Desktop · 1440×900 |  |  | Partly mark: Before `40077e479a` · After `d8c8fec168` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Table rows with a partly mark | Desktop · 1440×900 |  |  | | Table rows with a partly mark | Mobile · 390×844 |  |  | Partly mark color: Before `d8c8fec168` · After `a53d2a0877` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Table rows with a partly mark, light | Desktop · 1440×900 |  |  | | Table rows with a partly mark, dark | Desktop · 1440×900 |  |  | Agents demo at narrow widths: Before `a53d2a0877` · After `43bb05b246` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Agents demo, split open | Desktop · 860×900 |  |  | BB-Thread: [🔥🔥 𝒃𝒃 comparison and guide pages](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_46gxq5dyzh) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
## Human comments ## What was wrong getbb.app had no page for people leaving Vibe Kanban after it shut down, so `/compare/vibe-kanban-alternative` returned Not Found. ## What changed - `/compare/vibe-kanban-alternative` is a new comparison page on the template from get-bb#4896. - The hero says Vibe Kanban is sunsetting, in the words of its own announcement, and shows bb's Tasks board, where any card goes to Claude Code, Codex, or another agent. - The table and FAQ name the Tasks plugin, and moving work over is "Ask bb to do it". - Comparison heroes size their headline in em, so it stays on two lines at every desktop width. - The sitemap and site footer list the page. ## How you verified - Chrome for Testing 154 renders the page at 1440×900 and 390×844 with no console errors or horizontal overflow. - Safari 26.5.2 on macOS passed the Vibe Kanban page on `3de3a5e763`: first paint to the settled state, a hard reload, client navigation to Blog and back, a FAQ answer, and a full animation cycle with no height change. It found no runtime errors and no overflow at 390px. - One code review found one P1 in this layer: the page said Vibe Kanban "shut down", but its announcement says the company shut down and the project continues. It now says "is sunsetting". - Remote CI: pending on `3de3a5e763`. ### Screenshots Before: `43bb05b246` (get-bb#4896 head) · After: `3de3a5e763` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | `/compare/vibe-kanban-alternative`, top | Desktop · 1440×900 |  |  | | `/compare/vibe-kanban-alternative`, top | Mobile · 390×844 |  |  | | Comparison table | Desktop · 1440×900 | Page not on base |  | BB-Thread: [🔥🔥 𝒃𝒃 comparison & guide pages](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_46gxq5dyzh) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong getbb.app had no page for Conductor users looking for an alternative, so `/compare/conductor-alternatives` returned Not Found. ## What changed - `/compare/conductor-alternatives` is a new comparison page on the template from get-bb#4896. - The hero shows agents running on a Mac, a Windows PC, a Linux server, and the bb mobile app. - "Keep working after you close your laptop" covers always-on machines, the mobile app, and browser access. - The table marks features that need a paid Conductor plan and answers its run script and checkpoint questions. - The FAQ covers switching, and moving work over is "Ask bb to do it". - The sitemap and site footer list the page. ## How you verified - Chrome for Testing 154 renders the page at 1440×900 and 390×844 with no console errors or horizontal overflow. - Safari 26.5.2 on macOS passed the Conductor page: first paint to the settled state, a hard reload, client navigation to Blog and back, a FAQ answer, and a full animation cycle with no height change. It found no runtime errors and no overflow at 390px. - One code review found one P1 in this layer: the multiplayer FAQ and table row say a team can share one bb, which would run everyone's agents on one machine's Claude and Codex logins. Held for a product decision. - Remote CI: pending on `98078416eb`, which merges the Vibe Kanban fix from get-bb#5017. ### Screenshots Before: `b01a4f5be4` (Vibe Kanban layer head) · After: `71bb244d4c` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | `/compare/conductor-alternatives`, top | Desktop · 1440×900 |  |  | | `/compare/conductor-alternatives`, top | Mobile · 390×844 |  |  | | Comparison table | Desktop · 1440×900 | Page not on base |  | BB-Thread: [🔥🔥 𝒃𝒃 comparison & guide pages](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_46gxq5dyzh) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…5002) ## Human comments ## What was wrong Local Android test builds reused the production app identity, so development installs could conflict with regular bb. Threads lacked a single documented command for building and delivering a standalone dev APK. Native and React splash layers also needed matching branding, and translucent splash shading darkened during native image generation. ## What changed - Add `pnpm mobile:apk:dev`, backed by the Turbo `@bb/mobile#build:android:dev` task. It produces `apps/mobile/build-output/bb-dev.apk` with an embedded Release bundle and debug signing; ARM64 is the default, with `-- x86_64` for Intel emulators. - Use the name **bb dev**, package `app.getbb.mobile.dev`, and orange launcher icon, favicon, and light/dark splash logo. Preserve the existing icon artwork and padding, and encode splash shading in RGB with silhouette transparency. Both native and React splash layers select the dev artwork. - Skip production Firebase configuration and HTTPS app-link registration in dev builds. Validate variants and arguments, detect standard macOS SDK/JDK paths, regenerate native files, and reject concurrent builds in one checkout. - Document prerequisites, installation, variant configuration, and per-thread artifact delivery in the mobile README, source development docs, CLI guide, and CLI skill. ## How you verified - `pnpm mobile:apk:dev`: final ARM64 APK build passed. - `pnpm exec turbo run typecheck lint --filter=@bb/mobile`: passed; lint reports six existing warnings and zero errors. - Shell syntax and direct checks verified invalid arguments, concurrent-build rejection, production/dev identity, Firebase isolation, and matching native/React splash configuration. - Installed and launched earlier builds on an Android emulator alongside regular bb; captured the orange native-to-React splash handoff. The emulator disconnected before a launch check of the final shading correction. - Inspected all 11 final packaged splash assets covering native densities/themes and the React overlay; confirmed the correction removed dark opaque pixels. Checked launcher dimensions, alpha, and white padding against the original assets. - `git diff --check`: passed. > AGENT GENERATED
## Human comments ## What was wrong Opening Browser from a regular thread's New tab initially focused the URL bar, but saving the new tab's desktop ownership triggered a window-identity check that unmounted and recreated the toolbar after consuming its focus request. This lost focus and any text already typed. Plugin panels had a separate gap: they never requested address focus. Submitting a URL also cleared the editing state without moving keyboard focus out of the input. ## What changed Resolve the desktop window identity before mounting a new browser toolbar, so saving ownership preserves the focused input and its draft. Plugin panels now send and consume address-focus requests for empty browser tabs. Submitting a valid address blurs the input and focuses the native page once its view is visible, with guards for hidden or inactive panes, load errors, and open dialogs. ## How you verified - Reproduced and verified both regular-thread and plugin-panel flows in isolated Electron desktop builds. In the regular thread, confirmed the persisted desktop owner no longer drops focus or partially typed `google.co`; completed the URL and navigated. Native page evaluation confirmed focus after submission. - Regression coverage fails before each fix and passes afterward: ownership persistence preserves focus and draft text; plugin panels request address focus; submission from blank and existing pages releases the input and requests native focus. - Final focused run: `pnpm exec turbo run test --filter=@bb/app -- src/components/secondary-panel/BrowserTabDeck.browser-view-ordering.test.tsx src/components/secondary-panel/BrowserTabContent.chrome.test.tsx src/components/plugin/PluginPanelRightPanelHost.test.tsx` — 48 tests passed. - Final `pnpm exec turbo run lint typecheck --filter=@bb/app` and `git diff --check` passed. The full app suite passed before the ownership follow-up: 5,366 tests passed, 5 skipped. > AGENT GENERATED
## Human comments ## What was wrong On the compact home screen, a long draft with attachments could push the top of the composer under the header when the mobile keyboard was open. The editor's viewport-based height cap exceeded the space available in the bottom-aligned composer region. ## What changed Measure the compact home's available space and cap the editor height after accounting for the header and composer controls. Tall drafts scroll within the editor while the composer stays below the header. Add regression coverage and a compact-home story with a long draft in a short viewport. ## How you verified - `pnpm exec turbo run test --filter=@bb/app -- RootComposeCompactHome.test.tsx PromptBoxInternal.test.tsx`: 166 tests passed across both files. - `pnpm start:worktree`: production build succeeded, server returned HTTP 200, and host daemon started. - Manual sanity check available at https://ymichael--24055.getbb.app: open the home composer on a phone, paste a long draft, attach a screenshot, and open the keyboard. Confirm the top remains below the header and the draft scrolls internally. This device check has not been performed in this session. > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong Two deadlines below core's 70-second voice budget cut off long transcriptions: 1. **Codex service.** It supplied a 10-second transcription deadline (11-second host RPC deadline), so a Codex response arriving later failed with `Codex request timed out after 10000ms`. 2. **bb Connect.** Both Connect HTTP paths (the worker-held relay used in production, `apps/connect/src/relay.ts`, and the TunnelDO proxy, `apps/connect/src/tunnel-do.ts`) give every request a fixed 30-second response-header deadline, armed before the request body uploads. Core sends the voice route's response headers only after transcription finishes, so any remote transcription taking more than about 30 s, including upload, returned `504 bb connect: timed out waiting for the tunnel client`. That happened even with core and the provider allowing longer. Raising the Codex budget alone would still leave remote users capped at 30 s. Reproduction and root-cause report for the Codex deadline: https://get-bb.github.io/reports/issues/5016.html ## What changed | Layer | Before | After | |---|---|---| | Codex transcription request (`TRANSCRIBE_TIMEOUT_MS`) | 10 s | 65 s (matches bb cloud's 65 s) | | Codex host RPC (`+ HOST_CALL_GRACE_MS`) | 11 s | 66 s | | Core voice task (`AI_TASK_TIMEOUT_MS.voice`, per service) | 70 s | 70 s (unchanged) | | SDK / CLI default request timeout | 75 s | 75 s (unchanged) | | Connect response head for `POST /api/v1/system/voice-transcription` | 30 s | **90 s** | | Connect response head for every other request, port shares, and non-POST requests to the voice path | 30 s | 30 s (unchanged) | The 90-second Connect budget is core's 70 s plus 20 s for uploading the recording. The timer still starts before upload (get-bb#4832), and core accepts up to 25 MB. Each deadline sits above the one it wraps: 65 < 66 < 70 < 90. The new `apps/connect/src/response-head-timeout.ts` is shared by both Connect paths, so they can't drift apart. No change to the server/daemon or tunnel wire protocol, schemas, stored data, credentials, or headers. Only the gateway's own timer changes. ## How you verified - **Unit regressions, failing before and passing after.** In `relay.test.ts` (worker relay) and `worker.test.ts` (TunnelDO proxy): a voice response head at 85 s now relays a 200 transcript, and no head by 90 s still returns 504 and closes the relay. On the previous head, all 4 failed because the gateway settled with a 504 at 30 s. Controls: a GET of the voice path, a port share at the voice path, and another upload keep the 30 s deadline. The Codex regression (endpoint answering at 64 s through the real service and host client) failed with `Codex request timed out after 10000ms` before the fix. - **End to end through a local Connect gateway.** `wrangler dev --local` ran the real Connect worker and TunnelDO with a throwaway local D1 and synthetic credentials. The real `@bb/tunnel-client` `TunnelSession` dialed it, an origin stood in for the voice route, and visitors authenticated with a machine credential. All 5 cases ran concurrently: | Case | Previous head (relay) | This head (relay) | This head (TunnelDO path) | |---|---|---|---| | Voice, 0.5 s (normal latency) | 200 at 1.5 s | 200 at 1.5 s | 200 at 1.5 s | | Voice, 60 s (2.5 MB upload) | **504 at 31 s** | **200 at 61 s** | 200 at 61 s | | Voice, never answers (true timeout) | 504 at 31 s | 504 at 91 s; origin request cancelled | 504 at 91 s | | Other route, 45 s (control) | 504 at 31 s | 504 at 31 s | 504 at 31 s | | Origin received gateway/visitor credentials or cookies | none | none | none | - `pnpm exec turbo run test typecheck lint --filter=@bb/connect --filter=bb-plugin-provider-codex` passes: Connect 8 files and 200+ tests, provider-codex 33 files. **Limits.** This does not fix get-bb#5016's separate report that a 19-minute recording comes back truncated after about 10 minutes of text with no error. That is transcription completeness, not a deadline. Nothing ran against a live provider or the production gateway. In local workerd, a visitor that disconnects before the response head does not cancel the origin request in either version; before, the gateway's 30 s timer ended it, and now core's own 70 s per-service budget bounds it. In automatic mode with several ready voice services, core's budget applies to each service in turn, so a fallback chain can still exceed 90 s through Connect. Fixes get-bb#5016 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_a3berl2smuwl3z31 sha=issue-5016 kind=summary --> --------- Co-authored-by: SawyerHood <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong The Codex provider excluded the existing disabled-reasoning level from its capability ladder and display descriptors. Its outgoing effort mapper also converted that level to null, so the real session configuration builder threw instead of forwarding it. Custom models inherit the provider ladder, making this both a selection and session-translation defect. [Reproduction and root-cause report](https://get-bb.github.io/reports/issues/4958.html). ## What changed - Advertise `none` in the existing Codex ladder and descriptors, and pass it through the outgoing effort mapper. - Extend the real session configuration and custom-model discovery regressions; preserve the `medium` default and `ultracode` rejection. - Update the thread runtime-config regression: its expected supported-level error list now includes `none` (this fixed the Linux and Windows `server-2` CI failures on `fe38a2b`). - Five files, **22 changed text lines: 16 additions + 6 deletions** (`git diff --numstat origin/main`). No dependency, generated file, stored-data, protocol/schema, permission, packaging, or release changes. Existing UI, SDK, and CLI option surfaces consume the same provider registration; no new flags or settings. ## How you verified - Repeated both expected regression failures in two clean trusted checkouts at `be68bf357b3428161bd83f57dda427a9b58094ca`, using a test-only patch. Session configuration throws for `none`; custom-model efforts omit it. - Started the fix branch from newer trusted main `10d78d6be09d77ad9f8979468e9120b1c48edb5c` and confirmed the session regression still fails before production edits. - `pnpm exec turbo run test --filter=bb-plugin-provider-codex`: **348 tests passed**, including the repaired session regression. - `pnpm exec turbo run test --filter=@bb/server -- test/system/execution-options.test.ts test/threads/thread-reasoning-policy.test.ts`: **37 tests passed**, including custom-model discovery. - `pnpm exec turbo run lint typecheck --filter=bb-plugin-provider-codex --filter=@bb/server`: passed; `git diff --check`: passed; no binary changes. - End to end at the real Codex boundary (codex-cli 0.160.0, isolated `CODEX_HOME`, custom `model_provider` pointed at a local fake Responses endpoint, model `custom-nonreasoning`): bb's `buildCodexConfig` output went to `codex app-server` `thread/start` → `turn/start`. - Before (main `models.ts`): `buildCodexConfig` throws `Codex does not support the none reasoning level.`, and no request reaches the endpoint. - After: `thread/start` reports `reasoningEffort: "none"`, the turn completes, and the captured `POST /v1/responses` body carries `reasoning: {"effort":"none","summary":"auto"}`. Control run with `medium` sends `{"effort":"medium"}`. - Review follow-up on `534d8d0`: `pnpm exec turbo run test --filter=bb-plugin-provider-codex` (32 files) and server `thread-runtime-config`, `execution-options`, `thread-reasoning-policy` pass. - No paid/live provider endpoint or UI turn was exercised; whether a given hosted model accepts `none` remains model-dependent. Catalog models still show only the efforts Codex `model/list` reports. Fixes get-bb#4958 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_ss5jjdu1muvvnxc4 sha=issue-4958 kind=summary --> --------- Co-authored-by: SawyerHood <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong GitHub account `aotd1` was absent from the contributor allowlist, so the PR gate would close their pull requests. ## What changed Added `aotd1` to `.github/APPROVED_CONTRIBUTORS`. Approval takes effect when this change merges into `main`. ## How you verified Verified the canonical login with the GitHub API, checked the base branch allowlist and PR gate behavior, confirmed the diff adds only this login exactly once case-insensitively, and ran `git diff --check`. CI and SlopCop review are skipped for this data-only change. > AGENT GENERATED
…5028) ## Human comments ## What was wrong Scrolling through long threads on iPhone and iPad could move the text being read and snap again when scrolling settled. Timeline virtualization replaces estimated row heights with measured heights as rows mount above the viewport. Its scroll-position corrections interfere with iOS WebKit momentum scrolling, so deferring those corrections leaves visible jumps. ## What changed Disable timeline virtualization on iOS/iPadOS WebKit and keep every loaded row mounted. Desktop and Android retain virtualization. Extract the existing iOS detection into a shared helper also used by the keyboard-dismissal viewport workaround, including detection of iPads using desktop-style browsing, and document the platform behavior in the CLI app-settings reference. This trades increased memory and rendering work on long loaded iOS timelines for stable scrolling. There are no server/daemon wire or public API changes. ## How you verified - `pnpm exec turbo run test --filter=@bb/app -- ios-webkit.test.ts ThreadTimelineRows.windowing.test.tsx useMobileVisualViewportHeight.test.tsx` — 26 tests passed across three files. Includes an iPhone regression case asserting all 59 rows remain mounted without virtual spacers, plus browser-detection and keyboard-viewport coverage. - `pnpm exec turbo run typecheck --filter=@bb/app` — passed from Turbo cache. - `git diff --check origin/main...HEAD` — passed. - Device-level iOS momentum scrolling has not been manually verified in this PR preparation. > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong About 5% of prompts long enough to title never got a generated title. In the last 30 days on one server, 401 runs were titled, 13 failed and 5 timed out. Every failure was bb cloud's gateway timing out. The gateway sent `AI_MODELS` to OpenRouter as one request with a fallback list (`model` plus `models`). The primary, `inception/mercury-2.5`, returned 200 and then never finished the body on 14 of 50 direct calls. OpenRouter falls back only on errors, not slowness, so with the gateway's exact request it waited about 10.6s on a hung Mercury call before switching to Gemini. The gateway gives up at 4s, so 3 of 25 requests failed as "the model did not answer in time". Latency probe (25 calls per configuration, gateway request shape, real title prompt; times in ms): | Request | OK | p50 | p90 | max | |---|---|---|---|---| | Gateway's old request | 25/25 | 406 | 10,655 | 10,674 | | mercury-2.5 alone | 36/50 | ~370 | ~1,000 | hung (cut off at 15s) | | gemini-2.5-flash-lite alone | 50/50 | ~510 | ~690 | 1,229 | | nemotron-3.5-lightning alone | 50/50 | ~175 | ~460 | 543 | The privacy settings (`zdr` / `data_collection: deny`) and `reasoning: none` made no difference. ## What changed - Completion requests try one model at a time, with a fresh **3-second timeout per model**. The gateway shares transcription's retry loop and preserves accounting across attempts. - Production and staging use Gemini 2.5 Flash-Lite first, then Mercury 2.5. Nemotron is removed because probes found it invented titles for URL-only prompts. - The two model attempts have a combined timeout budget of approximately **6 seconds**. The bb cloud plugin's completion HTTP timeout increases to **7 seconds**, and the server's per-service timeout for titles and commit messages increases to **8 seconds**, leaving room for request overhead. - Timeout logs record the attempted model instead of null. The gateway changes require deployment; the outer timeout changes also require the updated bb server and bb cloud plugin. Slow requests can now wait longer during title generation and managed-worktree provisioning. ## How you verified - `pnpm exec turbo run test --filter=@bb/ai-gateway --filter=bb-plugin-bb-ai`: 35 gateway tests and 24 plugin tests passed. Coverage includes a hanging primary model followed by a successful fallback with a fresh signal, billing, timeout logging, and the plugin's 7-second request timeout. - `pnpm exec turbo run test --filter=@bb/server -- test/ai/ai-tasks.test.ts`: 14 tests passed. - `pnpm exec turbo run lint typecheck --filter=@bb/ai-gateway --filter=bb-plugin-bb-ai --filter=@bb/server`: passed all available tasks. - Formatting and `git diff --check` passed. - Earlier live probe of the retry scheme, using the previous 2-second-per-model settings: 40/40 requests succeeded, p50 504ms, p90 686ms, max 2,411ms. One needed the fallback. The final 3-second settings have not been live-probed or deployed in this update. > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong The compact sidebar drawer is `min(76vw, 320px)` wide, which is 296px on a 390px phone. A rail-style navigation plugin (the `experimental_sidebarNavigation` slot) draws its icon strip inside that drawer and takes 60px of it on touch devices, leaving 236px for the thread list. Thread titles truncate after about 16 characters. ## What changed - `apps/app/src/components/ui/sidebar.tsx`: the compact drawer is now `min(86vw, 360px)`. On a 390px phone that is 335px, leaving a 55px strip of the thread visible to tap for dismissal. The pixel cap moves into `SIDEBAR_MOBILE_MAX_WIDTH_PX`, so the CSS width and the JS width used by the swipe gestures come from the same two constants. - `plugins/plugin-api-docs/src/wireframes.tsx`: the Plugin Guide's compact navigation wireframe mirrors the new fraction. - `apps/app/src/components/ui/sidebar.test.tsx`: the expected open offset follows the new cap. The wider drawer applies to every compact viewport, not only when a rail is present; the host cannot tell whether a navigation plugin draws one. The right panel shelf (`--secondary-panel-width-mobile`) keeps `min(76vw, 320px)`. No plugin API, CLI, configuration, or server/daemon wire change. ## How you verified - `vitest run src/components/ui/sidebar.test.tsx src/components/layout src/components/sidebar src/components/secondary-panel` in `apps/app`: 73 files, 715 tests pass. Run directly because the `@bb/app` test script's PWA icon check reports the committed icons as out of date on the local machine before vitest starts. - `pnpm exec turbo run typecheck lint --filter=@bb/app` passes. - `pnpm exec turbo run test typecheck --filter=bb-plugin-plugin-api-docs` passes (13 files, 75 tests). - Drove an isolated source dev app in headless Chrome at 390×844 with touch emulation, seeded threads, and a rail-style navigation plugin installed. Measured the open drawer before and after: 296px → 335px wide, thread list beside the rail 236px → 275px, and the inset translate matches the drawer width in both. - Not verified: a physical phone, and iOS Safari. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[email protected]>
## Human comments ## What was wrong Loading older messages could move the reader to a different part of the conversation. The saved anchor could outlive its request and apply on an unrelated render. Full-app reproduction also exposed two additional causes: inserting a page during iOS touch/momentum scrolling, and subsequent windowed-row measurements changing the virtual content height. Native Safari swipes on an 80-turn fixture jumped from around Checkpoint 74 to Checkpoint 3 and cascaded through multiple older pages. ## What changed Fetch older history ahead of time, then commit after touch ends and scrolling has been idle for 200 ms. Capture the current visible row immediately before the synchronous page update and pin it in the existing timeline virtualizer. Preserve its screen coordinate while virtual heights settle, for up to 500 ms; new touch, pointer, wheel, keyboard, or explicit navigation immediately releases that hold. Use the height delta fallback when there is no measurable row. Scope anchors to their update and clear them on failure/cancellation instead of consuming them on unrelated shell renders. Keep request overlap protection and abort a deferred commit when the load control unmounts. ## How you verified - Full source app, server pagination, real timeline renderer/windowing, and native Maestro swipes in iOS 26.5 Simulator Safari. Used an isolated database with 80 synthetic turns. This supersedes the initial isolated non-windowed reproduction; no physical iPhone was used. - Tested the first older page, which transitions the compact initial history into windowing, and a subsequent page with windowing already active. Each added 40 rows with 21 mounted afterward. Visible anchors stayed at exactly the same screen coordinates: Checkpoint 73 at -100 px and Checkpoint 53 findings at -119 px (0 px drift for each). The second test started from a scripted reading offset and triggered pagination with a native swipe. - Native composer focus and keyboard dismissal also preserved the reading position. Captured before/after recordings and screenshots, plus DOM telemetry. Evidence is linked in the originating BB thread. - 122 relevant tests passed across 11 files, covering scroll preservation, request success/failure/empty/cancellation, delayed commits, virtual measurements, interruption by new user input, final-page unmount, windowing, and pending-interaction/footer behavior. New regressions fail against the earlier PR implementation and pass with this fix. - `pnpm exec turbo run lint typecheck --filter=@bb/app` passed (249 existing lint warnings, no errors); `git diff --check` passed. ## Rebase and CI follow-up Rebased onto `origin/main` at `e3b8caa22c`. The Windows app-3 failure came from a test assigning `scrollTop` without dispatching user scroll input while initial bottom-restoration animation frames were still queued. Settle initialization, dispatch wheel and scroll events, and advance fake timers through pagination and subsequent frames so the last-page reading-position assertion is deterministic. Verified 397 tests across 42 files with shuffled seed 4721 and two workers; app lint/typecheck passed (250 existing warnings, no errors). The original test race was reproduced locally before the fixture repair. Production behavior is unchanged by this follow-up. Fixes get-bb#4793 > AGENT GENERATED
…5344) ## Human comments ## What was wrong Browse cards for installed plugins showed only "Built in", "Installed" or an install count. A plugin that was installed but turned off looked like it was running. Off-by-default plugins such as Agent Annotations and Prompt Library could only be turned on from the Installed tab or the detail page. ## What changed - Browse cards for installed plugins now show the on/off switch. - It is the same switch and enable action that the Installed tab and plugin detail pages use. - The existing label and the hover-to-uninstall action on installed cards stay as they are. - Plugins that are not installed are unchanged. ## How you verified - Remote CI passed on `3983e3bf4`: 18 passed and 10 skipped. [Run](https://github.com/get-bb/bb/actions/runs/38081727595) - A new BrowsePluginsTab test checks that an installed plugin that is off shows an unchecked switch, and that toggling it calls the enable endpoint. It fails without the change. - A plugin that is not installed shows no switch. - In the app (headless Chrome 155, bb Browser Automation), toggling Agent Annotations on from its browse card enabled it on the server. - Slop Cop on `3983e3bf4` (security, architecture, code quality, performance): no P0/P1 findings. Slim-pr found nothing to remove. ### Follow-ups (P2, not in this PR) - The test should also cover a plugin whose catalog id differs from its installed id, such as docs and `simple-notes`. - Each installed card looks up the plugin list on its own. A single lookup in the grid would be cheaper with many installed plugins. ### Browse cards for installed plugins Before: 3912f4a (main) · After: 3983e3b · Captured at 2×. Fixture: a fresh instance with Drafts turned off, and the community plugin Agent Graph installed and turned off. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Browse / BB Official shelf | Desktop · 1440×900 |  |  | | Browse / BB Official shelf | Mobile · 390×844 |  |  | | View all BB Official | Desktop · 1440×900 |  |  | | Community plugin turned off (Agent Graph) | Desktop · 1440×900 |  |  | | Agent Annotations after toggling on | Desktop · 1440×900 | No switch on base |  | BB-Thread-ID: thr_kxipfsmu7x > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong Two Windows npm-shim issues remain after get-bb#4661. `probePiVersion()` uses `execFile("pi", ["--version"])`, which cannot launch the npm `pi.cmd` shim and can report `ENOENT` despite Pi being installed. The RPC launcher can execute that shim through `cmd.exe`, but the intermediate shell does not forward BB's extra stdio descriptors 3 and 4; the extension then fails with `Unsupported fd type: UNKNOWN`. These were reproduced with BB 0.45.0 and Pi 0.85.1, and the version-probe issue also reproduces with Pi 1.1.0. The unchanged probe is visible in the [branch base](https://github.com/get-bb/bb/blob/81f98d635d98e5c6f97e56362cfb9f4fbe8cb6fe/plugins/provider-pi/src/bridge/provider-maintenance.ts#L132-L145). ## What changed - Keep `resolvePiLaunch()` as the original configuration resolver. Installation identity, executable metadata, cache keys, and npm/Bun maintenance continue to describe Pi, not its Node interpreter. - Add a separate provider-local process-launch resolver, used only by the version probe and RPC spawn. On Windows, unwrap recognized npm Node `pi.cmd` shims into Node plus the validated package CLI. Resolve against the child's environment/cwd, prefer sibling `node.exe`, otherwise resolve Node from the child's PATH, and preserve configured prefix arguments. - Support both global npm prefixes and local `node_modules/.bin` layouts. Validate manifest/bin contents and physical CLI containment; only accept standard npm shim templates targeting that manifest CLI. Custom wrappers remain unchanged, including custom files named `pi.cmd` beside a valid Pi package. - When the shim has no sibling `node.exe`, look up `node` with `.JS` removed from `PATHEXT`, as the npm shim does, so a `node.js` file in the thread's working directory is not chosen as the Node executable. - Keep ordinary `node:child_process` `execFile` for probing, including its existing 15 s timeout, stdout-only parsing, output bound, and failure diagnostics. RPC launches retain both the ordinary stream and the extra bidirectional extension channel. - Retain real-process probe/error tests, npm-layout/manifest/bin/wrapper tests, native Windows extra-FD regressions, installation-identity assertions, and default npm-shim model/list tests using the real injected extension. Following review feedback, this PR no longer introduces an SDK export or version bump. The earlier SDK/docs changes and unrelated attachment-preview fix have been removed. The resulting diff is confined to `provider-pi` and its `which-command` lockfile entry. No host protocol, CLI, user-facing configuration, or installed-plugin changes. ## How you verified Linux: ```sh pnpm exec turbo run lint typecheck test prepare:bundled --filter=bb-plugin-provider-pi --concurrency=2 node .github/workflows/check-plugin-sdk-version.mjs node .github/workflows/check-version-lockstep.mjs git diff --check ``` The final Turbo run passed **11/11 tasks**: **233 tests passed, 7 skipped**, plus lint, typecheck and bundled preparation. Windows-only tests are skipped on Linux. Both accepted npm templates and LF/CRLF handling are covered; custom-wrapper tests retain a valid npm target while injecting additional commands, so they test actual wrapper rejection rather than merely a mismatched target. Native Windows, Node **24.18.0**: bundled the final upstream implementation into a temporary standalone module without installing dependencies or modifying the running BB service. Global and local canonical npm fixtures verify version probing/install-gate success, original `pi.cmd` installation identity, configured arguments, custom-wrapper preservation, ordinary RPC, and descriptor 4 → CLI → descriptor 3 round trips. ```text global: original Pi identity + plain execFile probe/install gate + explicit shim/prefix + RPC/fd4/fd3 PASS local: original Pi identity + plain execFile probe/install gate + explicit shim/prefix + RPC/fd4/fd3 PASS Installed Pi version: 1.1.0 installation identity: pi.cmd Installed Pi live catalog: 31 real BB extension extra pipes and refresh PASS (automatic user extensions disabled) ALL SIMPLIFIED WINDOWS CHECKS PASSED ``` The live smoke uses the machine's existing Pi **1.1.0**, `--no-session --no-extensions`, and an explicit temporary BB extension. An initial run with automatically loaded user extensions timed out; disabling those extensions isolated this launch fix and passed. No model prompt or full thread turn was sent, no native session was persisted, and installed providers/configuration were not changed. Windows regressions were exercised through equivalent standalone bundles, not a full native Windows Vitest run. CI and review still validate integration before merge. Fixes get-bb#5332 > AGENT GENERATED --------- Co-authored-by: Sawyer Hood <[email protected]> Co-authored-by: Claude Code <[email protected]>
## Human comments ## What was wrong The Pi provider finalized turns on `agent_end` and ignored `agent_settled`. Pi can still perform native overflow recovery or drain follow-up work after an `agent_end` without `willRetry`, so BB could complete the turn before that work finished. Structured assistant `aborted` outcomes, and errors without `errorMessage`, could also be reported as successful. Both behaviors are present in BB 0.46.0 and upstream base [`e9ad6b0`](https://github.com/get-bb/bb/blob/e9ad6b0e3473628f96fa98378cf8528aac8984d2/plugins/provider-pi/src/bridge/rpc-session.ts#L549-L607). ## What changed - Use authoritative settlement on verified stable Pi 0.84.0+ runtimes; retain the legacy event path for older or unrecognized versions. - Carry run-generation and checkpoint snapshots through the private extension pipe. This preserves A's outcome when an asynchronous settlement extension starts B before A's stdout settlement, and prevents native continuation attempts from opening separate BB turns. - Classify structured interruptions and exhausted required overflow recovery as failures. Cancelled optional compaction after a successful response does not change that response into a failure. - Deliver one terminal boundary, without duplicating text or token usage. Missing private settlement identities fail closed instead of completing another run. - Add RPC, translator, bridge subprocess-fixture, and actual Pi runtime lifecycle regressions. No personal autonomy prompt, automatic `continue`, additional retry loop, tool replay, live-provider reload, public SDK, CLI, or server/host protocol change. Native retry policy and explicit Stop/permission handling remain in place. ## How you verified - Upstream baseline: 206 tests passed, typecheck and lint passed; one existing Bun-only test skipped. - Ten new settlement/classification regressions fail against the unchanged production sources and pass with the fix. - Independent review found the extension-start ordering and optional overflow cases. Their three new regressions fail against the initially reviewed implementation and pass after correction. - The real Pi 0.84.0 regression uses `createAgentSession`, its actual extension runner and lifecycle methods, isolated in-memory settings/session/credentials, and `allowModelNetwork: false`. It runs the BB extension with an adapted FD transport and verifies B starts inside A's asynchronous settlement handler before A's public settlement. It asserts per-run checkpoints/outcomes, B's processing state, independent boundaries, and cumulative usage. This is an in-process runtime regression, not a live model or full CLI subprocess test. - `pnpm exec turbo run prepare:bundled typecheck test lint --filter=bb-plugin-provider-pi --concurrency=2`: 11 successful tasks; **285 tests passed**, one existing Bun-only test skipped. Provider bundle preparation passed. - Explicit-path `pnpm exec oxfmt --check` and `git diff --check`: passed. Settlement ownership relies on Pi's CLI-first extension loading, verified in the pinned 0.84.0 runtime. A reversed-handler test fails closed when another extension has already started an active run; arbitrary nested SDK/wrapper registration order is not claimed. The supported 1.x capability classification and bridge behavior are covered by fixtures, not a second real-runtime run. > AGENT GENERATED --------- Co-authored-by: Sawyer Hood <[email protected]> Co-authored-by: Claude Code <[email protected]>
…et-bb#5387) ## Human comments ## What was wrong Plugins had no supported way to render a multi-line block inside an assistant reply. `messageDirective` is single-line leaf syntax and stays literal until it closes, so a plugin that wanted generative UI had to scrape rendered `pre > code` elements and overlay its own UI (get-bb#5268). Separately, the built-in `inline-vis` plugin showed HTML in a fixed 224px card and Markdown in a box that scrolled inside the thread. ## What changed **New slot: `app.slots.experimental_codeFenceRenderer({ id, languages, component })`.** A plugin claims fence languages and renders those fenced code blocks in assistant and nested-agent message Markdown. The first two commits are @ComicBit's prototype from get-bb#5268 (registration validation, slot store, plugin guide card, test harness support). The third commit rebuilds the rendering side, and the contract differs from the issue's proposal: - `status: "streaming" | "closed" | "unclosed"` replaces `complete`, so a renderer can tell a block that is still being written from one the reply never closed. - The component for a fence is mounted once and kept for the whole reply; there is no remount when the fence closes or the reply finishes. The Markdown tree renders a placeholder, and a host around the message's Markdown (`CodeFenceRendererHost`) owns the component and portals it into a container that follows the placeholder from the streaming tail to the settled region. Where the browser has `Element.moveBefore`, an iframe inside the component is not reloaded by that move; elsewhere component state survives and the iframe reloads once. - A fence is identified by the source offset of its opening delimiter, the same way images are, so the settled text is not re-parsed to number fences. `index` (ordinal among fences of the same language) is computed at the message level. - A language claimed by two plugins renders BB's code block and logs a warning, matching `messageDirective`. - A throw affects one fence only, and BB tries the component again when that fence's `code` or `status` changes, so a renderer that fails on a half-streamed body recovers on the next chunk. `PluginSlotMount` gains `crashResetKey` for this; slots that do not pass it behave as before. - `mermaid` stays a core special case inside `Original`, because it renders on every Markdown surface and this slot is scoped to messages. `@get-bb/plugin-sdk` goes to 0.6.40. The plugin guide card, the authoring skill references, `bb-guide-plugins.md`, and the `docs/api_to_audit.md` entry describe the new contract and list what to audit before stabilizing. No server/daemon wire fields change. **inline-vis** (fourth commit): - An HTML file shown with `::inline-vis{file="…"}` is now a borderless sandboxed frame on the thread background that fits the page's height and follows bb's theme variables live, with a hover action to open the file. `preparePreview` returns the file's `content` and `sha256` for this. - A fenced `inline-vis` code block whose body is an HTML page renders the same way through the new slot, with no file. A status line shows while the block streams, and a hover action reveals the source. - A Markdown file shows in a card with its file name, copy and open actions, and a preview that expands in place ("Show more") instead of scrolling inside the card. - The bundled skill teaches both forms, the layout rules, and the theme variables. Behaviour changes for existing users of the directive: - An HTML page used to get a fixed 224px frame; it now fits its content and `height` is a cap. - `height` accepts 80–2000 (was 120–1200). For Markdown it is the preview height, 256px by default (was a 224px scrolling box). - The header toggle that hid a Markdown card, and its remembered `bb.inline-vis.collapsed` preference, are removed. ## How you verified - `pnpm exec turbo run typecheck lint --filter='...[origin/main]' --continue`: 137 tasks pass. - `pnpm exec turbo run test` for `@bb/app`, `@get-bb/plugin-sdk`, `bb-plugin-inline-vis`, `bb-plugin-plugin-api-docs`, `@bb/templates`, `@bb/domain`, `bb-plugin-bb-guide`: all pass (5,731 app tests, 369 SDK, 51 inline-vis, 73 plugin guide, 47 templates, 230 domain, 7 bb-guide). - Server plugin suites (`builtin-registry`, `plugin-app-bundle`, `bb-official-generator`, `sdk-compat`, `plugin-authoring-docs`): pass. - `node apps/app/scripts/check-bundle-budget.mjs` after building `@bb/app`, `node .github/workflows/check-plugin-sdk-version.mjs`, and `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs`: pass. - New tests in `markdown-code-fence-renderers.test.tsx` cover: one component instance and its state kept from the first streamed line through the tail-to-settled move to the finished reply; `index` across the two streaming regions; `status` for unclosed, closed, list-nested, blockquoted, tilde, and over-indented fences; a crash isolated to one fence and retried when its code changes; a contested language falling back to BB's code block; and claims surviving the sanitized HTML pipeline. - Live, in a worktree dev app with a Claude Haiku thread: a reply containing an `inline-vis` block, an HTML file directive, and Markdown file directives rendered in light and dark themes and at phone width. During a streamed reply the status line showed, the page's iframe was inserted once, moved from the streaming tail to the settled region without being disconnected, and kept its document to the end of the reply. Not verified: Safari and the mobile WebView (no `moveBefore`, so an iframe reloads once when its block settles), and clicking the copy and open-in-sidebar actions in the live app (tests cover both). Fixes get-bb#5268 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Leandro Piccione <[email protected]> Co-authored-by: Claude Code <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong Detached checkout of a short Git branch name triggers Git's implicit local-branch creation when the branch exists only under origin after cloning. Git rejects that combination before BB reads the marketplace manifest. Reproduced on trusted main in two clean checkouts: https://get-bb.github.io/reports/issues/5373.html. ## What changed - Resolve the requested ref to a verified commit, with an origin remote-tracking fallback, then detach at that commit. - Add real-Git regression coverage for a non-default branch, origin-qualified ref, annotated tag, commit hash, and branch refresh. - Keep the existing clone strategy and public interfaces unchanged; no dependency, protocol, schema, migration, or stored-data change. - Changed-line count against origin/main: **82** (75 additions + 7 deletions), across **2 files** in the existing plugin-catalog subsystem. ## How you verified - Before the fix, the focused regression fails for the short branch with Git exit 128; the other three cases pass. Repeated on a second clean checkout of the same trusted main commit. - After the fix, all four focused cases pass. Eight relevant catalog suites pass: **149 tests**, including existing default-branch lifecycle coverage. - `pnpm exec turbo run test --filter=@bb/server -- test/services/plugin-catalog/third-party-marketplaces.test.ts -t 'reads the selected catalog commit'` - Relevant suites run through Turbo with the eight test file paths under `test/services/plugin-catalog`, excluding the unrelated official generator suite. - `pnpm exec turbo run typecheck --filter=@bb/server`, focused `oxfmt --check`, and `git diff --check` pass; no binary changes. - A broader catalog-directory run has one pre-existing official-generator timestamp expectation failure: Git emits `+00:00` rather than `Z`. The same failure occurs on unchanged trusted main; it does not exercise the modified materializer and is not changed here. Fixes get-bb#5373 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_pndur7immv53ds7l sha=issue-5373 kind=summary --> Co-authored-by: SawyerHood <[email protected]>
…#5405) ## Human comments ## What was wrong A git marketplace could only keep `marketplace.json` at the repository root. `materializeGit` cloned the repository and read `<checkout>/marketplace.json`, with no way to name another directory. A repository that holds plugins for several agent tools could not keep its bb files together in one folder (get-bb#5372). ## What changed `bb marketplace add git:<url>[@<ref>] --subdirectory <path>` reads `marketplace.json` and relative icons from that directory of the checkout. - **Server:** `plugin_marketplaces` gains a nullable `source_git_subdirectory` column (migration 0142). The add route accepts an optional `subdirectory`, and every refresh reuses the stored value. The path follows the rules of `bb plugin install --subdirectory`: relative, no `..`, no `.git`, and no symlink out of the checkout. A subdirectory on an https or `path:` source is refused. - **Contract and SDK:** `PluginMarketplace` gains `subdirectory: string | null`, and `plugins.marketplaces.add` accepts `subdirectory`. The contract change alters the plugin SDK's bundled types, so the SDK version moves to 0.6.41. - **CLI:** `bb marketplace add --subdirectory <path>`. `bb marketplace list` shows a Subdirectory column when a marketplace has one. - **Settings:** a Subdirectory field appears under the source field once the source starts with `git:`, and each marketplace row shows its subdirectory. - **Docs:** the CLI guide, the bb-cli and plugin-authoring skill references, and `docs/configuration.md`. Deviations from the issue's proposal: - Relative screenshot URLs are still skipped for git marketplaces, as they are for every non-https source. Only icons resolve next to the manifest. - `marketplace.json` and icons must resolve inside the subdirectory, not only inside the checkout. - `source` stays `git:<url>@<ref>` and the subdirectory is a separate field, matching `bb plugin install --subdirectory`, instead of a `#<path>` suffix. `source.git.subdir` in catalog entries stays relative to the repository root. No `HOST_DAEMON_PROTOCOL_VERSION` change: nothing crosses the server/daemon wire. ## How you verified - New server tests against a real git repository: add and refresh from a nested subdirectory, the root still read when no subdirectory is given, seven refused paths, a symlink out of the checkout (skipped on Windows), and a subdirectory on https and `path:` sources. Each failure leaves no staged checkout behind. - New route, CLI output, and Settings component tests for the request body, the list column, and the Subdirectory field. - `pnpm exec turbo run typecheck lint --continue --filter='...[origin/main]'` - `pnpm exec turbo run test` for `@bb/server` (plugin-catalog suites), `@bb/db`, `@bb/sdk`, `@bb/server-contract`, `@bb/templates`, `@bb/domain`, `@bb/cli` (marketplace output), and `@bb/app` (settings). - `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs` passes with the version bump; it failed before the bump. - Against a dev server with a local repository that keeps its catalog in `bb/`: `bb marketplace add git:<repo>@main --subdirectory bb`, `bb marketplace list`, `bb marketplace refresh` after a new commit, the icon served from `bb/icons/`, and an add through Settings → Plugin marketplaces. Fixes get-bb#5372 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[email protected]>
…dd a Help menu with License and Uninstall (get-bb#5384) ## Human comments ## What was wrong Google denied getbb.app's free-desktop-software certification twice. Four of its written requirements were unmet. The site never named the company that publishes bb. The privacy page said bb receives no data from your server, though the app sends anonymous usage events by default. There were no uninstall instructions. And the app had no link to its license. ## What changed - Every getbb.app page's footer now reads "© 2026 Terragon Labs, Inc." The year is computed. - The privacy page no longer says bb receives nothing from your server. A new paragraph says the app sends anonymous usage events through PostHog, why (to see how bb is used and decide what to improve), what they carry, that PostHog records IP and approximate location, and how to turn it off. - The privacy page's contact is now [email protected]. - New /uninstall page: quit bb, remove the app on Mac, Windows, or Linux, and optionally delete `~/.bb`. It's `noindex`, not in the sitemap, and not blocked in robots.txt. - The desktop app has a new Help menu with "View License" (opens the MIT LICENSE, as VS Code, Cursor, and Zed do) and "How to Uninstall bb" (opens the uninstall page). ## How you verified - Chrome for Testing (Browser Automation) at 1440 wide on the branch site: footer, privacy paragraph and contact, and the uninstall page render as shown. The uninstall page carries `<meta name="robots" content="noindex">` and is absent from /sitemap.xml. - The privacy paragraph matches the code: the events and fields in apps/server/src/services/system/telemetry.ts, the opt-outs in apps/server/src/routes/system.ts and packages/config/src/env-vars.ts, and IP capture confirmed in the PostHog project settings. - Packaged desktop build of this branch (`pnpm desktop:worktree`): the menu bar reads Apple, bb, File, Edit, View, Window, Help, and Help contains "View License" and "How to Uninstall bb" (read through macOS accessibility). No screenshot of the open menu: the capture couldn't take focus from the host app. - Remote CI: passed. ### QA (qa-agent): PASS at `db6c4ac5e5` - Chrome for Testing 154.0.8037.92 (Browser Automation) and real Safari 26.5.2 on macOS. - Both at 1440×900 and 390×844, light and dark. In Safari, dark means the site's own `dark` class: the site sets it from `prefers-color-scheme`, and the system theme wasn't changed. - /privacy: the usage paragraph renders, and the contact is [email protected]. - Footer: "© 2026 Terragon Labs, Inc."; Privacy and Software License links only. - /uninstall: three steps and `noindex`. It's absent from /sitemap.xml, and robots.txt allows it. - No horizontal overflow, and no console errors in Chrome. - Packaged desktop build of this head, launched with `--use-mock-keychain`: Help lists "View License" and "How to Uninstall bb". Captured below with the menu open. ### Screenshots Before: `3912f4aaef` (merge base) · After: `db6c4ac5e5` · Chrome for Testing, full window, captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Privacy · 1. The bb apps | Desktop · 1440×900 · light |  |  | | Footer | Desktop · 1440×900 · light |  |  | | /uninstall | Desktop · 1440×900 · light | Not Found |  | | Footer | Phone · 390×844 · dark | — |  | | Privacy (real Safari) | Desktop · 1440×900 · light | — |  | | Footer (real Safari) | Phone · 390 · dark | — |  | | Desktop app · Help menu open (macOS, packaged build of this head) | Window 1280×900 + menu bar | No Help menu |  | BB-Thread: [🔥 𝒃𝒃 landing pages & guides](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_46gxq5dyzh) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong Threads spawned by another thread were called "children", "child" or nothing at all depending on the surface, and they shared a generic person icon with other assignment events. The archived filter, archive/delete confirmations, mention pills and the thread header each used different wording for the same thing. ## What changed - One copy helper (`apps/app/src/lib/child-thread-copy.ts`) for "child thread(s)" and its count, used by the archive/delete dialogs, the archive toast and thread actions. - A two-person `ChildThread` icon (shared-ui icon registry) for assignment events and the mention pill; mention pills read "child thread". - Archived threads filter: All threads / Threads / Child threads. - Archive and delete confirmations name the child thread count; the archive button reads "Archive". - The child thread header no longer shows a "child" pill; the parent picker drops its redundant heading; the settings copy says "child threads". UI copy only; data, API, SDK and CLI names are unchanged. ## How you verified CI. ### Screenshots Before: `d011a88bc1` · After: `c4b144a85a` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Child thread view: no "child" header pill | Desktop · 1280×720 |  |  | | @ mention from a parent: "child thread" pill | Desktop · 1280×720 |  |  | | Parent picker: no redundant heading | Desktop · 1280×720 |  |  | | Archived threads: filter and badge | Desktop · 1280×720 |  |  | | Archive confirmation | Desktop · 1280×720 |  |  | | Delete confirmation | Desktop · 1280×720 |  |  | | Settings: archive confirmation copy | Desktop · 1280×720 |  |  | BB-Thread: [Redesign child threads](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_7xmbr7vsqz) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong A parent's Info panel listed its forks but not its child threads, so there was no place outside the composer banner to see them. ## What changed - The Info panel shows a collapsible **Child threads** section above Forks (`RelatedThreadsSection`), using the ChildThread icon for idle child threads. - Its collapsed state saves under the `childThreads` section id, added to `docs/configuration.md` and the bb-cli app-settings reference. ## How you verified CI. ### Screenshots Before: `c4b144a85a` · After: `bad3b3f27d` · Captured at 2× | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Info panel: Child threads section | Desktop · 1280×720 |  |  | | Info panel: section collapsed from its heading (no section before) | Desktop · 1280×720 |  |  | BB-Thread: [Redesign child threads](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_7xmbr7vsqz) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
## Human comments ## What was wrong Setup progress, agent readiness, sign-in results and rejected new-thread submissions were not observable in anonymous telemetry. ## What changed - Record anonymous setup progress, readiness, sign-in outcomes and new-thread submission outcomes through the opt-out-controlled telemetry route. - Accept fixed enums, booleans and explicit unknown values, without identifying fields or free-text error details. - Expose `useSetupComplete` and the experimental SDK method, and update configuration documentation. - Describe collection by usage category in Settings and the privacy page, while retaining purpose, identifiers, system details and opt-out instructions. Supersedes get-bb#5394. Independently based on main; no shared-component dependency. ## How you verified - [PR CI](https://github.com/get-bb/bb/actions/runs/38328259479) passed on `3bd09c3262585b764d77cca6761fc2328a21c3bd`. [Full CI](https://github.com/get-bb/bb/actions/runs/38328255967) also passed after retrying the Windows provider-replay job. - Scoped review has no P0/P1 findings; the subsequent copy-only change preserves the reviewed telemetry implementation. - Focused exact-head QA PASS: Chrome for Testing 154.0.8037.92, Settings and privacy, desktop and phone widths; real Safari 26.5.2, privacy. - Initial rendering, settled layout, hard reload and client navigation passed. Chrome reported no page or console errors during disclosure checks. - Exact-head telemetry delivery passed through the production-mode sender to an isolated local sink; the HogQL query parsed and ran. <details> <summary>Exact-head telemetry delivery QA</summary> Chrome for Testing 154.0.8037.92 exercised the branch web app at `3bd09c3262585b764d77cca6761fc2328a21c3bd` with fresh app data, telemetry enabled and the real production-mode server sender. - The sink received each action once: all four steps reached, Agent/Devices completed, Projects/Plugins skipped, and setup finished. - Readiness was observed from real installed agents. Checking again emitted no duplicate readiness event. - A real Codex sign-in command opened its sign-in guide; cancelling emitted one `started` and one `cancelled` outcome. - Temporarily disabling the selected provider before forwarding an unchanged submit request produced a real `409 provider_disabled`; the draft remained intact. - Re-enabling the provider produced `201`, one accepted outcome and a real Claude Code reply of “OK”. Each submission emitted one started outcome. - Captured payloads contained only the random install ID, standard system properties and the expected event fields; no identifying fields or free text. The default `0.0.0-dev` version intentionally disables the sender. This pass used `0.0.0-qa-onboarding-3bd09c3` and a transport-only preload redirecting the unchanged capture body to a loopback sink. That version is not excluded by the dashboard's exact dev-version filter, so no test events were sent to PostHog. Product source and event handlers were unchanged. Growth analytics independently executed the reached/ready/signed-in/submitted HogQL query against PostHog with no errors or warnings. This establishes query/schema compatibility; new-event ingestion after release remains unverified. Completing a new provider authentication was outside this pass: the real attempt was cancelled, and submission used an already-ready provider. </details> <details> <summary>Retained boundary checks and follow-up</summary> The unchanged implementation retains earlier API checks accepting allowed enum/null values and rejecting unknown enums, identifying extra fields and free text. Earlier sign-in startup-failure coverage used fixtures and was not a delivery check. Known P2 follow-up: abandonment during pending sign-in startup may be counted as failed when terminal creation later rejects. </details> Fresh full-viewport screenshots compare merge base `d34a3d219193d37bf4bb31b6b345dd113800c3f1` with exact head `3bd09c3262585b764d77cca6761fc2328a21c3bd`, using the same isolated fixture, routes and scroll anchors. Desktop: 1440 × 900 CSS pixels; phone: 390 × 844; both at 2×. | Surface | Before | After | | --- | --- | --- | | Usage-data setting / desktop |  |  | | Privacy policy / desktop |  |  | | Usage-data setting / phone |  |  | | Privacy policy / phone |  |  | The user approved the simplified disclosure screenshots at `3bd09c3` via Growth. Merge approval remains separate. BB-Thread-ID: thr_gt5eeahuym BB-Thread: [Onboarding](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_gt5eeahuym) > AGENT GENERATED
bborn
force-pushed
the
perf/thread-switch-layout-thrash
branch
from
October 13, 2026 09:00
898c558 to
766f676
Compare
## Human comments ## What was wrong The first-run guide imported projects without selecting one for the first thread, leaving the composer on No project. ## What changed - Select the last successfully imported project during first-run setup. - Preserve an explicit project choice or draft, including one made while importing. - Leave the composer selection alone when replaying or closing the guide. ## How you verified - Remote CI passed at `6647f729`. [Run](https://github.com/get-bb/bb/actions/runs/38346066278) - Chrome for Testing 154.0.8037.92: zero, one and several first-run imports passed at desktop and mobile widths. - Explicit choice, draft preservation, replay, delayed closure, partial-failure retry and hard reload passed on the same head. ### Before and after Before: `e9dafb6c0245a37c6972dffa71134d546f3d497e` · After: `6647f7294b82cc987e288f8f68073c73e34c196e` · Full viewport, 2×. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Zero imports | Desktop · 1440×900 |  |  | | Zero imports | Mobile · 390×844 |  |  | | One imported project | Desktop · 1440×900 |  |  | | One imported project | Mobile · 390×844 |  |  | | Several imported projects | Desktop · 1440×900 |  |  | | Several imported projects | Mobile · 390×844 |  |  | BB-Thread-ID: thr_gt5eeahuym BB-Thread: [Onboarding](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_gt5eeahuym) > AGENT GENERATED
## Human comments ## What was wrong The queue used an expanded default at every viewport size, so pending messages automatically occupied conversation space on mobile. ## What changed - Mobile queues start collapsed and remember manual toggles per thread. - Toggle state resets when the queue drains or its messages are replaced. - Desktop queues retain their expanded default and independent toggle state. ## How you verified - Remote CI: all 44 jobs and PR checks passed on `0bb2bfbf1`. [Full run](https://github.com/get-bb/bb/actions/runs/38352377570) · [PR run](https://github.com/get-bb/bb/actions/runs/38436850310) - Mobile-default regressions failed before the fix and pass afterward, including queue draining and independent viewport state. - Chrome for Testing 155, 390×844: fresh load was collapsed; manually expanding and collapsing both worked. Slop Cop reviewed `0bb2bfbf1`: no P0/P1 findings. One P2 follow-up remains: crossing the mobile breakpoint during overlapping queue updates can reset an inactive viewport's remembered toggle. Reconcile both viewport memories in separate follow-up work. User QA is pending. Before: `4b12265e5fb82c01ea67e67cfe8d935533406937` · After: `0bb2bfbf1d7e67e4f8084d3745c18399908faf02` · Captured at 2×. | Mobile initial load | Before | After | | --- | --- | --- | | Queue default · 390×844 |  |  | BB-Thread-ID: thr_rumphjcb52 > AGENT GENERATED
…t-bb#5441) ## Human comments ## What was wrong bb had no supported way to use the `bb` CLI outside bb. Threads get `bb` on their PATH from the host daemon, but a terminal, a script, or an agent running outside bb (Claude Code, Codex) only had `bb` after a global `npm install -g bb-app`, and desktop app users had no route at all. The packaged CLI also started through a `#!/usr/bin/env node` shebang, so it failed with `env: 'node': No such file or directory` on a machine with no Node on PATH, which is the normal desktop case. ## What changed Settings → General → Command line has a new **bb CLI** row with **Install** and **Remove**. Nothing changes PATH until the user chooses Install. - **Launcher** (`packages/bb-app/src/cli-launcher.ts`, `launcher.ts`): every packaged `bb-app` start writes `<dataDir>/bin/bb` (`bb.cmd` on Windows). It runs the install's bb CLI with the install's own runtime, including Electron-as-Node and AppImage installs. The launcher passes the path to its server child as `BB_CLI_LAUNCHER`. Source checkouts write no launcher, so the row is hidden there. - **Bundled CLI runtime** (`resolveBundledCliLaunch`): without a `BB_CLI` override, the `bb` entry now runs the bundled CLI with the launcher's own Node runtime instead of relying on `node` being on PATH. - **Server** (`apps/server/src/services/system/cli-command.ts`, `routes/system.ts`): `GET /api/v1/system/cli-command`, `POST .../install`, `POST .../remove`. Install links the launcher into the first usable folder of `/opt/homebrew/bin` and `/usr/local/bin` (macOS), `~/.local/bin`, and `~/bin`, preferring one already on PATH; on Windows it appends `<dataDir>\bin` to the user PATH. It never replaces another `bb`: install returns `409 cli_command_blocked` while one comes first on PATH, and the status names it (an npm-installed bb-app, the machine installer's `~/.local/bin/bb`, or anything else). Remove deletes only links that point at a bb launcher. Machine credentials get 403. The action runs on the server's own computer; there is no host-daemon wire change. - **SDK**: `system.experimental_cliCommand()`, `experimental_installCliCommand()`, `experimental_removeCliCommand()`, with an entry in `docs/api_to_audit.md`. `@get-bb/plugin-sdk` is bumped to 0.6.43 because its bundled types change. - **CLI**: `bb settings cli-command` (show), `install`, `remove`. - **App**: `CliCommandSettingsSection`, rendered above the existing bb CLI skills row. - **Docs**: `docs/configuration.md`, both READMEs, the guide template, the bb-cli skill references and command index, the plugin backend SDK table, and the uninstall page. ## How you verified - New tests: launcher scripts executed through `sh` (argument passing, missing install, AppImage argument handling), server service tests with real symlinks in a fake home and an injected Windows PATH reader, route tests (unsupported, install/remove, machine credentials), a CLI command-output test, and a Settings row component test. - `pnpm exec turbo run lint typecheck --filter='...[origin/main]'` passes (137 tasks). - `pnpm exec turbo run test` for `@bb/server`, `@bb/cli`, `@bb/sdk`, `@bb/config`, `bb-app`, `@bb/web`, `@bb/templates`, `bb-plugin-bb-guide`, and `@bb/demo-server` passes. `@bb/app` passes all 5,743 tests; one run reported two unhandled timer errors from `splitDragSession.test.ts`, which passes alone and is not touched here. - `node apps/app/scripts/check-bundle-budget.mjs` and `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs` pass. - Real app: built `bb-app`, started it with a sandboxed `HOME`, clicked Install in Settings, and ran `bb` from a clean shell with no Node on PATH against that server. Remove deleted the link, and a different `bb` earlier on PATH blocked install with the 409. - Desktop layout: an earlier build of the same launcher code was overlaid into the extracted 0.46.0 Linux AppImage and run under Electron-as-Node through the real `AppRun`; `bb` worked with no Node on PATH. - Not run: real Windows and real macOS. The Windows PATH logic is covered only by unit tests with an injected registry reader. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[email protected]>
## Human comments when i try to open an HTML link, it shows the HTML code, which is annoying sometimes...the PR fixes this to show the rendered preview by default, following the same pattern as for markdown files. https://github.com/user-attachments/assets/6628e44e-1dcc-4b39-b243-e1c4c9a9ce80 - closes get-bb#5427 ## What was wrong With File Editor enabled, HTML links opened in Monaco because it claimed `.html` and `.htm`. BB already has a sandboxed HTML viewer with Preview/Raw controls. The viewer also did not recognize `.htm`, and project file previews on the New thread screen did not supply an HTML content URL. ## What changed Leave `.html` and `.htm` to BB's built-in preview, following the existing Markdown exclusion. Recognize `.htm` case-insensitively and pass the existing project file content URL to the shared preview surface. Reuse the existing HTML iframe and Preview/Raw controls without introducing UI components or styling. Update the File Editor documentation. As with Markdown, Monaco is no longer offered for `.html` and `.htm` in Settings → File openers or the Open with menus. Existing HTML-to-Monaco preferences fall back to BB's preview. HTML remains editable from Monaco's own file tree; the built-in Raw view is read-only. This follows [get-bb#5054 — Leave Markdown files to BB’s preview in the Monaco plugin](get-bb#5054): extend the same default-opener behavior to HTML while reusing the existing viewer. Existing SDK and CLI file-opening paths continue through the shared opener routing; no new API, CLI flag, or daemon wire changes. ## How you verified Regression cases failed before the corresponding fixes and pass after: - Monaco's claimed extensions leave HTML/HTM to BB. - A `.HTM` document renders and switches through the existing Preview/Raw controls. - Project HTML uses the selected host's existing file content route. Checks: - `pnpm exec turbo run lint typecheck test --filter=bb-plugin-monaco-editor` — 47 tests passed. - `pnpm exec turbo run test --filter=@bb/app -- src/components/secondary-panel/FilePreview.test.tsx src/components/secondary-panel/ThreadSecondaryPanelTabContent.markdown-images.test.tsx` — 40 tests passed. - `pnpm exec turbo run lint typecheck --filter=@bb/app --filter=@bb/client-core` — passed, app lint has existing warnings and no errors. - `pnpm exec turbo run test --filter=@bb/client-core -- test/file-preview.test.ts` — 13 tests passed. - `git diff --check` — passed. Live Chromium verification in an isolated source app with File Editor enabled: opened HTML and HTM through the project file picker, clicked the page's JavaScript button, switched Raw → Preview and confirmed its counter state survived, checked Markdown still renders and TypeScript still opens Monaco, and reloaded the HTML preview. HTML responses retained `Content-Security-Policy: sandbox allow-scripts`. No native iOS run. The TypeScript control emitted a Monaco disposal TypeError when switching away; no editor runtime code changed and that separate path was not investigated here. Independent read-only reviews by GPT-6-Astra (xhigh) and Opus 5.5 (high) found no blocking defects. They inspected the source and existing verification evidence; they did not rerun the test suites or browser checks. > AGENT GENERATED
…b#5450) ## Human comments ## What was wrong bb could not be controlled from ChatGPT, Claude, or any other MCP client. There was no MCP endpoint, and the bb connect gate accepted only account cookies or machine credentials, so a remote app had no way to sign in to a user's bb. ## What changed **New built-in plugin `bb--mcp` (`plugins/mcp`, off by default).** - Serves a stateless MCP endpoint that answers protocol 2026-07-28 and 2025-era clients, using `@modelcontextprotocol/server` v2. - Three tools: `search` (find `bb` commands), `read` and `run`. `read` and `run` execute a JavaScript snippet in a QuickJS sandbox whose only capability is calling the `bb` CLI on the server host, so the whole CLI is reachable and several steps fit in one call. - `read` is marked read-only so clients can run it without an approval prompt; it accepts only a pinned list of commands that change nothing. It is not a separate permission. - Limits per snippet: 25 seconds, 3 seconds of computation, 200 `bb` calls, 4 at a time (8 per server). - CLI: `bb mcp status`, `bb mcp clients`, `bb mcp revoke <grant-id>`. Skill, overview, `docs/configuration.md` and the plugins guide are updated. **Account app (`apps/web`).** A small OAuth 2.1 authorization server: `/oauth/authorize` (consent page), `/oauth/token`, `/oauth/revoke`, `/.well-known/oauth-authorization-server`. Clients identify themselves with client ID metadata documents; there is no dynamic registration. PKCE is required, refresh tokens rotate, and approving an app grants full access to that bb (one scope, `bb`). The dashboard gains a Connected apps section, and `/api/mcp/grants` backs the CLI. **Connect gate (`apps/connect`).** On a bb's address, `/mcp` accepts only a bearer token issued for that bb and its owner, and answers anything else with an OAuth challenge. It serves the protected-resource metadata and forwards to the plugin's local route with `x-bb-gate-auth: oauth`; that local route returns 404 from outside. No other path changes. **Connect database.** Migration `0009_mcp_oauth.sql` adds `oauth_grant`, `oauth_code` and `oauth_refresh_token`. No existing table changes. The gate caches the grant lookup for 30 seconds and writes once per grant; malformed codes and tokens are rejected before any query; rotated refresh tokens are pruned after 24 hours. **Host daemon.** File read now refuses non-regular files (reading a device such as `/dev/zero` could exhaust memory). No wire fields change, so `HOST_DAEMON_PROTOCOL_VERSION` is not bumped. **bb-account plugin.** Its account fetch proxy lets only the MCP plugin call `/api/mcp/`. Merging deploys the gate and the account app and applies the migration. ## How you verified - Tests added: plugin, 120 tests (sandbox limits and recovery, the read list, CLI runner against real child processes, both protocol versions through the real MCP client); account app OAuth server and UI; gate (`mcp-gate.test.ts` plus routing tests in `worker.test.ts`); bb-account path rule; daemon device read. - `pnpm exec turbo run lint typecheck --continue --filter='...[origin/main]'` passes (153 tasks). - `pnpm exec turbo run test --filter=@bb/web --filter=@bb/connect --filter=@bb/connect-db --filter=bb-plugin-bb--mcp --filter=bb-plugin-bb-account --filter=@bb/templates` passes. - `node scripts/check-plugin-forks.mjs plugins/mcp` passes. - Local end-to-end with `pnpm cloud:dev` and `pnpm dev`: a real MCP client signed in through the consent page, called tools through the gate and tunnel against the real CLI, refreshed its token, and lost access within 30 seconds of `bb mcp revoke`. - Not verified: anything on Cloudflare (real D1, Workers), the real Claude.ai and ChatGPT connectors, and Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong A rejected runtime-record claim only printed a warning. Full-stack startup still spawned a server against the already-served data directory and occupied listener, opening the shared store before failing with `EADDRINUSE`. [Verified reproduction and root-cause report](https://get-bb.github.io/reports/issues/5404.html). The same investigator reproduced the defect in two clean trusted checkouts at `b5618353309df57e67794e64ca275dccc88b2d34`, with separate temporary stores and ports. ## What changed When another live runtime owns the data directory and the configured local health endpoint is healthy, the launcher returns with exit status 1 before starting either child. Unhealthy-owner and unclaimed-record startup remain reachable. The existing runtime record is preserved. The README documents this behavior. Only `packages/bb-app` changes: three files, 112 changed text lines (112 additions, zero deletions). No dependencies, generated files, migrations, stored-data changes, public protocol changes, or new commands/flags. ## How you verified - Added the launcher-boundary regression before changing production code. On unchanged main it failed in both clean checkouts because the pre-server-start callback ran despite a healthy live owner; both fallback controls passed. - After the fix, all three regression cases pass. Only package-artifact presence is substituted; runtime-record I/O and HTTP health checks are real, and no database is mocked. - `pnpm exec turbo run test typecheck --filter=bb-app`: 22 test files, 206 tests, and typecheck pass. - `pnpm exec turbo run build --filter=bb-app`: passes. - Real packaged-launcher verification: the duplicate exits 1 without attempting server startup or producing a new server diagnostic; the incumbent stays healthy and its record is unchanged. - `git diff --check`: passes; `git diff --numstat origin/main`: 112 text lines across three files, no binary changes. Fixes get-bb#5404 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_rgtp689lmv5sl832 sha=issue-5404 kind=summary --> Co-authored-by: SawyerHood <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong `RootComposeSecondaryContent` mounted `compactScrollContent` in both layout branches. On desktop, the actual recent-thread component hid itself with CSS but still created its entire eligible row subtree. The same 1,000-row DOM regression reproduced this in two clean checkouts of trusted main (`e9dafb6c0245a37c6972dffa71134d546f3d497e`). Report: https://get-bb.github.io/reports/issues/5419.html ## What changed Remove the compact content from the desktop branch only. Keep compact rendering, composer content, and plugin homepage sections unchanged. The regression covers desktop → compact → desktop transitions. Mobile capping/virtualization is intentionally outside this minimal desktop fix. Changed-line count: **41 total text lines** (40 additions, 1 deletion) across **2 files**, confined to the existing Home layout subsystem. No dependencies, generated files, stored-data changes, public interfaces, wire contracts, or release changes. ## How you verified - Before the production fix, `pnpm exec turbo run test --filter=@bb/app -- src/views/RootComposeSecondaryContent.test.tsx -t 'mounts compact scroll content'` fails at the expected-null assertion because desktop mounts the list. Repeated against the same base in a second clean checkout, with its own frozen install and full build: same intended failure. - After the fix, `pnpm exec turbo run test --filter=@bb/app -- src/views/RootComposeSecondaryContent.test.tsx src/views/RootComposeCompactHome.test.tsx src/views/RootComposeMobileRecents.test.tsx`: **44 tests pass** across 3 files, including the regression. - `pnpm exec turbo run lint typecheck --filter=@bb/app`: passes (existing lint warnings, no errors). - `pnpm exec oxfmt` on both changed files and `git diff --check`: pass. `git diff --numstat origin/main`: 40 additions, 1 deletion; no binary changes. - This is DOM/layout-boundary verification, not a browser performance benchmark or iOS Safari smoke test. Fixes get-bb#5419 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_2bt4r0v6mv6e75l5 sha=issue-5419 kind=summary --> Co-authored-by: SawyerHood <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong Read-state events reached the app cache owner, but it invalidated observed sidebar and thread-list queries with refetching disabled and did not patch cached timestamps. Observers continued rendering the previous read state. The reproduction fails twice on trusted main in separate clean clones. Report: https://get-bb.github.io/reports/issues/5399.html ## What changed - Route read-state events through the existing active-thread-list refresh handler. - Preserve project scoping, stale-only thread detail, and archived-list no-refetch behavior; refresh sidebar and search consumers through the shared existing path. - Remove the unused stale-only list handler and replace its old no-refetch test with observed read/unread transitions, with and without project metadata. - No new event fields, public protocol, SDK/CLI surface, dependency, migration, or stored-data change. A client-only refresh avoids a protocol expansion. - Changed text lines: **208** total (**95 additions + 113 deletions**), across **2 files** in the app realtime-cache subsystem. ## How you verified - Before the production fix, the focused regression fails in both clean clones at trusted main `406c009502ad0f961fc6ce9c75c1d262cb3e3e7c`: observed `lastReadAt` remains `200` instead of changing to `0` (two metadata cases). - After the fix, 13 relevant files / 185 tests pass, including both read directions, project isolation, archived-list behavior, and no thread-detail refetch. - `pnpm exec turbo run test --filter=@bb/app -- src/hooks/realtime-cache-effects.test.ts src/hooks/realtime-cache-effects.coarse-pointer.test.ts src/hooks/cache-owners src/hooks/queries/thread-queries.test.tsx src/hooks/queries/query-helpers.test.ts` - `pnpm exec turbo run lint typecheck --filter=@bb/app` passes. Both baseline and fixed lint report 248 warnings and zero errors. - `git diff --check` passes; `git diff --numstat origin/main` reports only text changes within the simple-fix limits. - Visual browser verification was attempted in an isolated fresh-store source app but blocked by missing Chrome. Native macOS and real cross-device journeys were not run; the reproducible proof exercises real QueryObservers and the app realtime cache owner. All launched processes and the synthetic store are cleaned up. Fixes get-bb#5399 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_uk4qfqjzmv5rp2c6 sha=issue-5399 kind=summary --> Co-authored-by: SawyerHood <[email protected]>
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong The ACP worker exported no signal-cleanup hooks, so SIGTERM and SIGINT bypassed agent termination. That is the path the runtime itself uses to stop a provider worker: it sends SIGTERM and only kills the worker's own process group, and ACP agents run in their own groups, so they were left running with parent PID 1. The normal-close cleanup enumerated only registered thread sessions and missed model-discovery connections. Reproduced twice from clean trusted main checkouts: [root-cause report](https://get-bb.github.io/reports/issues/5371.html). ## What changed - Track every ACP connection (thread sessions, sessions still starting, model discovery) and remove it on exit; reject connection creation once shutdown begins. - Share idempotent, awaited cleanup across stdin close, SIGTERM and SIGINT. Release sessions and terminate all tracked agents (SIGTERM, then SIGKILL of the process group after 1 s) with all-settled failure reporting, then exit 0. - On stdin close, sessions are now released instead of stopped: an active turn is no longer sent `session/cancel` and given up to 4 s to settle first. This keeps shutdown inside the runtime's 5 s escalation window. - Add real-worker lifecycle cases covering registered sessions and discovery, termination escalation, and late-start rejection: six on macOS and Linux, two on Windows. Windows cannot deliver SIGTERM or SIGINT to a handler and its agents are not detached, so only the stdin cases run there. - Two files in the existing ACP subsystem: **247 additions + 11 deletions**. No dependencies, generated artifacts, stored data or public protocol/schema changes. The branch is rebased onto current main so the bundled bridge ships under the unpublished plugin SDK version; no version bump of its own is needed. Not covered here: - The opt-in rebuilt ACP adapter (`packages/provider-bridge-acp-next`) has the same gap and still needs this change. - A second SIGTERM while cleanup is running ends the worker at once, so agents that ignore SIGTERM can still be left behind in that case. The runtime sends one. - A worker that is killed with SIGKILL or crashes still leaves its agents running. ## How you verified - Before the production change, the focused test fails in five cases with "agent remains alive after bridge exits" and passes its existing session/stdin control. After the fix, all six pass. - Each part of the fix is pinned by the test. Removing the shutting-down rejection fails the four signal cases ("shutdown admitted a new agent"); stopping only registered sessions fails the three discovery cases; exiting without awaiting cleanup fails all six; dropping the SIGINT hook fails the two SIGINT cases. - A separate probe drives the real worker the way the runtime stops it, with three sessions (one agent ignores SIGTERM, one has a child that ignores it), one session hung in `initialize` and one hung model discovery. Before: the worker dies in 15 ms and all six processes survive. After: the worker exits 0 in about 1 s and none survive. - `pnpm exec turbo run test lint typecheck --continue --filter=@bb/provider-bridge-acp --filter=@bb/agent-runtime --filter=bb-plugin-provider-acp` on this head: 16 of 16 tasks pass; 391 ACP tests pass with four skipped, 309 runtime tests and 68 ACP plugin tests pass. - `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs` passes on this head. - Local runs are on Linux with an authored Node agent, not the proprietary provider on macOS. Windows is covered by CI only. Fixes get-bb#5371 > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_fd1ij56omv533z58 sha=issue-5371 kind=summary --> --------- Co-authored-by: SawyerHood <[email protected]> Co-authored-by: Claude Code <[email protected]>
…b#5455) ## Human comments ## What was wrong A user reported that the new ACP provider (`bb--provider-acp-next`) lists only OpenCode's built-in agents (Build, Plan) in the new-thread "Session Mode" menu, while other ACP clients also list their custom agents. OpenCode reports its primary agents as the ACP `mode` config option and resolves them from the session's working directory: the global agents plus the project's own `.opencode/agent/*.md`. bb read an ACP agent's models and options once per machine (`models.scope: "host"`), and the bridge opened its discovery session in its own process directory. A project's agents therefore never appeared before a thread existed. ## What changed - **Bridge** (`packages/provider-bridge-acp-next`): `model/list` runs discovery in the `cwd` the server names. A launch spec that sets its own `cwd` still wins, and a path that is not a directory falls back to the previous behaviour. - **Plugin** (`plugins/provider-acp-next`): agents carry a `modelCatalogScope`. The built-in OpenCode agent and custom agents with `"dialect": "opencode"` declare `workspace`; every other ACP agent stays `host`. I kept the others machine-wide because a workspace-scoped catalog makes a thread page's model button read "Loading models" for about two seconds the first time it opens. OpenCode threads now have that delay, as Pi threads already do. - **Server**: `GET /api/v1/system/execution-options` accepts `projectId` (rejected together with `environmentId`). The server resolves the project's checkout on the target machine and reads a workspace-scoped catalog there. `projectCheckoutPathOnHost` moved from thread creation into `services/projects/project-workspace.ts` so both callers share it. - **SDK and CLI**: `sdk.providers.models({ projectId })` and `bb provider models --project <id>`. - **App**: the new-thread composer sends the selected project for providers whose catalog is workspace-scoped. The query key and the last-known catalog cache are keyed by project; a project's first read shows the machine-level catalog as a placeholder until its own arrives. - **Discovery sessions are deleted**: every discovery `session/new` used to leave an empty "New session" row in OpenCode's history, and per-project discovery would have multiplied them. The bridge now sends ACP `session/delete` when the agent advertises it, and otherwise, for the opencode dialect, runs `opencode session delete <id>` after the agent exits. - **Docs**: providers guide, the bb-cli skill reference, the ACP plugin overview and skill, and `docs/provider-plugin-api.md`. The guide and the ACP skill also say that OpenCode does not read agent files from other folders such as `.agents/agents/`, and how `OPENCODE_CONFIG_DIR` makes a per-project folder appear in the mode menu. No `HOST_DAEMON_PROTOCOL_VERSION` bump: the server already sends `cwd` on `model/list` for workspace-scoped providers, and no daemon contract file changed. The plugin SDK surface is unchanged. ## How you verified Tests added: - Bridge: discovery runs in the workspace bb names; the discovery session is deleted over ACP when the agent supports it; it is deleted through OpenCode's CLI when it does not. - Plugin: OpenCode agents declare a workspace-scoped catalog and other agents a machine-wide one. - Server: a workspace-scoped catalog is read in the project's checkout on the machine; a project on another machine, a host-scoped provider and a missing project are covered. - Contract, SDK, CLI and app: `projectId` validation and forwarding, the `--project` flag, when the composer names the project, and the per-project cache with its placeholder. Commands, on this commit rebased onto current `main`: - `turbo run typecheck lint --filter='...[origin/main]'`: 121 tasks pass. - `turbo run test` for the nine touched packages. - `node .github/workflows/check-plugin-sdk-version.mjs` and `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs`. Manual, in the dev app on Linux with OpenCode 1.18.35 and a project that has two `.opencode/agent` files: - With no project selected the mode menu lists build, docs and plan. With the project selected (Project checkout or Worktree) it also lists the two project agents. - A new Worktree thread started on a project agent answered as that agent. `bb thread spawn --option mode=<agent> --new-environment worktree` did the same from the CLI. - A cold discovery for a fresh project left no sessions in OpenCode's session list. - Agents kept in `.agents/agents/`: OpenCode 1.18.35, 1.19.0 and the OpenCode 2 beta do not list them from the project, a parent folder or the home directory. With `OPENCODE_CONFIG_DIR=.agents`, set as a machine variable for the built-in agent or in a custom agent's `env`, the mode menu listed the project's `.agents/agents` agent and a new Worktree thread answered as that agent. A changed machine variable reached the mode list about a minute and a half later, or at once after a plugin reload. - The OpenCode 2 beta (`opencode2 acp`), added as a custom agent with `"dialect": "opencode"`, listed the project agents, ran a thread on one, and had its discovery session removed over ACP `session/delete`. Not tested: a remote machine, macOS, Windows, and an OpenCode 1 release newer than 1.18.35. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Code <[email protected]>
## Human comments ## What was wrong `plugins/mcp/src/sandbox.test.ts` › "fails cleanly when the script exhausts its memory limit" has timed out at Vitest's 5 s default since get-bb#5450 (runs 38469661984, 38472496938, 38485481595). The sandbox's memory limit was never enforced. The Emscripten build of QuickJS cannot measure allocation sizes. `runtime.dumpMemoryUsage()` prints "malloc_usable_size unavailable" and "8.0 per block", and 20 MiB of live data is counted as 13,208 bytes. `setMemoryLimit` therefore only refuses a single allocation larger than the limit. With a 4 MiB limit the test script kept 1,935 arrays of 100,000 elements alive and grew the WASM heap from 16 MiB to its 2 GiB ceiling before a real out-of-memory error ended it. The 500 ms deadline did not stop it either. QuickJS consults the interrupt handler on the first poll and then once per 10,000 polls, and native calls such as `Array.prototype.fill` do not poll, so the handler was consulted once in those 1,935 iterations. The test only asserted `ok === false`. Where it passed, it passed because the late finish was reported as the computation limit. ## What changed `plugins/mcp/src/sandbox.ts`: - Each sandbox instance gets its own `WebAssembly.Memory` sized to the limit (initial equals maximum), so the engine cannot allocate past it. An instance is reused after a clean run and discarded after exhaustion or any error. - Running out of memory stops the script with "The script ran out of memory and was stopped. …", including when the script catches the error. - Strings copied into the sandbox are checked for room first. The QuickJS glue does not check its own allocation: a host result that did not fit was written through a null pointer, trapped inside the settle callback, escaped as an unhandled rejection, and left the script waiting for the 25 s deadline. - Settling a host call runs under a fresh deadline, and a failure there stops the script instead of escaping. - `memoryLimitBytes` below 16 MiB or above 2 GiB throws a `RangeError`, because the WASM module cannot enforce it. The memory test uses 16 MiB instead of 4. Behavior change: a script could previously use up to 2 GiB. The 64 MB default is now real, and about 5 MiB of it is interpreter overhead. The tool description in `mcp-handler.ts` and `skills/mcp/SKILL.md` now mention the 64 MB limit. Not changed: the computation deadline still overshoots for loops that spend their time in native calls on large values. Measured overruns ranged from seconds to over a minute. Enforcing it needs the interpreter on a worker thread that can be terminated, which is a separate change. ## How you verified Tests in `sandbox.test.ts`: - The memory test asserts the memory message. - New tests: the amount a script can keep scales with its limit (16 MiB and 32 MiB), a script that swallows the error is still stopped, a host result that does not fit stops the script, an out-of-range limit is refused, an unserialisable host result stops the script. - Six tests that only checked `ok === false`, or the phrase "was stopped" that every stop message shares, now assert the reason. - Against the old `sandbox.ts`, six of these fail: the old memory script ends on the computation message, and an unserialisable host result waits 25 s with an unhandled rejection. Duration of the memory test: | Machine | Before | After | |---|---|---| | Local, Node 24 | 1.80–1.91 s | 15–19 ms | | Local, Node 22 | 2.82 s | 19 ms | | 20% CPU quota (about 5.8× slower) | timed out at 5 s (ran 12.3 s) | 0.30–0.40 s | | 10% CPU quota (about 12× slower) | timed out (ran 28.2 s) | 0.40–0.70 s | At the 10% quota all 30 tests in the file pass and the slowest takes 2.5 s. Commands: - `pnpm exec turbo run test typecheck lint --filter=bb-plugin-bb--mcp` passes (125 tests). - `pnpm exec turbo run prepare:bundled --filter=bb-plugin-bb--mcp` builds, and the bundle imports. Probes through `runSandboxedScript`, not committed: - Scripts that fill the heap completely, let a pending host call settle into a full heap, receive an oversized host result or error, or replace the `ArrayBuffer` global all stop with the memory message within 75 ms, with no unhandled rejection and no teardown failure. - 200 exhausted runs keep resident memory flat. - 300 sequential trivial runs take a median of 0.40 ms each, the same as before. Not run: Windows, and a real MCP client against the app. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[email protected]>
Timeline responses over 200 rows were never cached, so long threads were rebuilt on every request while blocking the event loop. Raise the timeline cache cap under a total-row budget. The thread-switch layout changes this commit used to carry are dropped: upstream get-bb#4537 fixes the same problem in the same files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pasting a GitHub PR URL, owner/repo#N, a Linear URL, or a key like OL-3782 into thread search (Cmd+K) now puts the threads that did the work first: the thread on the PR head branch (read via gh), and threads whose branch or title carries the ticket key or PR number. Full-text search cannot do this: it never reads branch names and splits OL-3782 into ol and 3782. Kept to one new file plus one call in the search route so the nightly rebase onto upstream has little to merge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dictating on a phone cost three taps: tap the mic, talk, tap to stop, tap send. Now holding the mic records for as long as you hold it, and where you let go decides what happens: release on the mic and the transcript lands in the composer unsent, slide up onto the Send target and it is sent as soon as the transcript arrives, slide left onto Discard and the recording is thrown away. Slide-onto-a-target is the WhatsApp/Telegram voice-note idiom, so it is already familiar, and it cannot fire by accident: sending needs a full button's height of travel off the mic. Transcription is a server round trip, so the text does not exist at release. Slide-to-send therefore arms a pending submit and waits for the transcript to reach the composer, dropping it if transcription fails. A release before the recorder has started (the iOS mic-permission prompt interrupts the first hold) leaves the recorder running so upstream's check/X bar can finish the job, and a stop inside the recorder's one-second minimum is held back until that minimum is met rather than failing as "too short". A quick tap under 250ms still leaves the recorder running, so tap-to-toggle is unchanged, and none of this arms unless the pointer is coarse, so desktop is untouched. Kept to one new file plus an import, a hook call and two prop spreads in PromptBoxInternal, so the nightly rebase onto upstream has little to merge. Verified in chrome-headless-shell at a 393x852 touch-emulated viewport: all three releases behave as described, plus 10 new unit tests and the existing 990 promptbox/hooks tests. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Typing or pasting a branch name, origin/<branch>, or a GitHub tree URL into thread search (Cmd+K) now puts the thread on that branch first, archived ones included, then threads whose branch contains it. Full-text search never reads branch names, so an exact worktree branch could return some other thread entirely. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rk-only) Upstream added microphoneWarning and send to PromptVoiceConfig (get-bb#4551, get-bb#4782). Co-Authored-By: Claude Opus 5.5 <[email protected]>
bborn
force-pushed
the
perf/thread-switch-layout-thrash
branch
from
October 14, 2026 09:00
766f676 to
06fe0c3
Compare
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.
Human comments
What was wrong
Switching threads blocked the main thread for 700 to 850ms on warm revisits and 340 to 480ms on cold visits (measured on an optimized build against a snapshot of a real 189-thread database). Most of that was forced synchronous layout:
TimelineWindowedItemsrendered every row un-windowed on its first commits after a switch, because TanStack'srangeis null until the scroll rect is measured and the scroll-root ref is not yet attached when the child's layout effect runs. Each of those commits forced a full ~110ms layout, three times per switch.ExpandablePaneladditionally readoffsetHeighton mount and on every parent re-render (its effect depended onrenderedBodyandcollapsedContentidentity). On the server,createThreadTimelineCachenever cached responses over 200 rows, so long finished threads were rebuilt on every request (25ms on an M-series Mac, 150 to 360ms on a 4-core Linux host per its slow-build logs) while blocking the event loop for every other request.What changed
apps/app/src/components/thread/timeline/TimelineWindowedItems.tsx: passinitialRectfrom the last usable scroll-root height (falling back towindow.innerHeight) so the first commit is windowed; when the scroll root is not attached yet, keep windowing enabled and re-render after the rAF check instead of flipping to the un-windowed fallback; return a retained measurement frommeasureElementwhen called without a ResizeObserver entry.TimelineWindowedItemsLoader.tsx/ThreadTimelineRows.tsx: keep row measurements per thread in a bounded module-level map so revisits start with exact heights.apps/app/src/components/ui/disclosure.tsx: only readoffsetHeightsynchronously on toggles; mount and content changes go through the shared ResizeObserver (which batches reads before writes). Effect deps reduced toisBodyExpanded.apps/server/src/services/threads/timeline-cache.ts: cache responses up to 2,000 rows under a 12,000 total-row budget (was 200 rows, entry count only); made generic so tests need no casts.No wire changes, no CLI or config changes.
How you verified
timeline-cache.test.ts(5 tests) and an updateddisclosure.test.tsxexpectation for the ResizeObserver-driven initial height.pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/serverandturbo run lint --filter=@bb/apppass; 797 tests acrosssrc/components/thread/timelineandsrc/components/ui, plus the server's public thread timeline suites (49 tests), pass.long-animation-frameobservers and wrapped layout-read getters, before and after, on the same threads:Fixes #
🤖 Generated with Claude Code