Skip to content

Add bb cloud AI: hosted titles and commit messages for signed-in accounts - #4230

Merged
SawyerHood merged 4 commits into
bb/account-stack-3-bb-accountfrom
bb/account-stack-4-bb-cloud-ai
Sep 24, 2026
Merged

SawyerHood merged 4 commits into
bb/account-stack-3-bb-accountfrom
bb/account-stack-4-bb-cloud-ai

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Thread titles, branch names, and commit messages only came from a model when the user had the Codex CLI signed in. Everyone else got the start of the prompt as a title and bb: automated commit as the commit message.

Stacked on #4229 (bb account). It uses the gateway from #4227 and the AI services API from #4228.

What changed

  • New built-in bb-ai plugin ("bb cloud AI").
    • It registers the AI service { id: "bb", displayName: "bb cloud", complete, status }.
    • complete posts to /api/ai/v1/complete through bb account's fetch, so the plugin never holds a credential.
    • status is ready while the server is signed in and the day's budget remains. A 402 budget_exhausted marks it not ready until the next UTC midnight, and Automatic moves on.
  • Automatic. bb cloud joins the Automatic chain after Codex, so a signed-in bb gets generated titles and commit messages with nothing else set up.
  • Surfaces.
    • CLI: bb ai status and bb ai usage.
    • A settings section with readiness and today's usage against the 50¢ daily allowance.
    • A skill, and the Plugin Guide's AI services card lists it as a first-party example.
    • Voice stays with Codex for now.

How you verified

  • turbo run typecheck lint test for bb-plugin-bb-ai (10 tests), @bb/server (builtin reconciliation and icons), and @bb/scripts (the Plugin Guide first-party table).
  • End to end against local Cloud with a real OpenRouter key and inception/mercury-2.5: a thread title in 428 ms and a commit message in 498 ms. A managed worktree got the branch bb/add-user-preference-dark-mode-toggle-… from its generated title.
  • Budget exhaustion: with the day's spend set to the limit in local D1, an explicit bb cloud pick failed with "daily limit reached" and did not fall through. bb ai status reported not ready, and bb ai usage showed the day's spend at the limit.

AGENT GENERATED

🤖 Generated with Claude Code

@SawyerHood
SawyerHood added this pull request to stack #4231 September 23, 2026 22:32
@SawyerHood
SawyerHood force-pushed the bb/account-stack-4-bb-cloud-ai branch 2 times, most recently from 084dee2 to 7ee9d23 Compare September 23, 2026 22:58
@SawyerHood
SawyerHood force-pushed the bb/account-stack-4-bb-cloud-ai branch from 7ee9d23 to cf6618a Compare September 23, 2026 23:04
@SawyerHood
SawyerHood force-pushed the bb/account-stack-4-bb-cloud-ai branch from cf6618a to 7555f96 Compare September 23, 2026 23:09
@SawyerHood
SawyerHood force-pushed the bb/account-stack-4-bb-cloud-ai branch from 7555f96 to 70449d6 Compare September 24, 2026 00:22
SawyerHood and others added 4 commits September 23, 2026 17:33
…unts

A new built-in bb-ai plugin registers the "bb cloud" AI service, which
calls the hosted gateway through bb account, reports readiness and the
daily budget, and joins Automatic after Codex. It adds `bb ai status`
and `bb ai usage` and a settings section.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
bb-ai had no lint script, so `turbo run lint` skipped it. Use the same
oxlint invocation as the other first-party plugins.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
bb-ai was on in Automatic for every signed-in account, and upgrades adopt
the Connect pairing, so Connect users without Codex silently started
sending first prompts and commit diff excerpts to getbb.app and
OpenRouter. bb cloud is now off until the user turns it on with the
"Use bb cloud" switch in Settings -> bb cloud AI, `bb ai on`, or the
setEnabled RPC. While off, status() says how to turn it on and complete()
refuses without contacting getbb.app. The settings section and `bb ai on`
disclose what is sent and that bb keeps usage totals and 30 days of
per-request metadata, never prompts.

A budget_exhausted answer used to pause bb cloud for the whole plugin, so
signing in to another account left it unavailable until midnight. The
pause is now keyed by API origin and user id, and an answer that arrives
after the signed-in account changed is not recorded.

