Skip to content

chore: sync upstream 2026-08-18 - #6

Merged
yoanyombapro1234 merged 78 commits into
mainfrom
upstream
Aug 22, 2026
Merged

yoanyombapro1234 merged 78 commits into
mainfrom
upstream

Conversation

@yoanyombapro1234

Copy link
Copy Markdown

Nightly merge of get-bb/bb main into the upstream branch.

Conflict resolutions:

  • Keep the fork's dual-architecture desktop builds and marketing-harness naming.
  • Keep the fork's GitHub-hosted runners. The merge brought Blacksmith runners into unconflicted files; those are swapped back.
  • Keep the fork's nightly decoupling (needs: publish only).
  • Take the upstream plugin-sdk rename to @get-bb/plugin-sdk and the new publish-nightly job.
  • Adapt the upstream arm64-only packaging test to the fork's dual-arch config.

Desktop tests pass locally (221/221).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MwF3ayvUhMs6HfYAG8J5Mh

AndrewSB and others added 30 commits August 13, 2026 19:20
Fixes get-bb#1505.

## Problem

`ChildChannel.send` guarded the IPC write with `child.connected` alone:

```ts
send(message: ParentToChildMessage) {
  if (child.connected) {
    child.send(message);
  }
},
```

That flag stays `true` while the channel is tearing down, so the send
can still fail with `EPIPE`. The proxy pings the child from a bare
`setInterval`, so there is nothing above it to catch — the throw escapes
as an `uncaughtException` and kills the host daemon, taking every thread
on the host with it (`Thread interrupted because the host daemon
disconnected`).

The race opens widest when the daemon is already unhealthy: a stalled
event loop delays the ping timer past the child's unprocessed `exit`
event, so the timer fires at a child that is already gone. On my host
that meant heartbeat gaps of up to 403s, then `write EPIPE`, then 5 dead
threads. Full evidence in get-bb#1505.

## Fix

A failed send means "this child is gone" — which is precisely the
condition `createParcelWatcherProxy` already recovers from by killing,
respawning, and replaying every subscription. So route it there instead
of throwing:

- `try/catch` around `child.send` **and** a send callback, covering the
synchronous throw and the async write error.
- `child.on("error", ...)` — an unhandled `'error'` event on a
ChildProcess is the same fatal outcome by another route, and there was
no listener at all.
- SIGKILL before reporting the child gone, so a process that outlived
its pipe doesn't leak the inotify fds and threads its watches allocated.
- `onExit` listeners moved behind a `gone` latch, so a pipe failure
followed by the real `exit` doesn't drive two respawns.

`createChildChannel(child)` is split out from `createForkChannel()`
purely as a test seam — a real EPIPE only reproduces under a race.

## Tests

`packages/host-watcher/test/fork-channel.test.ts`, 5 cases: synchronous
EPIPE, async send failure, `'error'` event,
exit-reported-once-and-no-further-sends, and the healthy path.

These are real regression tests, not just coverage — reverting the guard
makes 4 of the 5 fail with exactly the EPIPE escape:

```
FAIL test/fork-channel.test.ts > swallows a synchronous EPIPE and reports the child as exited
FAIL test/fork-channel.test.ts > treats an asynchronous send failure the same way
FAIL test/fork-channel.test.ts > handles a child 'error' event rather than leaving it unhandled
FAIL test/fork-channel.test.ts > reports exit exactly once and stops sending after a failure
```

With the fix, all 44 `@bb/host-watcher` tests pass; `turbo run typecheck
--filter=@bb/host-watcher` and prettier are clean.

## Scope

This is the crash only. The event-loop stalls that widen the race are a
separate problem — after this change the watcher recycles cleanly
instead of taking the daemon down with it. No server↔daemon wire change,
so no `HOST_DAEMON_PROTOCOL_VERSION` bump.