Completions pass timeoutMs: 5000 to bb-account's fetch (contract C3), and
the local account contract treats any state other than "signed-in" as
signed out instead of failing to parse unknown states.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
setEnabled now requires a client caller (Settings or the CLI), so another
plugin cannot opt the user in to sending prompts to getbb.app. bb-ai needs
SDK 0.5.24 for the caller context.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/account-stack-4-bb-cloud-ai branch from 70449d6 to 80c6a7d Compare September 24, 2026 00:33
@SawyerHood
SawyerHood marked this pull request as ready for review September 24, 2026 00:55
@SawyerHood
SawyerHood merged commit 2bbdf66 into main Sep 24, 2026
23 of 34 checks passed
@SawyerHood
SawyerHood deleted the bb/account-stack-4-bb-cloud-ai branch September 24, 2026 01:06
SawyerHood added a commit that referenced this pull request Sep 24, 2026
## Human comments

## What was wrong

The bb-connect gate deployed from #4227 (version `985dc695`, 2026-09-24
01:07 UTC) broke tunnels for every server, old releases included.
Tunnels opened, but the gate never answered their heartbeats: servers
logged `tunnel heartbeat missed` 60–80 s after every dial and redialed
forever. Across `*.getbb.app`, 503s went from a steady 9–10%
(00:00–01:05) to 25–32% (01:10–01:25) and peaked at 55–56%
(01:41–01:42); WebSocket upgrades roughly tripled from constant redials.
Rolling the gate back to `6f79c289` at 01:43 brought 503s back to 12–14%
within a minute. The root cause is not identified yet: the gate diff
only adds the ticket check before the tunnel is handed to the Durable
Object and does not touch heartbeats or routing.

`main` still carries that gate, so the next merge touching
`apps/connect/**`, `packages/connect-db/**`, or
`packages/tunnel-contract/**` would redeploy it. `main`'s bb clients
also dial with tunnel tickets that the rolled-back gate refuses, so
`main` can't be released as is.

## What changed

- Reverts #4230 (bb cloud AI), #4229 (bb account plugin, Connect on bb
account), and #4227 (account endpoints, tunnel tickets, AI gateway).
- **Keeps** `packages/connect-db` migrations 0006/0007, their snapshots
and journal entries, and `schema.ts`. Production D1 already has them,
and dropping them from the schema would make the next `db:generate` emit
a destructive migration.
- Keeps #4227's null-owner guards in `apps/web/src/server/api.ts`:
`connect_code.user_id` stays nullable, and production already has
ownerless `server-link` rows. Redeeming one as a pairing code or machine
code returns `invalid-code`.
- Keeps #4228 (AI services). `main` returns to its state right after
#4228 merged.

Rollout notes:
- Merging redeploys the web worker without `/api/account/*`, `/link`,
and `/api/connect/tunnel-ticket`. No released bb uses them.
- If `Deploy Connect` is enabled, merging redeploys a gate equivalent to
the live `6f79c289`.
- The deployed `bb-ai-gateway` worker is not removed by this PR; delete
it in Cloudflare if wanted.
- Any bb that ran `main` after #4229 had its Connect credential moved
into the bb-account plugin. On this code it starts signed out; pair it
again with `bb connect --code <code>`.

## How you verified

- `pnpm install --frozen-lockfile` passes with the reverted lockfile.
- `turbo run typecheck lint test` for `@bb/connect-db`, `@bb/web`,
`@bb/connect`, `bb-plugin-connect`, `@bb/bundled-plugins`,
`bb-plugin-plugin-api-docs`: pass.
- `turbo run typecheck lint --filter=@bb/server`: pass. Server
`test/services/plugins/builtin-plugins.test.ts` and `test/ai/*`: 95
tests pass.
- Production evidence for the incident and the recovery: Cloudflare zone
analytics (per-minute `edgeResponseStatus` for `*.getbb.app`), `wrangler
tail bb-connect`, and bee's server log. The bee log shows the pre-stack
build dropping every minute from 01:08:24.

> AGENT GENERATED

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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230 unchanged: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
ymichael added a commit that referenced this pull request Sep 24, 2026
## Human comments

## What was wrong

When bb stops bundling a built-in plugin, its installed row stays.
Startup (`reconcileBundled`) only walks plugins that are currently
bundled: it installs new ones and never looks at rows whose built-in is
gone. After #4232 reverted #4229/#4230, data dirs that had run those
builds kept `bb-ai` and `bb-account` forever, showing as "Missing:
Plugin files are missing. Update or reinstall bb." The delete route
refuses built-ins, so users couldn't remove them either. #4240 made the
manual uninstall possible; this makes cleaning them up by hand
unnecessary.

## What changed