> AGENT GENERATED: by Claude Opus 5

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

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Sawyer Hood <[email protected]>
Layer 1 of 4 in the plugin-SDK npm publishing stack (#1578). Targets
`main`.

Renames the plugin SDK package to `@get-bb/plugin-sdk` so it can publish
publicly under the org scope, and adds `publishConfig.access: "public"`.
Pure rename plus that one field: all imports and workspace deps (app,
server, CLI, templates, 19 in-repo plugins/examples), the bundled-types
banner (regenerated by the build, not hand-edited), scaffold tsconfig
path maps, docs, and skills.

Deliberately unchanged: `engines.bbPluginSdk`, `sdkMajor`/`sdkVersion`,
`PLUGIN_SDK_VERSION`, the `bundled-types/bb-plugin-sdk*.d.ts` file
names, and every other `@bb/*` package name. The plugin-build app shim
keeps `"@bb/plugin-sdk/app"` as a legacy alias so pre-rename plugin
sources still build until the migration window closes.

Known and accepted: the export map's `source` conditions point at
`src/`, which the tarball excludes. They stay because `apps/app`'s vite
config resolves `conditions: ["source"]` for workspace dev; standard
resolvers ignore unknown conditions, so external consumers are
unaffected unless they opt into a custom `source` condition.

Verified: project-wide stale-name grep (one deliberate legacy alias
remains), typecheck across 7 packages, SDK 82 + templates 36 tests
including the external scaffold test that npm-packs the tarball and
installs it into a fresh scaffold. Reviewed by GPT-5.6-Sol; both
findings addressed.

> AGENT GENERATED: by Claude Fable 5 (implementation: Claude Opus 5;
review: GPT-5.6-Sol)

Co-authored-by: Claude Fable 5 <[email protected]>
Layer 2 of 4 in the plugin-SDK npm publishing stack (#1578). Requires
get-bb#1574 (the rename) below it.

Closes get-bb#1134.

Adds a `publish-plugin-sdk` job to `publish-bb-app.yml`: build the SDK,
then publish only when the current version is absent from npm
(idempotent skip otherwise), via OIDC trusted publishing in the
`npm-release` environment. The job has no dependents, so a failure
cannot block the bb-app or desktop publishes. It honors
`RELEASE_DRY_RUN`, and always publishes to `latest` — the SDK has no
channel concept.

Adds the pin-to-host CI guard: `check-npm-version-guard.mjs` fails a PR
when the committed `bundled-types/` differ from the published content of
the current `PLUGIN_SDK_VERSION`, so npm can never silently lag the API.
Package/version-not-found passes (pre-bootstrap state); registry outages
exit 2 and surface as CI warnings, not failures. Decision logic is a
pure function with a unit-tested decision matrix.

Drive-by hardening from review: the main-only guards (both the new SDK
job and the pre-existing bb-app job) now compare `github.ref ==
'refs/heads/main'` — the old `ref_name` check accepted a tag named
`main`.

One-time bootstrap after this lands (documented in
`docs/bb-release-process.md`): manual first `npm publish`, then add the
trusted publisher entry on npmjs.com pointing at this workflow file and
the `npm-release` environment.

> AGENT GENERATED: by Claude Fable 5 (implementation: Claude Opus 5;
review: GPT-5.6-Sol)

Co-authored-by: Claude Fable 5 <[email protected]>
…et-bb#1576)

Layer 3 of 4 in the plugin-SDK npm publishing stack (#1578). Requires
get-bb#1575 (the publish pipeline) below it — a fresh scaffold pins a version
that must exist on npm, so this must not merge before the bootstrap
publish has run.

`bb plugin new` stops writing `types/` and the tsconfig path maps. The
generated package.json instead carries an exact-pinned
`@get-bb/plugin-sdk` devDependency equal to the host's
`PLUGIN_SDK_VERSION`, alongside the existing `engines.bbPluginSdk`
floor. After scaffolding, the CLI probes the registry and warns — never
fatally — when the host's SDK version is a positive registry miss (with
an `npm pack` + `file:` workaround); an unreachable registry only
reports the pin as unverified.

Legacy plugins are untouched: `resolvePluginSdkLayout` classifies a
plugin as vendored when either declaration file exists under `types/` or
a tsconfig path map (old or new package name; JSONC tolerated via
raw-text fallback) is present — ambiguity resolves to vendored, because
refreshing too much is recoverable and silently stopping a refresh is
not. `bb plugin build`/`dev`/`types` behave byte-for-byte as before on
vendored layouts and never write `types/` into package-layout plugins.

Verified: the external scaffold test now installs the packed tarball as
the scaffold's own dependency and typechecks with `skipLibCheck: false`
and no path maps, proving resolution from `node_modules`. Reviewed by
GPT-5.6-Sol; all three findings addressed (detector robustness, README
overclaim, probe wording), plus a fourth found in orchestration
(old-name path maps).

> AGENT GENERATED: by Claude Fable 5 (implementation: Claude Opus 5;
review: GPT-5.6-Sol)

Co-authored-by: Claude Fable 5 <[email protected]>
Layer 4 of 4 in the plugin-SDK npm publishing stack (#1578). Requires
get-bb#1576 (the scaffold switch) below it.

Adds `bb plugin migrate [path] [--yes]`: a consent-gated, idempotent,
one-shot conversion of a legacy plugin to the package layout — exact
devDependency pin, engines floor raised but never lowered, old-name and
new-name path maps removed (other paths like `@/*` kept), vendored
declaration files deleted, `types/` removed only when empty. The full
plan prints before any write; non-TTY without `--yes` prints the plan
and exits nonzero having changed nothing; symlinks and out-of-tree paths
abort before the first write.

`bb plugin types` now manages the pin on package-layout plugins: the
default invocation repins to the running host's SDK version (reporting
old → new, reminding to `npm install`), while `--check` stays read-only
with a nonzero exit on mismatch. Vendored behavior is unchanged, and
`build`/`dev` print a one-line migrate hint. The guide, `bb-cli`, and
`bb-plugin-authoring` surfaces document the new command, including an
explicit instruction that agents never migrate a plugin unasked.

Verified: 16 new tests (transform matrix, idempotency, symlink refusal,
non-TTY refusal, repin/--check), plus an end-to-end run of the real
built CLI against a hand-built legacy plugin in /tmp.

> AGENT GENERATED: by Claude Fable 5 (implementation: Claude Opus 5;
review: GPT-5.6-Sol, 9 findings fixed or documented)

Co-authored-by: Claude Fable 5 <[email protected]>
…b#1588)

Fixes the red CI on `main`.

## The failure

The `checks` job failed at **Check plugin SDK npm version guard**:

```
@get-bb/[email protected] is already published, but the package this
checkout would publish differs from it:
  - README.md
```

get-bb#1576 edited `packages/plugin-sdk/README.md`, which ships inside the npm
tarball (`files` lists it). get-bb#1575 had already published 0.4.3. The
publish job is publish-if-missing, so the corrected README could never
reach npm consumers. The guard was right to fail.

## The fix

Bump `PLUGIN_SDK_VERSION` and the `plugin-sdk` manifest to 0.4.4. That
is the whole fix. Since get-bb#1569 made `engines.bbPluginSdk` a floor rather
than a ceiling, the `>=0.4.3` pins across `examples/plugins/*`, the
first-party `plugins/*`, and the scaffold keep resolving and do not
move.

## Why a script

The fix is two files that must stay in sync, hand-edited.
`scripts/bump-plugin-sdk.mjs` makes it one command:

```bash
node scripts/bump-plugin-sdk.mjs --patch
```

It writes both files atomically, refuses to run when they already
disagree, and anchors its rewrite to the `PLUGIN_SDK_VERSION` export so
the version numbers in the surrounding comment are not rewritten. The
guard failure message now names the command, matching how
`check-version-lockstep.mjs` points at `scripts/bump-version.mjs`.

Semver parsing, comparison, and bump derivation move to
`scripts/lib/semver.mjs`, shared with the existing `bump-version.mjs`
rather than copied.

## Verification

- 5 new tests: both files move together, comment prose survives,
pre-existing drift is refused, a non-advancing version is refused, and
the manifest rolls back when the second rename fails.
- The 7 existing `bump-version` tests pass unchanged, covering the
semver extraction.
- `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs` → `PASS
— 0.4.4 is not on npm yet`.
- `build typecheck lint` green for `@bb/domain`, `@get-bb/plugin-sdk`,
`@bb/scripts`; tests green for those plus `@bb/templates`.

## Note

The version numbers left in `docs/configuration.md` and the plugins
guide are illustrative examples of the floor rule (`^0.4.1` still works
after the SDK moves to `0.4.3` or later), not claims about the current
version, so they stay put. Chasing them on every patch bump would be
churn the script cannot maintain.

> AGENT GENERATED: by Claude Opus 5

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

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
## Summary

- Keep pending interaction banners within the available composer width.
- Keep long commands horizontally scrollable.
- Wrap long paths and action details inside the approval card.

## Root cause

The banner and command container kept their intrinsic minimum width.
Long command and detail text could therefore expand the parent grid item
beyond the viewport.

## User impact

Approval cards now remain inside the thread view when commands, paths,
or action details are long.

## Validation

- `pnpm exec turbo run typecheck --filter=@bb/app`
- `git diff --check`

> AGENT GENERATED: by GPT-5
## Summary

- move the split dimming preference from pane headers to Settings >
Appearance
- label the preference as Fade inactive splits and place it at the
bottom of the list
- keep the existing local storage behavior and add a focused settings
test

## Tests

- `pnpm exec turbo run typecheck --filter=@bb/app`
- `pnpm exec turbo run test --filter=@bb/app -- --run
src/components/settings/SplitDimmingSetting.test.tsx
src/views/thread-detail/SplitThreadArea.test.tsx
src/views/thread-detail/ThreadDetailHeader.test.tsx`
- `pnpm exec turbo run lint --filter=@bb/app`
- Prettier check for all affected files

> AGENT GENERATED: by GPT-5
## Summary

- Make `threads.stop` release active and idle agent runtimes.
- Make daemon stop idempotent when no runtime remains.
- Wait for runtime release through the public route and plugin SDK.
- Document prompt cleanup for hidden plugin workers.
- Increase the host daemon protocol version to 120.

## Why

Plugins can create many hidden worker threads. Idle workers kept
provider processes until delayed archive cleanup, which could exhaust
host memory.

`threads.stop` now owns runtime release. It preserves thread state and
history, so callers can stop without archive and resume later.

Closes get-bb#1573.

## Validation

- Relevant Turbo type checks passed.
- Focused server tests passed: 2 files and 3 tests.
- Host daemon, SDK, CLI, plugin SDK, contract, and template suites
passed.
- The full server suite passed 1,499 tests.
- One unrelated file-mode test failed because the local umask produced
0664 instead of 0644.
- Live plugin CLI tests passed with real Codex and Claude Code workers.
- A stop-only Claude test removed the process, kept `archivedAt` null,
and resumed the same thread.

> AGENT GENERATED: by GPT-5 Codex


---

## Follow-up: separate a release from an interrupt

SlopCop found three defects in the awaited stop path. All three were
real, and
this branch now fixes them.

- An idle release reused the interrupt settlement. It appended a false
`system/thread/interrupted` event and interrupted the pending
interactions of
  a thread that nobody interrupted. A probe test reproduced the event.
- The daemon waited for an active turn that an idle thread never has, so
every
  release burned the full five-second timeout.
- A turn that completed between the caller's read and the stop
transaction made
  `stop.requested` a no-op, so the route returned before it released the
  still-loaded runtime.

`thread.stop` now carries a required `intent`. An `interrupt` keeps the
active-turn wait and the interrupt settlement. A `release` skips both,
so an
idle thread keeps its status, its timeline, and its pending
interactions. The
lost race falls through to a release instead of returning.

Two further issues found while fixing those:

- The awaited stop used `LIVE_DAEMON_COMMAND_TIMEOUT_MS`, which is 24
hours. A
wedged daemon held the HTTP request open. It now uses a one-minute
bound.
- The route returned 500 when the host was offline, where the old
fire-and-forget stop always returned `ok`. An unreachable host holds no
  runtime to release, so the release reports success.

The awaited stop also runs under the in-flight guard, so a duplicate
concurrent
stop no longer sends a second RPC.

Increase the host daemon protocol version to 121.

The branch is rebased onto `main`, which already carries the plugin SDK
0.4.4
bump from get-bb#1588. That version is not on npm yet, so the changed bundled
types
ship inside it and need no further bump.

### Validation

- Repo-wide `turbo run typecheck` passed: 58 tasks.
- Host daemon suite passed: 555 tests. Contract suite passed: 50 tests.
- CLI, SDK, plugin SDK, and templates suites passed.
- Server suite passed 1,501 tests. The one failure is the same unrelated
  file-mode test; it passes under `umask 022`.
- New tests cover all three findings: a release appends no interruption,
an
  interrupt still settles the thread, and the lost race still releases.
- A new daemon test asserts a release skips the active-turn wait.

### Second review round

A second SlopCop round on the fix found three more defects. All three
were
real, and all three are fixed.

- A release could lose a race with a turn that started after the server
read
the thread. The daemon would stop accepted work and leave the server
holding
  an active thread with no runtime. A release now skips a busy runtime.
- A concurrent stop returned before the first release finished. Awaited
stops
  now share one RPC and one result through a per-thread deduper.
- A failed release reported success. A release now propagates its
failure. An
interrupt still swallows one, because `stopping` is durable and the
backstops
  settle it. An unreachable host stays a success.

Four more tests cover these: the release-versus-start race, the shared
concurrent result, the propagated failure, and the disconnected host.

> AGENT GENERATED: by Claude Opus 5

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Bottom layer of the plugin marketplace stack (1/4). Implements get-bb#1097.

## Summary
- Adds the repository collection manifest `.bb/plugins.json`: a strict,
versioned index (`schemaVersion: 1`) naming nested plugins by relative
path, with duplicate-name, traversal, root-source, and
symlink-containment validation. The JSON schema is published at
`apps/web/public/schemas/plugins.schema.json`.
- Adds nested installs: `bb plugin install git:<url>[@ref]
--subdirectory <path>` as the primitive and `--plugin <name>` to resolve
a manifest entry; both also work for `path:` sources. An unselected
install into a manifest-bearing repo with no root plugin fails listing
the available entries.
- Persists the subdirectory end to end (`sourceGitSubdirectory` was
already plumbed through updates/rollback; installs now fill it), and
makes plugins from one repo@commit share a single cached checkout —
promotion moves only the selected subdirectory, with crash recovery, GC
protection for live siblings, and refreshed ancestor hashes.
- Ships the marketplace design doc (`docs/plugin-marketplace-plan.md`)
that the rest of the stack implements.
- Surfaces updated in the same change: CLI flags/help, install route
`selection` contract, SDK, `bb guide`, bb-cli and bb-plugin-authoring
skills.

## Validation
Turbo typecheck workspace-wide; server/app/cli/db suites green on this
branch standalone (one known machine-local umask failure in
`internal-skill-trees.test.ts`). New tests cover schema validation,
symlinked manifests/entries, shared-checkout promotion with sibling
integrity, nested update checks, and rollback.

Reviewed by a single adversarial pass plus a whole-stack final review;
findings were fixed in-branch.

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Fable 5 <[email protected]>
…1580)

Layer 2/4 of the plugin marketplace stack. Prerequisite: get-bb#1579
(collection manifests and nested installs).

## Summary
- Adds the marketplace manifest schema (strict, versioned): entries
carry id, display metadata, icon (host name or URL), tags, required
author, optional narrowing-only `engines`, and an npm (range XOR
dist-tag) or git (url/subdir/ref) source. Published at
`apps/web/public/schemas/marketplace.schema.json`.
- Generalizes provenance: catalog rows carry a marketplace name
(`bb-official` reserved; existing rows backfilled via generated Drizzle
migration 0094), flowing through registration, snapshots, and rollback
with legacy-shape compatibility.
- Adds catalog persistence and a last-known-good refresh loop:
conditional HTTP (ETag/Last-Modified) on startup and every 6h with an
injected fetch; failures, invalid payloads, and identity drift retain
the last valid catalog; a refresh writes discovery metadata only and
never runs plugin code. Catalog + icons publish in one transaction.
- Server-side icon pipeline: fetch at refresh, validate (compact-SVG
sanitizer, PNG/WebP magic bytes, 256 KB cap), cache, and serve from BB's
origin with nosniff/CSP — the app never hot-links external icon URLs.
- Replaces the static `GIT_OFFICIAL_PLUGINS` with a schema-validated
bundled seed snapshot; catalog installs route through the normal
pipeline with subdirectory selection and the engines-widening check
restored from the retired marketplace design.
- Adds the `bb-web` `/marketplace/v1/*` route reading an optional
`MARKETPLACE` R2 binding (ETag pass-through, cache headers, 404 when
absent), plus the `BB_MARKETPLACE_URL` config knob.

## Validation
Standalone green: workspace typecheck;
server/app/cli/db/config/templates/web suites (known umask failure
aside). Tests cover widening, refresh LKG semantics, icon rejection,
migration provenance states, legacy snapshot restore, and install-dialog
source identity.

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Layer 3/4 of the plugin marketplace stack. Prerequisite: get-bb#1580 (official
marketplace catalog).

## Summary
- Git plugin sources can now specify a semver range resolved against
tags: `git ls-remote` listing with annotated-tag peeling,
`[tagPrefix]vX.Y.Z` filtering, highest-satisfying selection with
npm-parity prerelease rules. `tagPrefix` supports monorepo per-plugin
tagging.
- Records the resolved tag and its commit, and refuses any later
resolution where a recorded tag points elsewhere — a moved tag is a
security error naming both commits, applied to range tracking and
exact-tag pins alike (legacy rows without a recorded commit are handled
without false positives). Missing recorded tags stop updates.
- Direct-install syntax: `git:<url>@^1.2.0` resolves over tags when no
ref of that literal name exists; a collision fails loudly with
`@ref:<name>` / `@semver:[<prefix>:]<range>` escape hatches. Bare
version tokens (`v1`, `v1.2.3`) stay literal tags. `--tag-prefix` added.
- Persistence via generated Drizzle migration 0095 models the selector
as a union (ref pair XOR range trio) with corrupt-row rejection;
marketplace git entries gain the `range`/`tagPrefix` variant with
JSON-schema parity, generating explicit `@semver:` specs so a
coincidental branch name can never shadow a listing's intent.
- Fixes two latent bugs found en route: a crash on `*` ranges in
prerelease detection (affected `npm:pkg@*`), and silent 8 KB output
truncation that could resolve a range against an incomplete tag listing
(now a byte-bounded declared cap that fails past the limit).

## Validation
Standalone green: workspace typecheck; server/cli/db/integration suites
(known umask failure aside). Tests cover tag filtering/ordering,
prerelease in/out, moved-tag refusal for both selector kinds, legacy
exact-tag movement, ambiguity errors, and corrupt selector rows.

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Top layer (4/4) of the plugin marketplace stack. Prerequisite: get-bb#1581
(git tag semver).

## Summary
- Adds the marketplace registry: `bb marketplace add | list | refresh |
remove` over new validated routes, accepting an https manifest URL,
`git:<url>[@ref]`, or `path:<dir>`. The manifest's own name is its
identity; collisions and the reserved `bb-official` are refused;
identity drift on refresh is rejected. Adding installs nothing.
- Install routing: `bb plugin install <entry>@<marketplace>`; a bare id
resolves across marketplaces (one match installs, several fail listing
qualified choices), with every existing source form untouched.
- Trust UX: a new install-plan endpoint reports the true resolved source
(npm package/range/registry, or git url/ref/range/subdir plus the exact
tag and commit) before anything runs; the CLI prompt and app dialog
render it, and the server verifies the approved facts — including the
git commit — at install time.
- Server-side fetch policy for third-party content: HTTPS on 443 only,
public DNS results, no credentials, no redirects; applied to manifests
and icons. Local marketplaces use real-path containment; git
marketplaces stage into a throwaway checkout that is cleaned up on the
next operation after a crash.
- Removal disposition: one transaction converts installed plugins to
`direct` provenance retaining full source intent and exact resolution —
update checks keep working afterward — then deletes catalog rows and
icons. Re-adding the same marketplace works.
- Browse groups by marketplace (official first) with tag-derived
sections; cards show authors and, for third-party entries, their
marketplace. Settings gains a Plugin marketplaces section mirroring the
CLI. SDK (`plugins.marketplaces.*`, `catalog.installPlan`), guide, and
skills updated in the same change.

## Validation
Standalone green: workspace typecheck and lint;
server/app/cli/db/integration suites (known umask failure aside).
End-to-end tests cover the add → install-with-plan → range update →
moved-tag refusal → removal → still-updates-as-direct lifecycle, icon
isolation, SSRF policy, and re-add.

No server↔daemon wire shape changes anywhere in the stack; protocol
version 119 is unchanged deliberately.

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
## Summary

- add one shared new-thread composer that owns picker configuration,
drafts, attachments, project switching, and request construction for
both the root page and plugin SDK adapter
- add one shared secondary-panel layout that owns desktop sizing,
compact drawer realization, native browser readiness, and hosted-pane
registration for root compose and thread detail
- leave page-specific welcome, fork, machine setup, metadata, timeline,
and macOS chrome behavior in thin wrappers
- centralize behavior-heavy tests and remove the resolved
duplicated-assembly audit item

## Testing

- pnpm exec turbo run typecheck --filter=@bb/app
- pnpm exec turbo run test --filter=@bb/app --force (341 files, 2,704
tests)
- pnpm exec turbo run build --filter=@bb/app

> AGENT GENERATED: by GPT-5 Codex
Handle DA1 queries at the host PTY boundary so shells do not time out while the browser terminal is detached. Remove handled queries from replay output to prevent duplicate responses after reconnects.

Amp-Thread-ID: https://ampcode.com/threads/T-019ffee9-be44-75c0-bd8a-1c653b61f62a
Co-authored-by: Amp <[email protected]>
Answer at most 8 DA1 queries for each PTY output chunk with a single write.
A flooded chunk could otherwise fill the unbounded node-pty write queue.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Negotiate the unstable ACP fork capability, route session/fork through the existing thread fork path, and persist the returned child session identity.

Amp-Thread-ID: https://ampcode.com/threads/T-019ffeea-31bc-70de-833b-bf6045f8578d
Co-authored-by: Amp <[email protected]>
Reject a cross-provider fork at the server boundary, a checkpoint fork that
ACP session/fork cannot honor, and a fork result that reuses an active
session ID.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Report Codex native subagents as open thread work, isolate a failed release
from later candidates, refresh ACP restore support when a settings change
replaces the session, and state that the experiment extends existing Codex
release rather than gating it.

Protocol version 122 now also covers the terminal device-attribute handler and
the ACP fork route that ship in the same stack.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
## Summary

- remove the stale Claude-only gate for sticky thread model and
reasoning overrides
- validate every override against the thread provider's active model
catalog, while retaining the requirement to start a new thread when
changing providers
- add route coverage for Codex, Claude Code, Pi, and ACP and document
how sticky overrides differ from per-turn follow-up overrides

## Context

The original implementation explicitly gated Codex out for v1. That
policy became stale: follow-up requests already send changed model and
reasoning settings through the same next-turn/runtime reconfiguration
paths, and the Codex, Pi, and ACP resume adapters all apply those
settings today.

Deleting the now-always-supported capability avoids rejecting future and
dynamically configured ACP providers through a second provider
allowlist.

## Testing

- `pnpm exec turbo run test --filter=@bb/server --
test/public/public-threads.execution-override.test.ts
test/services/threads/thread-execution-override.test.ts`
- `pnpm exec turbo run test --filter=@bb/agent-providers
--filter=@bb/templates`
- `pnpm exec turbo run typecheck --filter=@bb/server
--filter=@bb/agent-providers --filter=@bb/templates`

> AGENT GENERATED: by GPT-5
## Summary

- preserve the complete text of delta-only assistant, plan, and
reasoning items when an active turn crosses the timeline event budget
- supersede in-flight timeline reads and cancel paced trailing refetches
when `turn/completed` arrives, preventing an active-turn projection from
landing after the canonical completed projection
- snap the authoritative active-to-completed timeline height replacement
while preserving normal streaming height transitions and observer state
- add provider-shaped regression coverage for the sequence-window
closure and client completion handoff

## Problem

Pi, Claude, and ACP can begin assistant text with
`item/agentMessage/delta` and never emit `item/started`. When an
unfinished turn crossed the event budget, whole-item closure only
recognized buffered text through a backfilled `item/started` row. A
window cut inside a delta-only message therefore projected only the
suffix inside the budget instead of carrying its earlier deltas forward.

Completion then replaced that suffix with the canonical full
`item/completed` text. The normal streaming invalidation path
deliberately avoids cancelling active reads and schedules a paced
trailing refetch, so an older suffix projection could also land around
the terminal boundary before the trailing fetch restored the completed
shape. Animating the whole timeline height made these replacements look
like the response was streaming in reverse.

## Fix

Whole-item closure now identifies unfinished buffered text from either
its lifecycle row or its in-window delta event type, then uses the
existing prefix query to reconstruct the complete item. This is
provider-independent and also handles already-stored delta-only threads.

The client keeps its non-cancelling behavior for ordinary stream events.
Only the authoritative `turn/completed` boundary cancels obsolete work
and immediately requests the terminal shape. The completed-turn topology
replacement snaps through the existing zero-duration height path without
reinstalling the `ResizeObserver`, so settle and resize state remain
intact.

## Testing

- full `@bb/app` suite — 341 files and 2,707 tests passed
- full `@bb/server` suite — 166 files and 1,506 tests passed
- focused regressions after the final rebase — 46 app tests and 22
server pagination tests passed
- `pnpm exec turbo run typecheck --filter=@bb/server`
- `pnpm exec turbo run typecheck --filter=@bb/app`
- `git diff --check`

> AGENT GENERATED: by GPT-5.6
## Summary

- enrich ordinary untracked workspace status with exact line counts when
the snapshot fits both a 50-file and 8 MiB budget
- keep watcher invalidation cheap and content-free while retaining rich
file paths and statuses for larger snapshots
- return an exact bounded leading slice for diffs above 500 files, with
an explicit truncated signal instead of rejecting the diff
- preserve full-diff rename classification while bounding both
name-status and numstat streams
- keep tracked and untracked stats independent, enrich eligible files
around nested repositories, and cap optional status enrichment with a
10-second deadline
- surface exact line counts for the shown truncated slice in the app and
preserve truncation in the CLI
- bump the host daemon protocol to 123 and the plugin SDK to 0.4.6 after
rebasing over the versions already claimed on main

## Why

2292db1 correctly bounded process count, output buffers, and untracked
content work, but it removed useful line stats from every untracked
status and made all diffs above the ceiling unavailable. This keeps
those resource guarantees while restoring exact presentation for
ordinary cases and useful partial results for oversized diffs.

## Verification

- affected typechecks across app, CLI, host daemon, server, contracts,
host workspace, domain, plugin SDK, and templates
- app: 2,722 tests passed
- host daemon: 562 tests passed
- host workspace: 213 tests passed
- CLI: 449 tests passed
- plugin SDK: 86 tests passed
- domain: 141 tests passed
- templates and targeted host-daemon contract suites passed
- git diff --check

> AGENT GENERATED: by GPT-5.6
## Summary

- find Pierre source lines inside the renderer's open shadow root
- rerun target-line scrolling when the worker-backed code view mounts or
swaps to highlighted output
- center the target through the panel's vertical scroll offset without
touching Pierre's horizontal code scroller
- scope target lookup and cleanup to the active file preview
- add regression coverage for delayed worker readiness, shadow-root line
markup, and horizontal-scroll preservation

## Testing

- `pnpm exec turbo run test --filter=@bb/app --force -- --run
src/components/secondary-panel/FilePreview.test.tsx` (14/14)
- `pnpm exec turbo run typecheck --filter=@bb/app`
- `pnpm exec turbo run lint --filter=@bb/app` (passes with existing
warnings)
- SawyerHood/dev-browser against the real dev app: clicked an assistant
`file://.../FilePreview.tsx#L1100` link with Pierre's inner code
scroller preset to `scrollLeft=240`; confirmed line 1100 was selected
and fully visible after vertical scrolling to `scrollTop=19417`, while
horizontal scroll remained exactly `240`

> AGENT GENERATED: by GPT-5.6 Codex
Delay local helper discovery until the user explicitly enables local editor integration, improve state-specific guidance, and document remote-browser setup and troubleshooting.
A marketplace listing declared `engines.bb` and `engines.bbPluginSdk`, and
bb judged an entry's compatibility from those ranges before it fetched
anything. A listing's copy of a range is a second source of truth: it goes
stale the moment the plugin publishes a new version, and a stale range hides
a plugin that this bb can in fact run.

Drop `engines` from the marketplace schema, the published JSON schema, and
the bundled seed. The store now offers every listed entry, and the install
pipeline reads `engines.bb` and `engines.bbPluginSdk` from the fetched
plugin's own package.json and refuses there. That check already ran on every
managed git and npm install; catalog installs use the same paths.

This also fixes an empty first-run catalog: both seed entries declared
`bbPluginSdk: "^0.5.0"` while PLUGIN_SDK_VERSION is 0.4.5, so both evaluated
as incompatible and the Browse tab filtered them out.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`registerInstalled` skipped `validateInstallDir` whenever a caller passed
`validated: true`, and every cache-hit path does. The engine and SDK checks
live inside that call, so `refuseEngineMismatch: true` was silently ignored
on exactly those paths: a cached artifact bb accepted before a version change
could register again even when this build cannot run it.

Move the check to `registerInstalled` itself, the one chokepoint every
managed registration passes through, so the plugin's package.json is read on
every path rather than only on a fresh materialization.

Found by SlopCop on get-bb#1617.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ymichael and others added 29 commits August 17, 2026 14:58
## Summary

- replace the model picker loading label with trigger and menu skeletons
- keep built-in provider branding visible while model discovery is
pending
- preserve the loading state while placeholder provider data is active

## Testing

- `pnpm exec turbo run test --filter=@bb/app --force --
src/components/pickers/ModelReasoningPicker.test.tsx
src/hooks/queries/system-queries.test.tsx
src/hooks/useThreadCreationOptions.test.tsx`
- `pnpm exec turbo run typecheck --filter=@bb/app`

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1728"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789595653&installation_model_id=432835&pr_number=1728&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1728&signature=8c8a893d285abd8b26deda7f8d21cc14edd853686bdcd19fd4b921f13a5983d2"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->
## Summary

- add a partial covering index for timeline parent-crossing lookups
- aggregate background-task lifecycle state in one indexed scan
- remove full `dbstat` scans from incremental vacuum passes
- add migration, query-plan regressions, and maintenance coverage

## Local database benchmark

Benchmarked against an isolated online-backup copy of the 1.35 GiB local
database:

- index migration: 3.231 seconds; 800 KiB; no database-file growth
because it reused freelist pages
- parent crossing: 436 ms to 0.437 ms on the first run
- background-task aggregation: 199 ms to 0.91 ms on the first run, with
identical results
- incremental vacuum: 5,007 ms to 29.8 ms while reclaiming the same
pages

The live source database was opened read-only and was not migrated or
modified.

## Validation

- `pnpm exec turbo run typecheck --filter=@bb/db`
- `pnpm exec turbo run typecheck --filter=@bb/server`
- `pnpm exec turbo run test --filter=@bb/db --force` (387 tests)
- `pnpm exec turbo run test --filter=@bb/server --force` (1,693 tests)
- migration repair/replay and SQLite query-plan regression tests

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1716"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789595137&installation_model_id=432835&pr_number=1716&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1716&signature=67f71e1ee069b2db504c8ebdde4c1e7ba01d73fc50b1c18e9fb0f8458ddda8c9"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->
## Summary

- remove abandoned dist/.host-stage-* directories before the next host
build creates its staging directory
- leave unrelated dist staging directories untouched
- add regression coverage for cleanup of a non-empty interrupted stage

## Testing

- pnpm exec turbo run test --filter=@bb/plugin-build --force
- pnpm exec turbo run typecheck --filter=@bb/plugin-build

Fixes get-bb#1726

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1730"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789595990&installation_model_id=432835&pr_number=1730&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1730&signature=2f164407a9fca0dab6cfdb96777638e406137d3dec2699fa4efeadab704d54ff"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->
Closes get-bb#1723

## Summary
- keep the well-known Codex, Claude Code, Pi, and Cursor inline icon
fallbacks
- retain plugin-registered icons as live overrides when their frontends
are available
- remove the stale comment describing the fallback map as
scheduled-expiry debt

## Validation
- `pnpm exec turbo run test --filter=@bb/app -- --run
src/lib/provider-icon.test.tsx` (5 passing)

> AGENT GENERATED: by GPT-5 Codex
## Summary

- centralize plugin app registrations in one collector and resolve them
through typed append, customize, and replacement helpers
- route existing composer, panel-action, pending-interaction,
message-directive, sidebar, and file-opener consumers through that
foundation
- automatically activate replacement providers while retaining
per-client Automatic, Built-in, and explicit-provider controls
- let sidebar and file-opener replacements conditionally render BB's
instance-bound original component, with crash-safe fallback
- add Alpha and Beta diagnostic plugins for live replacement precedence,
delegation, settings, disable, and crash testing

## User-facing changes

- installing a thread-list or file-opener replacement makes it active
automatically when the client is set to Automatic
- Appearance and File opener settings remain available for choosing
Built-in or pinning a specific provider
- crashing replacement components fall back to BB's renderer instead of
leaving the surface unavailable

## Testing

- `pnpm exec turbo run typecheck --filter=@bb/app
--filter=@get-bb/plugin-sdk --filter=@bb/templates
--filter=bb-plugin-replacement-lab-alpha
--filter=bb-plugin-replacement-lab-beta`
- `pnpm exec turbo run test --filter=@bb/app --force` — 351 files, 2,787
tests passed
- live-tested both diagnostic plugins in an isolated development
instance and compared them against an `origin/main` instance