`apps/server/src/services/plugins/plugin-service.ts`:
- After bundled reconciliation and before `loadAll()`, startup deletes
every installed built-in whose name is no longer in this build's
registry. It uses the existing orphan check behind `isOrphanedBuiltin`,
now a shared `isOrphanedBuiltinRow` helper.
- It also deletes the plugin's settings, secrets and schedules through
the same helper manual removal uses (`deleteRemovedPluginData`,
extracted from `remove()`). That includes `onPluginUnregistered`, which
re-dispatches queued messages the plugin was holding.
- The row is deleted outright rather than tombstoned, so a plugin that
is bundled again later installs fresh.
- Startup deletes the row only after settings, schedules, and secret
cleanup succeeds. If secret removal fails, the row remains so the next
startup retries cleanup.
- Rows a user already uninstalled (tombstoned) are left alone, because
`listInstalledPlugins` skips them.
- Each removal is logged: `plugin <id> removed because bb no longer
bundles builtin:<name>; its settings, secrets, and schedules were
deleted`.
- The check compares against the static registry, not what loaded, so a
broken or partial build can't delete bundled plugins.

No wire or daemon protocol changes. No CLI or UI changes.

## How you verified

- `builtin-plugins.test.ts`: the old "marks a persisted builtin as
orphaned" test is replaced by "removes a builtin and its data once bb no
longer bundles it". It seeds a setting, a schedule and a secret file,
restarts without the built-in, and asserts the row, settings, schedule
and secrets directory are gone and the list is empty. It then re-bundles
and asserts a fresh, enabled install. It fails with the startup call
removed and passes with it.
- `builtin-plugins.test.ts` also simulates one secret removal failure,
confirms the registration remains, then confirms a second startup
removes the secret and row.
- `pnpm exec turbo run test --filter=@bb/server -- --run
test/services/plugins/builtin-plugins.test.ts`: 35/35.
- `pnpm exec turbo run typecheck --filter=@bb/server`: clean.
- `pnpm exec turbo run typecheck lint --filter=@bb/server`: clean.
- `turbo run test --filter=@bb/server -- test/services/plugins`:
521/521.
- Live, in a disposable `pnpm start:worktree` instance whose data dir
really went through #4230 then the revert, so it had `bb-ai` and
`bb-account` rows with their folders missing, plus one seeded `bb-ai`
setting. After restarting on this branch, both rows and the setting were
gone, the API listed no orphans, `bb-guide` was unchanged, and the
server log had both removal lines.

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

> AGENT GENERATED

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 24, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 25, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
…unts

Re-lands #4230: the bb-ai plugin serves bb's title, branch
name and commit message tasks through the bb-ai-gateway, for bbs signed
in to a bb account. It calls the gateway through bb-account.v1.fetch, so
it never sees the credential.

One change from #4230: it checks the opt-in again right before sending,
so turning bb cloud off while the account check is still pending sends
nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
## Human comments

## What was wrong

#4232 reverted the bb account stack after the 2026-09-24 connect gate
outage. This PR brings back the web half of #4227: the endpoints a bb
account client needs. It is the first layer of a four-PR stack that
re-lands #4227, #4229 and #4230 so each part can be deployed and rolled
back on its own. The re-land drops #4227's tunnel tickets, so the gate
itself doesn't change.

## What changed