> AGENT GENERATED: by GPT-5.6 Codex
…g plugins (get-bb#1729)

Executes the follow-up recorded in `docs/api_to_audit.md` under the
`@get-bb/plugin-sdk/provider-bridge` audit (item 2, surface size):
repatriate single-consumer bridge-kit exports to their owning plugins
and shrink the published surface. Pure move/deletion refactor — no
behavior change, no wire shapes, no version bumps.

## What moved (each verified single-consumer)

- `extractEnvOverrides` (bridge-kit `adapter-utils.ts`) →
`plugins/provider-claude-code/src/bridge/env-overrides.ts`, with its
round-trip test.
- `getMessageContentTypes` (bridge-kit `provider-visibility-helpers.ts`)
→ module-local in `plugins/provider-claude-code/src/visibility.ts`.
- `pending-interaction-normalization.ts` (whole module + test) →
`plugins/provider-codex/src/`; its only consumer was codex's
`interactive-requests.ts`. The surface gained
`pendingInteractionRequestedPermissionProfileSchema` (the domain
composite the normalizer parses against; its component siblings were
already exported).
- `cloneReasoningEfforts` → out of `@bb/domain` into
`plugins/provider-claude-code/src/model-catalog.ts` — both consumers are
claude-code, and a helper function in `@bb/domain` violated its
types/schemas-only rule.

## What deliberately stayed

The audit item's originally named candidates turned out to have core
consumers, so they stay; the sweep covered every export on the surface:

- `claudeCodeMockCliTrafficConfigSchema` + default: type/default
consumed by `@bb/agent-runtime` and the server.
- `claudeTaskToolNameSchema` / `claudeTaskToolOutputSchema`: share a
contract file with exports `@bb/thread-view` renders.
- `acpNativeReasoningSchema`, `acpPermissionCliSchema`,
`acpReasoningCliSchema`: parsed by `host-daemon-contract` and
`@bb/config`.
- Workflow snapshot types: rendered by the app.

`docs/api_to_audit.md` item 2 is updated to record this ground truth so
the stabilization audit starts from facts.

## Numbers and verification

- Published surface: 197 → 194 named exports; regenerated
`bundled-types/bb-plugin-sdk-provider-bridge.d.ts` 6,615 → 6,498 lines.
Net −112 lines.
- Typecheck green via turbo for `provider-bridge-protocol`,
`plugin-sdk`, `domain`, all four provider plugins, and downstream
`agent-runtime`/`thread-view`/`server`/`config`/`host-daemon-contract`.
- Tests pass: domain (25 files), provider-bridge-protocol (9),
provider-claude-code (18), provider-codex (13), provider-acp (7).



<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1729"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789595904&installation_model_id=432835&pr_number=1729&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1729&signature=b2bb7d7eba7fd6bcf0a985977753eb4833db9e732b5e4fa86ababca2813c351e"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

## Also in this PR: two small follow-up fixes from the get-bb#1640 issue sweep

Each is its own commit and closes its issue on merge:

- **Fixes get-bb#1722** — `resolveProviderWorkflowsEnabled` applied the
`claudeCodeWorkflowsDisabled` app setting to every workflows-capable
provider; it is now scoped to `providerId === "claude-code"`.
Behavior-preserving today (claude-code is the only provider declaring
`supportsWorkflows: true`), with a server test proving a non-claude
workflows-capable provider ignores the setting while claude-code honors
it.
- **Fixes get-bb#1725** — plugin dev build problems were always labeled
`frontend bundle build failed:` (even for host build failures) and stuck
after a later successful rebuild through the enable/load path. Problems
are now stored per build target (`frontend` / `host`) with matching
labels, and each build path clears its own target on success. Unit test
covers per-target labels, independent clearing, and
persistence-until-cleared.

Verification for the full stack: `@bb/server` suite 183 files / 1721
tests green, plus typecheck via turbo.

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

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Adds an **Acknowledgements** section at the end of the README with a "CI
powered by Blacksmith" image that links to https://blacksmith.sh. The
image lives at `assets/blacksmith-ci.png`.

> AGENT GENERATED: by Claude Opus 5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1737"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789599054&installation_model_id=432835&pr_number=1737&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1737&signature=c26bec1b8cd8f5f95cab5366b11dc196a8783761671174cfe72e8e3fb549fb03"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: Claude <[email protected]>
Bumps the "CI powered by Blacksmith" image in the README
Acknowledgements section from 240px to 400px wide. Follow-up to get-bb#1737.

> AGENT GENERATED: by Claude Opus 5

Co-authored-by: Claude <[email protected]>
## Summary

- settle open background tasks when a successful thread stop unloads
their provider runtime
- surface nested shell commands after their owning background agent
settles, while preserving active-parent deduplication
- add targeted task lookup and regression coverage for runtime release
and timeline projection

## Root cause

Successful idle-runtime releases did not persist terminal
background-task events. Separately, thread detail filtered nested tasks
even after the owning agent had finished, while the sidebar counted the
still-open shell command.

## Testing

- `pnpm exec turbo run test --filter=@bb/db --filter=@bb/thread-view
--filter=@bb/server --force` (2,476 tests)
- `pnpm exec turbo run typecheck --filter=@bb/server
--filter=@bb/thread-view --filter=@bb/db --force`
- `git diff --check`

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1736"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789598938&installation_model_id=432835&pr_number=1736&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1736&signature=d802d2ccc596bad1bfe8eb4ef998d6d1d6ce7021c3aca83ed760fc1831430850"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->
## Summary
- keep the representative reused-worktree thread available as an
@-mention target
- separate composer self-exclusion from the thread used for storage-file
suggestions
- add regression coverage for a reused worktree with exactly one thread

## Root cause
The new-thread composer passed the reused worktree representative thread
as currentThreadId. The mention builder correctly excludes
currentThreadId, so a worktree with one thread had no thread mention
candidates.

## Validation
- full @bb/app test suite: 353 files, 2,802 tests passed
- @bb/app typecheck passed
- @bb/app lint passed with the existing warning baseline and no errors
- Prettier check passed

> AGENT GENERATED: by GPT-5
## Summary

- apply tabular numerals to live and completed timeline durations
- stabilize background activity, goal elapsed-time, and machine-code
countdown digits
- preserve the existing duration formatting and update cadence

## Testing

- pnpm exec turbo run test --filter=@bb/app -- --run
src/components/promptbox/banner/ThreadGoalCard.test.tsx
src/components/dialogs/AddMachineDialog.test.tsx
- pnpm exec turbo run typecheck --filter=@bb/app
- pnpm exec turbo run lint --filter=@bb/app (zero errors; existing
warnings remain)

> AGENT GENERATED: by GPT-5
## Summary

- let the diff selector, large-change tally, and actions wrap from the
toolbar container's available width
- preserve a readable selector basis and non-shrinking stats/actions
without adding viewport or resize state
- align wrapped stats with the selector label inset and cover the
intrinsic layout policy plus control operability

## Root cause

The toolbar switched layouts only when the entire app entered its
compact drawer. A resizable right panel on a 900px-wide page could
therefore remain in the inline layout at just 257px wide, shrinking the
selector to 0px and truncating the large-change tally. The revised flex
policy wraps intrinsically from the toolbar's own width.

## Validation

- `pnpm exec turbo run test --filter=@bb/app --force --
src/components/secondary-panel/ThreadSecondaryPanel.test.ts
src/components/secondary-panel/ThreadSecondaryPanel.collapseControl.test.tsx`
(17 tests)
- `pnpm exec turbo run typecheck --filter=@bb/app`
- `pnpm exec turbo run lint --filter=@bb/app --force` (no errors)
- dev-browser mobile QA at 412x915 with 351 files, +38,872 / -22,464;
verified readable controls, responsive menu, file expand/collapse, and
no page-level overflow
- dev-browser narrow desktop-panel QA at a 900x915 viewport and 257px
toolbar; verified the selector stays readable, the full tally remains
visible, controls wrap, and no page-level overflow appears
- dev-browser wide desktop sanity check at 1440x1000; verified all
controls remain on one row

Closes get-bb#1652

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1733"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789596698&installation_model_id=432835&pr_number=1733&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1733&signature=2d3837d6c59a7d70d8685151ead5cd86c18e4a5ee6959922b5e299d94aecc446"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

> AGENT GENERATED: by GPT-5.6
## Summary

- The \`submit-a-plugin\` skill now tells the agent to always vendor the
plugin icon into the marketplace \`icons/\` directory.
- The skill forbids remote icon URLs, CDN links,
\`raw.githubusercontent.com\` links, and paths into the plugin
repository.
- The pre-PR review checklist has a new item for the vendored icon.

## Tests

Documentation-only change to a builtin skill. No tests reference the
skill text.

> AGENT GENERATED: by Claude Opus 5

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

Co-authored-by: Claude <[email protected]>
## Summary

- Add a `plugin_installed` telemetry event. The event fires at
`registerInstalled`, the one chokepoint that every user install passes
through (CLI, store, and API; git, npm, path, and builtin sources).
Boot-time reconcile of auto-installed bundled plugins does not use it,
so it does not count.
- Public plugins (bundled builtins and marketplace catalog entries)
report `plugin_id` and `marketplace`, so PostHog can rank plugins by
install count: trend on `plugin_installed`, breakdown by `plugin_id`,
aggregation "unique users".
- Direct path/git/npm installs report `plugin_id: null`. Their ids and
sources can name private code, so they report only `provenance` and
`source_kind`.
- Pass the existing server `telemetry` service into the plugin service.

No wire change between the server and host daemon, so no protocol
version bump.

## Tests

- `pnpm exec turbo run typecheck --filter=@bb/server`
- `pnpm exec turbo run test --filter=@bb/server --
test/services/plugins/plugin-service.test.ts
test/services/telemetry.test.ts` (27 passed). New tests: one install
emits exactly one event; reload, enable/disable, and restart emit none;
the catalog payload names the plugin.

> AGENT GENERATED: by Claude Opus 5

---------

Co-authored-by: Claude <[email protected]>
## Summary

- build the plugin SDK runtime before server dev starts, because
first-party provider host builds intentionally bundle the published
`provider-bridge` entry
- retain provider declarations as unavailable when their host plugin
fails, keep their tabs stable, show a provider-specific picker error,
and prevent unavailable-provider submission
- preserve the same-route authoritative provider roster during
provider-specific model loading, so dynamic ACP tabs stay visible
without showing stale models
- avoid provider-tab snapback when the authoritative provider response
arrives after a tab switch
- reap only old plugin-host stage directories so concurrent integration
builds cannot delete each other’s active output
- regenerate the plugin SDK template declarations required by the
Packages consistency check

## Verification

- `pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/app
--filter=@bb/plugin-build`
- `pnpm exec turbo run test --filter=@bb/plugin-build --force`
- `pnpm exec turbo run test --filter=@bb/server --force --
test/services/plugins/plugin-provider-registration.test.ts
test/system/execution-options.test.ts
test/threads/thread-default-policy.test.ts`
- `pnpm exec turbo run test --filter=@bb/app --force --
src/components/pickers/ModelReasoningPicker.test.tsx
src/hooks/useThreadCreationOptions.test.tsx`
- `pnpm exec turbo run test --filter=@bb/app -- --run
src/hooks/useThreadCreationOptions.test.tsx
src/hooks/queries/system-queries.test.tsx`
- `pnpm exec turbo run test --filter=@bb/integration-tests --force --
fake/recovery/session-continuity.test.ts
fake/smoke/environment-actions.test.ts`
- `pnpm exec turbo run lint --filter=@bb/app` (passes with existing
warnings)
- `node packages/templates/scripts/generate-templates.mjs --check`
- `git diff --check`

> AGENT GENERATED: by GPT-5
## Summary

- render the new-thread launcher as a normal active `New tab` pill in
the shared right-panel tab strip
- keep the shared add-tab, tab-close, resize, hide, and responsive
drawer interactions aligned with thread panels
- hide the panel when its lone launcher tab is closed, avoiding an
immediate close-and-respawn loop

## Why

Root compose was explicitly marking its launcher tab as hidden. The
panel therefore opened to an unlabeled launcher body with only a bare
`+`, even though it already used the same panel shell as thread pages.

This replaces closed PR get-bb#1700, which changed only the external opener
color and did not address the requested tabbed panel.

## Intentional differences

The new-thread surface still omits Info, Diff, and conversation
full-screen controls because there is no materialized thread, thread
metadata, or conversation pane yet. The panel shell, tab strip,
launcher, resizing, hide control, persistence, and compact drawer remain
shared.

## Verification

- focused `@bb/app` panel tests — 73 tests passed
- `pnpm exec turbo run typecheck --filter=@bb/app` — passed
- `pnpm exec turbo run lint --filter=@bb/app` — passed with repository
baseline warnings and no errors
- changed-file ESLint for `RootComposeView.tsx` and its test — passed
with no findings
- real BB UI at 390×844, 768×900, 1440×900, and 3440×1440 — visible
active `New tab`, adjacent add-tab control, lone-tab close behavior, and
five open/close cycles passed
- `git diff --check` — passed

BB-Thread-ID: thr_bwikffmsvp

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1715"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789594897&installation_model_id=432835&pr_number=1715&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1715&signature=ab96e0f8229a393a4bf8523dd3578325ddd32583e5ae1b636c0f1f3cdc379272"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

---------

Co-authored-by: Michael Yong <[email protected]>
Ordered lists in rendered markdown indent 20px (`pl-5`), but a `10.`
marker at `text-sm` is ~21px wide and paints outside the content box.
Every message body that has not been expanded carries `overflow-hidden`
(it also holds the 15-line clamp), and that box has no padding of its
own, so its edge sits on the bubble content edge and cuts the marker:
`10.` renders as `l0.`, `11.` as `l1.`.

Widen ordered lists to 28px (`pl-7`). Bullet lists are unchanged — disc
markers are narrow and never overflowed.

## Reproduction

Measured from a report screenshot: the clip sits 18.5 CSS px from the
bubble border, matching `1px border + 16px padding`. The `1` glyph loses
its flag and the left half of its foot serif on the same vertical line,
which is a clip rather than a font problem. Reproduced in the
`UserMessageMarkdown` story in its default, non-expanded state, and
confirmed fixed at `pl-7`. Both a short list starting at 7 and the
pre-existing long collapsible "Migration rollout" story hit it.

The composer (`ComposerEditorSlot`) uses the same `pl-5` but does not
clip: its scroll container has 16px of padding, so the overhang has
room. Verified live with rich-text editing on; left unchanged.

## Verification

- `pnpm exec turbo run typecheck --filter=@bb/app` — clean
- `pnpm exec turbo run test --filter=@bb/app` — 2807 passed

> AGENT GENERATED: by Claude Opus 5
…et-bb#1765)

This reverts commit 9e102e0 (get-bb#1759).

## Tests

- Clean `git revert` of a one-line change. No new tests.

> AGENT GENERATED: by Claude Opus 5
## Summary

- carry the requested model from Claude Code's spawning `Agent` call
into background-agent timeline rows, including completed and restarted
task generations
- show that model in the background-agent banner and its accessible name
- summarize compact layouts as `Running N background agents` and make
even a single agent expandable to reveal its full description and model
- preserve the detailed, non-expandable single-agent row on wider
screens
- cover model projection and responsive banner semantics with focused
regression tests

## Root cause

The single-agent banner always used a non-expandable one-line `truncate`
layout, so the label and task description collapsed to an ellipsis at
mobile widths. Background-task events also do not include the requested
model; although Claude Code includes it on the parent `Agent` tool call,
the timeline projection discarded that metadata before building the
banner row. Restarted Claude task generations may omit that parent link,
and the original enrichment ran only inside the pending-task selector,
so restarted and terminal rows could still lose the resolved model.

## Validation

- `pnpm exec turbo run test --filter=@bb/thread-view --force` (373
tests)
- `pnpm exec turbo run test --filter=@bb/server-contract --force` (45
tests)
- `pnpm exec turbo run test --filter=@bb/app --force -- --run
src/components/promptbox/banner/ThreadBackgroundCommandsCard.test.tsx`
- `pnpm exec turbo run typecheck --filter=@bb/server-contract
--filter=@bb/thread-view --filter=@bb/app --filter=@get-bb/plugin-sdk
--filter=@bb/templates`
- `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs`
- live Claude Code Sonnet-to-Haiku background-agent QA through
`dev-browser` at 412x915 and 1440x900

Closes get-bb#1653

> AGENT GENERATED: by GPT-5.6
Fixes get-bb#1612.

## Summary

- `bb_workflow_run.args` and `bb_workflow_result.value` used zod 4's
`z.json()`, which compiles to a self-referential `$defs` entry. Grok 4.6
rejects any tool list containing a recursive `$ref`, so every turn on
`cursor-grok-4.6-*` died immediately with a generic `NonRetriableError:
Provider Error` before the model ran. Grok 4.5 tolerates it, which is
why it surfaced only on 4.6.
- Both inputs are now declared as `unknown`, so the wire schema stays
flat, and are narrowed to `JsonValue` at each call site.
`assertJsonValue` moves out of `runtime.ts` into a small `json-value.ts`
so the tool boundary and the sandbox boundary share one validator — the
deep JSON-compatibility checking `z.json()` did at parse time still
happens, just at the call site.
- `bb_workflow_result` returns the validation failure as a tool error
instead of throwing, matching how `bb_workflow_run` already reports bad
input.

## Test plan

- [x] `pnpm exec turbo run test typecheck --filter=bb-plugin-workflows`
— 220 passed, typecheck clean
- [x] New harness test `registers tool schemas without recursive $refs`
asserts no registered workflow tool schema contains `$ref` or `$defs`,
and fails as expected when `z.json()` is put back
- [x] Grok 4.6 thread in a live bb with this build loaded: normal turn
completes (previously an instant provider error)
- [x] Grok 4.6 calling `bb_workflow_run` with a nested object as `args`
(`{"nested":{"token":"TOOL-OK","list":[1,2,{"deep":null}]}}`): workflow
ran and returned `{"token":"TOOL-OK","reply":"TOOL-OK"}`, confirming
args still reach the script verbatim
- [x] `bb workflows run --script ... --args ...` with the same nested
payload: succeeded

Note: the flat schema no longer advertises "any JSON value" to the
model, only the description does. In practice the models tested passed
real JSON objects unchanged.

> AGENT GENERATED: by Claude Opus 5

Made with [Cursor](https://cursor.com)

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Michael Yong <[email protected]>
…b#1752)

## Summary

This PR captures the fixes found during a full lint, build, test,
integration-test, and manual QA run, with extra coverage focused on
agent providers and recovery behavior.

- preserve Pi's stable provider identity when a session is resumed under
a different bb routing identity
- make daemon recovery converge reliably across disconnect and
terminal-state races
- prevent duplicate provider item settlements while respecting explicit
`item/started` lifecycle resets
- bound Codex bridge settlement tracking so command output is never
retained in deduplication state
- make ignored live web-search probes retry correctly within a
sufficient outer test deadline
- remove timing and shared-state flakes across provider permissions,
dynamic ACP, recovery, plugin lifecycle, injected skills, repository
discovery, app artifacts, and iPad command typeahead
- keep the manual recovery runbook resilient to expected
disconnect-settlement races

## Bugs and fixes

| Area | Problem | Fix / regression coverage |
|---|---|---|
| Pi resume | Resume used the current bb thread ID as Pi's
persisted-session identity, which could reopen or discard the wrong
JSONL file | Preserve `providerThreadId` separately from the live bb
routing ID; verify reopen, identity reporting, and discard against the
original file |
| Daemon recovery | Recovery could race terminal state settlement or
submit a continuation with stale turn targeting | Re-read state after
settlement, use auto-targeted fresh turns, and cover crash/restart
permutations |
| Provider events | Retried terminal items or independent
server/provider denial settlement could create duplicate canonical
completions | Suppress repeated Codex settlements with bounded item-ID
state and enforce storage-level idempotency |
| Item lifecycle | A broad storage guard could drop valid completions
when an item ID was explicitly reopened, including thread-scoped
background tasks | Reset settlement state on the latest `item/started`;
cover same-turn and background ID reuse |
| Event persistence performance | Per-completion synchronous lifecycle
queries could scan large histories and block recovery batches | Preload
requested lifecycle keys once per SQLite variable batch through a
generated partial index; pin the query plan in tests |
| Live web search | Ignored probes were treated as completed instead of
retried, while the retry test's 90-second outer limit was shorter than
its two possible 60-second waits | Retry ignored probes, cover the
behavior, and allow 150 seconds for the complete scenario |
| Validation flakes | Loaded runners exposed short budgets, shared
fixtures, redundant builds, and focus timing races | Bound deadlines,
isolate state, widen intentional budgets, avoid redundant SDK rebuilds,
and synchronize focus assertions |
| Manual recovery QA | An expected `active -> error` disconnect
transition could fail the runbook before recovery was attempted | Treat
the intermediate wait as observational, re-read state, and recover
unless already idle |

## Validation

- full lint pass
- full build pass
- full unit/test pass
- full integration-test pass
- complete `qa/manual-runbook.md` pass, including agent-provider,
dynamic ACP, permission, and daemon-recovery scenarios
- follow-up review fixes: 390 DB tests, 164 Codex-provider tests, live
web-normalization integration, relevant typechecks, server/host-daemon
builds, and repository lint with zero errors

> AGENT GENERATED: by GPT-5 Codex
…registry, repatriate single-consumer helpers (get-bb#1742)

De-overfits `bridge-kit` following a two-reviewer adversarial audit of
every module and export, calibrated on one ruling: **GOOD** = code
encoding bb-side invariants (canonical event/item semantics, wire
contracts both sides validate); **BAD** = a frame hosting per-provider
knowledge injected through generics, callbacks, or config objects. ~80%
of the kit survived the audit as genuine invariants (notably
`turn-state`, whose suspect generic-plus-hooks shape is driven
identically by all three consumers); this PR removes the part that
didn't. One commit per finding group:

1. **Unwind `buildToolUseItem`** — the router was an if-chain each
bridge could write itself, inverted into the kit via name-sets + parser
callbacks + an escape hatch supplied by exactly one provider. The
invariant constructors stay (`buildFileChangeItem`, new
`buildGenericToolCallItem` fallback); claude-code and pi own explicit
switches, preserving null-parse→generic fallback and parent-id
threading.
2. **Split `bridge-session-registry`** — only 2 of 4 bridges used it,
and over half its option surface existed for one consumer each
(`nextToolCallRequestId`, `resolveAdditionalPendingWork`, `stopSession`
claude-code-only; `TCloseResult` pi-only). The genuinely shared kernel
survives as `createPendingToolCallTracker` (flat requestId→resolver map
— also removes the per-response all-sessions scan); session
orchestration inlined into the two bridges. **Reviewer note:**
claude-code's interactive requests previously shared the tool-call id
counter; they now use string-prefixed ids (`interaction-N`), keeping the
id spaces collision-free. Wire-compatible: JSON-RPC ids are `string |
number` and both ends treat them opaquely.
3. **One decoder for canonical tool-call requests** —
`decodeNativeProviderToolCallRequest` had zero consumers anywhere
(deleted); `bridge-protocol-adapter` reimplemented
`decodeNormalizedProviderToolCallRequest` inline (now delegates);
`providerToolCallResponseSchema` privatized.
4. **Repatriations** — `buildShellEnvironmentPolicyConfig` →
provider-codex (its `shell_environment_policy.set.*` namespace is
codex-native config); claude-code stops round-tripping env vars through
codex-style keys and carries a plain map under its own bag key (both
ends verified inside the plugin — nothing crosses the daemon wire
schema). `diffCumulativeText` → pi, its only consumer.
5. **Dead surface + trims** — `finishOpenProviderTurn` (only caller was
a test) deleted; two per-provider policy booleans removed from the good
constructors (`completeWebItems`, `preserveUndefinedToolCallFields`);
the universally-identical `drainAcceptedUserMessages` call folded into
the turn-state core; `CounterScopedItemIdState`'s lying `reasoning*`
field names renamed (compaction ids flow through them too);
`contentWrapperSchema` and dead arg interfaces un-exported. Includes the
`docs/api_to_audit.md` record and regenerated bundled types.

## Numbers

- Published surface: 196 → 192 names (−7 removed, +3 added: the two kept
constructors and the tracker).
- 35 files, +972/−908 (+825/−738 excluding regenerated bundled types).
Insertions exceed deletions by design: the audit trades kit generics and
single-consumer options for deliberate, explicit per-consumer code, plus
~200 lines of new tests (tracker + moved diff tests).

## Verification

- Typecheck green via turbo: provider-bridge-protocol, plugin-sdk,
agent-runtime, provider-claude-code, provider-codex, provider-acp,
@bb/server.
- Tests green via turbo (post-rebase onto the merged get-bb#1729): 74 + 98 +
316 + 260 + 164 + 144 + 1722 across those packages.
- No wire-shape changes, no protocol or SDK version bumps, pi's
daemon-bundled path untouched.

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

> AGENT GENERATED: by Claude Fable 5

---------

Co-authored-by: Claude Fable 5 <[email protected]>
## Summary

- keep Pi-style automatic compaction pending after its owning turn
completes while the thread is idle
- allow the later explicit compaction event to settle the row as
completed
- preserve interruption behavior when the thread receives a real
interruption event

## Testing

- `pnpm exec turbo run test --filter=@bb/thread-view --force`
- `pnpm exec turbo run typecheck --filter=@bb/thread-view`
- `pnpm exec prettier --check
packages/thread-view/src/event-projection-state.ts
packages/thread-view/test/timeline-interruption.test.ts`
- `git diff --check`

> AGENT GENERATED: by GPT-5
…ies (get-bb#1783)

## Summary

- `WorkspaceChangesList` scroll mode (the prompt banner) now renders at
most 200 rows and adds a `N more files not shown` row for the remainder.
- `AnimatedBody` in `ThreadPromptContextBanner` mounts its children on
the first expand and retains them afterwards, so a collapsed section no
longer carries its DOM.
- Adds `WorkspaceChangesList.test.tsx` and a banner test for the lazy
mount.

## Why

Fixes get-bb#1777.

The DevTools trace attached to get-bb#1777 (bb 0.38.0) showed one `UL
class='space-y-1 overflow-auto max-h-32 ...'` with 15,701 children: the
prompt banner's changed-files list for a workspace with a huge untracked
tree. That single list produced ~65k elements and ~97k layout objects,
so every full layout cost 320–580 ms and a click on a file row blocked
the main thread for 1.44 s (React re-created all rows, then two layout
effects forced synchronous layout). The list was in the DOM even while
the git section was collapsed.

get-bb#1496 and get-bb#1607 bounded the daemon side (process count, diff content,
500-file diff ceiling) but kept every path in workspace status. This
change bounds the client render. The metadata panel already caps its
copy at `limit={5}`.

Follow-up (not in this PR): bound `workingTree.files` at the server with
a truncation signal so no surface can render an unbounded list.

## Verification

- `WorkspaceChangesList.test.tsx` and
`ThreadPromptContextBanner.test.tsx`: 20 passed
- `pnpm exec turbo run typecheck --filter=@bb/app` passed; ESLint and
Prettier clean
- End-to-end in the dev app with a repo of 3,000 untracked files:
collapsed page has no list mounted (578 elements); expanded shows 200
rows plus `2,801 more files not shown` (1,392 elements); body is
retained and `aria-hidden` after collapse.

> AGENT GENERATED: by Claude Opus 5

Co-authored-by: Claude <[email protected]>
## Decision

Every plugin nav page should get the same host-owned right panel as
first-party pages. A plugin registers its existing `navPanel`; BB wraps
that page automatically. Plugins do not opt into Browser or Terminal
support and do not rebuild panel chrome, tabs, persistence, or resize
behavior.

This is the shared-layout foundation. It intentionally adds no new
public plugin registration or navigation API for plugin-defined
right-panel views.

## Behavior

- plugin pages always expose the native New tab, Browser, and Terminal
flows when those capabilities are available
- Terminal creation uses a compact inline host selector and binds the
session to that explicit host
- standalone and split plugin pages use the same panel shell, controls,
sizing, background, and transitions as New thread and thread pages
- Browser, New tab, panel shell, and Terminal content are lazy-loaded so
plugin pages do not pull the full panel implementation into the initial
app bundle
- panel state is scoped by plugin, nav-panel path, and pane
- hydration preserves a valid active tab, falls back to the first
surviving tab when necessary, and closes an open panel with zero tabs
- closing the final content tab activates a remaining fixed tab; the
panel closes only when no tabs remain
- closing the panel does not synthesize a New tab, while explicitly
reopening an empty panel does

## Implementation

- wrap loaded plugin nav pages in `PluginPanelRightPanelHost`
- compose the existing `SecondaryPanelLayout`, `ThreadSecondaryPanel`,
`NewTabPage`, Browser deck, Terminal panel, and shared tab-state
reducers
- support both standalone plugin routes and plugin pages inside split
workspaces
- share panel toggle sizing and chrome tokens with first-party page
headers
- guard incomplete one-panel resize layouts and clean up stale or
invalid persisted panel state
- remove the earlier plugin-configured right-panel view/tool API from
this branch

## Verification

- `@bb/app` typecheck
- focused panel regressions: 37 tests
- full app suite: 357 files, 2,830 tests
- app lint: 0 errors
- production app build
- boot bundle budget
- local desktop QA across New thread, thread, standalone plugin, and
split plugin pages

This upstream-origin PR supersedes fork-origin get-bb#1497 without folding any
plugin implementation into BB.

BB-Thread-ID: thr_ehwczw5k36

> AGENT GENERATED: by GPT-5

---------

Co-authored-by: Michael Yong <[email protected]>
## What

- Add the existing “Don’t work in a project” choice to the host-owned
plugin composer.
- Keep projectless UI state as `null` while submitting through the
personal project.
- Cover projectless submission and a chosen personal-workspace machine.
- Document the personal-project submission shape and metadata lookup for
plugin authors.

## Why

The normal new-thread composer already supports projectless threads. The
plugin composer omitted the flag and passed the internal
personal-project ID to UI that expects `null`.

## Validation

- `pnpm exec turbo run test --filter=@bb/app --force --
PluginNewThreadComposer.test.tsx`
- `pnpm exec turbo run typecheck --filter=@bb/app --force`
- `pnpm exec turbo run typecheck --filter=@bb/plugin-sdk
--filter=@bb/templates --filter=@bb/server --force`
- `git diff --check`

> AGENT GENERATED: by GPT-5.6-Sol

Co-authored-by: Michael Yong <[email protected]>
## Summary

- fall back to a temporary textarea and the browser editing command when
the async Clipboard API is unavailable or rejects
- restore the prior focus and document selection after the fallback
attempt
- cover modern API success, unavailable/rejected API fallback, cleanup,
focus restoration, and final error reporting

## Root cause

bb can be opened over a plain-HTTP LAN origin, while
`navigator.clipboard.writeText()` is restricted to secure contexts in
browsers. The shared copy helper treated an unavailable or rejected
Clipboard API as a terminal failure, so every copy affordance backed by
that helper displayed `Failed to copy` on those origins.

## User impact

Copy actions now continue to use the modern Clipboard API on secure
origins and retain a user-gesture fallback for LAN HTTP access. A
failure toast is shown only when both strategies fail.

Fixes get-bb#1590

## Validation

- `pnpm exec turbo run typecheck --filter=@bb/app --force`
- `pnpm exec turbo run lint --filter=@bb/app --force` (0 errors;
existing warnings remain)
- `pnpm exec vitest run --config vitest.config.ts
src/lib/clipboard.test.ts` (5 passed)
- full `@bb/app` test run: 2,709 passed; one unrelated iPadOS typeahead
test failed once and passed when rerun in isolation

> AGENT GENERATED: by GPT-5.6 Sol
Resolve conflicts in favor of the fork's dual-architecture desktop
builds, marketing-harness naming, and GitHub-hosted runners. Take
the upstream plugin-sdk rename and the new publish-nightly job
coordination. Swap the Blacksmith runners that the merge brought
into unconflicted files back to GitHub-hosted runners.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MwF3ayvUhMs6HfYAG8J5Mh
The fork's desktop-workflow test pins nightly desktop jobs to
needs: publish, with no publish-nightly coupling. Adapt the
upstream arm64-only packaging test to the fork's dual-arch config.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MwF3ayvUhMs6HfYAG8J5Mh
@yoanyombapro1234
yoanyombapro1234 merged commit 995c1ff into main Aug 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.