- **bb-web** (from #4227, without the tunnel ticket endpoint):
- `/api/account/me`, `/api/account/link/start`, `/api/account/link/poll`
and the `/link` approval page;
  - `POST /api/connect/machine-code-lookup`;
- the dashboard's connect UI moved into `components/connect-ui.tsx`. The
pairing command it shows (`bb connect --code … --server …`) works for
released bbs and new ones.
- **Link approvals can't replace a newer sign-in** (SlopCop P1).
Delivering a link credential, re-pairing from the dashboard, and
disconnecting a server now deny every other approved, undelivered link
for that server. An approved code is delivered at most two minutes past
its expiry; before, it could be delivered at any time.
- **connect-db:** `resolveServerCredential`,
`serverCredentialFromHeaders`, `write-result`, and a `./testing` export.
Migrations 0006/0007 are already on `main`; this adds none.
- Nothing changes under `apps/connect`, the tunnel packages, or the
deploy workflows.

## How you verified

- `pnpm exec turbo run typecheck --filter="...[HEAD^1]"` and `test
--filter="[HEAD^1]"` on this layer alone: pass (connect-db, web,
connect).
- New `account.test.ts` cases, all four failing on the previous code:
- an approved, unpolled code is denied after a disconnect plus a newer
link;
  - it is denied after another link replaces the server;
  - it is denied after a dashboard re-pair;
  - it isn't delivered past the grace.
- Not changed, answered on the review: atomic delivery writes and an
index for the expired-link prune. Both are follow-ups.
- Staging (`vibecodethis.site`), last run 2026-09-25 02:40–03:07 UTC on
`main` with #4313: this web (`630823a5`) with `main`'s gate. A
released-style bb paired through it with a dashboard-style pairing code
(`Paired as sawyer — reachable at https://sawyer.vibecodethis.site`),
then upgraded, downgraded and signed in again on the new client (#4253).
`POST /api/connect/tunnel-ticket` answers 404. Rolling this web back to
the pre-stack version under the new client kept its tunnel and sign-in
(details in #4253). No `wrangler tail` was used.

## Rollout

1. Merge. **Deploy Web** ships bb-web to 100%. It only adds routes. This
PR touches `packages/connect-db`, so **Deploy Connect** also runs: it
applies no migrations (none are pending, checked against production D1
on 2026-09-25) and `wrangler deploy`s the gate. The gate's own code is
unchanged from production's (#4313, `000248de`); the connect-db
additions it bundles are unused by it. So connected bbs just reconnect
once; with #4313's visitor hold that is a short delay for visitors
(staging: 75/75 one-second probes returned 200, one held 3.1 s).
2. Watch for 10 minutes:
- bb-web 5xx on `getbb.app`, especially `/api/account/*` and
`/api/connect/*`;
- a dashboard pairing code still pairs a released bb (`npx -p
bb-app@latest bb connect --code <code> --server
https://<handle>.getbb.app`).

## Rollback

- Web: `pnpm --filter @bb/web exec wrangler rollback <previous> --name
bb-web -m "<reason>"`, where `<previous>` is the version `wrangler
deployments status --name bb-web` shows before the merge deploys
(`d929bb65-81be-4090-ad8e-70a6e9d46fd7` on 2026-09-29 16:54 UTC, `main`
at #4454). Once #4253 has shipped, a web rollback keeps those bbs
connected and signed in; only new sign-ins stop working until it rolls
forward.
- Gate: `pnpm --filter @bb/connect exec wrangler rollback
000248de-6a8b-4ca0-94f9-a7a27fe80b8f -m "<reason>"` (production's gate
before the merge).

Stack: 1 of 4. Base: `main`. Next: #4252.

> AGENT GENERATED

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
SawyerHood added a commit that referenced this pull request Sep 29, 2026
…unts (#4254)

## Human comments

## What was wrong

#4232 reverted the bb-ai plugin (#4230) together with the rest of the bb
account stack. Its code wasn't implicated in the 2026-09-24 outage.

## What changed

#4230 re-landed with one change: `complete()` checks the opt-in again
right before sending, so turning bb cloud off while the account check is
still pending sends nothing (from SlopCop). The bb-ai plugin serves bb's
thread title and commit message tasks through the bb-ai-gateway for bbs
signed in to a bb account. It calls the gateway through
`bb-account.v1.fetch`, so it never sees the credential.

## How you verified

- `pnpm exec turbo run typecheck --filter="...[HEAD^1]"` and `test
--filter="[HEAD^1]"` on this layer: pass.
- New test: bb cloud is turned off while the account-status call is
held, and the completion rejects without sending; it fails on #4230's
code.
- Staging e2e (`vibecodethis.site`, 2026-09-25, `main` with #4313,
#4252's gateway and #4253's client on one data dir):
- `bb ai on`, then `bb settings ai-services set thread-title bb` and `…
commit-message bb`;
- `bb settings ai-services test thread-title` → `bb cloud (576ms): Add
dark mode toggle to settings page`; `… test commit-message` → `bb cloud
(586ms): feat(settings): add DarkModeToggle component and persist theme
in …`;
  - `bb ai status` → `Ready`, `Usage: <$0.01 of $0.50 today`;
- bb cloud still answered, with the opt-in and task choices kept, after
a downgrade to a build without bb-ai and an upgrade back (610 ms), while
the web was rolled back to the pre-stack version (551 ms), and after the
account was signed out and back in (755 ms).

## Rollout

Ships in a bb release, after:

- #4252 is deployed;
- #4253 has been on dev servers.

Merge it with the client PR or after it; on its own it changes nothing
for a bb that isn't signed in.

Watch: bb-ai-gateway request volume and 4xx/5xx, OpenRouter spend, and
`ai_usage_day` rows. Titles and commit messages keep working for
signed-out bbs through their existing services.

## Rollback

Revert this PR (and ship a patch release if it was released). Users can
also turn the plugin off in Settings → Plugins.

Stack: 4 of 4. Base: #4253.

> AGENT GENERATED

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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant