Repository navigation
Add an opt-in rebuilt ACP adapter, agent options in the model picker, and Codex Daybreak - #5266
Merged
SawyerHood merged 16 commits intoOct 10, 2026
Conversation
SawyerHood
force-pushed
the
bb/review-the-acp-spec-and-support-design-thr_pmzq63w3jh
branch
2 times, most recently
from
October 9, 2026 22:24
82af22a to
a3fdcc7
Compare
…t for agent-owned settings Root cause: bb's ACP support modelled a session as one prompt at a time over a hand-written JSON-RPC client, and bb core had closed vocabularies (eight reasoning levels, no per-session options, no live commands). Agents that work outside a prompt, offer their own settings, or advertise commands lost that behaviour in the bridge. ACP bridge (packages/provider-bridge-acp): - Transport runs on @agentclientprotocol/sdk 1.7.0 behind bb's own message stream (non-JSON lines and stray responses dropped, session/update decoded leniently, request deadlines with $/cancel_request). - A session model holds work state, messages, tool calls, plans, config options, commands, title, usage and cost for both protocol generations. - Agent-started work opens a turn; permission requests while idle are shown; session_busy rejections are retried; session/resume is preferred over session/load; instructions are not re-sent to a restored session; non-error stop reasons complete the turn with a notice. - Publishes the agent's slash commands and session options as thread state, applies requested session options before the prompt, maps elicitation forms to the question card, carries cost and agent titles, rewrites a leading bb-only skill command, and turns advertised auth methods into sign-in guidance. - experimental_registerAcpDialect is public in the ACP kit. Core: - Reasoning levels are open ids with an optional label; the standard ladder keeps its order and labels. - Session options: bb/session-options (provider) and bb/session-option-selections (server) thread state, PATCH thread sessionOptions, sessionOptions on runtime execution options, the composer's agent options menu, and bb thread options --set/--clear. - Live provider commands in the composer and bb thread commands; session cost in the context indicator and bb thread context. - HOST_DAEMON_PROTOCOL_VERSION 231; plugin SDK 0.6.32. ACP plugin: - Official registry: settings section, listRegistry/addRegistryAgent/ removeAgent RPC, and bb acp registry|add|remove. Verification: lint and typecheck for 150 affected tasks; tests for 107 affected tasks; acp-cursor lanes re-recorded from provider frames; corpus rows identical to the base commit apart from the two new page fields; plugin fork check and packaged-app smoke pass; live turns on Grok Build and Cursor. Co-Authored-By: Claude Code <[email protected]>
…ces the original when enabled Root cause: the rebuilt bridge replaced the original in place, so there was no way to run the two side by side or fall back. Change: - packages/provider-bridge-acp and plugins/provider-acp are back to their main versions, apart from the sort helper and one test that open reasoning ids require. - The rebuilt bridge is packages/provider-bridge-acp-redux, published as @get-bb/plugin-sdk/provider-bridge/acp-redux. The rebuilt plugin is plugins/provider-acp-redux (id bb--provider-acp-redux, "ACP providers (new adapter)"), bundled and off by default. It registers the same provider ids. - Replacement rule in the plugin service: enabling either plugin of a replacement pair disables the other, disabling the replacement re-enables the original, the listed settings (customAgents) follow the switch, and a plugin that stood aside no longer lists its providers on the Providers page. - acp-cursor replay lanes and pinned row counts are restored, since the original bridge is the default again. Verification: lint and typecheck for 154 affected tasks; tests for 109 affected tasks; plugin fork check for both ACP plugins; packaged-app smoke; a server test that switches the two real plugins and checks who registers each ACP provider. Co-Authored-By: Claude Code <[email protected]>
…sign-in text found in the running app Root cause: three gaps that only showed up when driving the dev app. - The SDK's thread update helper built the PATCH body from a fixed field list, so sessionOptions never reached the server and both the composer menu and bb thread options --set failed with "At least one field must be provided". - A model whose reasoning levels are all provider-specific opened on its first level, because reconciliation had no standard level to rank against and ignored the model's own default. - The sign-in guidance was appended to the agent's error without punctuation. Change: updateJson carries sessionOptions; reconcileReasoningLevel takes the model's default as the fallback when no offered level is a standard one (app picker and server override pass it); the bridge joins the agent's message and the guidance with a full stop. The new plugin's description is shortened so the sentence about replacing the original plugin is not truncated. Verification: lint, typecheck and tests for domain, sdk, app, server, cli, the redux bridge and the redux plugin; all three reproduced and re-checked in the dev app (menu choice saved and applied on the next turn, picker opens on the agent's default, CLI --set shows the pending value). Co-Authored-By: Claude Code <[email protected]>
…es at thread creation Root cause: session options only existed once a running session reported them, so nothing could be chosen for a thread's first message and a provider had no way to say which models support which values. Change: - A model in a provider's catalogue may list sessionOptions: the options it offers before a session exists, with the provider's default. A select lists only the values that model supports; a boolean may be fixed to one value. Shared helpers collect the union across models and name the choice that rules a model out. - Thread creation accepts sessionOptions. The server records them and sends every choice with the thread's first commands; once the provider has published its live options the existing pending rule takes over. - bb thread spawn --option <id>=<value>; bb provider models lists declared options. - The rebuilt ACP bridge reports the agent's options on every model of its model list, from a discovery session, whether models came from the list command or from the session. - HOST_DAEMON_PROTOCOL_VERSION 232 for the new model field. Verification: lint and tests for domain, server-contract, server, cli, templates, bb-guide and the redux bridge; typecheck for the whole repo. Co-Authored-By: Claude Code <[email protected]>
…e out Agent options other than the mode now render inside the model picker, as a switch for a boolean and a segmented choice for a select, in both the new-thread composer and an existing thread's composer. The mode keeps its menu in the composer footer, and the new-thread composer now shows it too. Before a thread exists the picker shows the options the provider declares on its models. Choices are remembered per provider, sent as sessionOptions on the create request, and exposed on the plugin SDK's NewThreadRequest so a plugin-hosted composer forwards them to threads.spawn. In an existing thread a change still saves on the thread and applies from the next turn. A model that cannot run with the current choices is disabled with the reason, is skipped by the model cycle shortcut and keyboard selection, and the selection moves to the first model that fits, preferring the default. Remembered provider-specific reasoning levels were dropped on reload because the stored value was checked against the old closed list; any non-empty level is kept now. Co-Authored-By: Claude Code <[email protected]>
…del that fits the chosen options Codex Daybreak (#4802) is a session option with the id `daybreak`. The bridge declares it per model from the account's model list, so it appears only for accounts whose models advertise a Daybreak program, and each model says whether it runs with Daybreak, without it, or both. The gpt-daybreak-*-latest alias models move to the selected-only list when the switch exists, so threads that already use one keep working. Each turn asks Codex for the selected model's program: blue when the model lists it, otherwise red, with Daybreak on, and standard with it off. Nothing is sent for an account without Daybreak. The choice is stored on the Codex thread at thread/start and through thread/metadata/update when it changes, is read back when a thread resumes, and is published as bb/session-options so the picker and `bb thread options` show it. Creating a thread with options now picks the model with them in mind. The picker already moved off a model the options rule out, but the move was not sent as an explicit choice, so the thread started on the default model instead; the app now marks it explicit. The server applies the same rule to every create: a create that leaves the model to bb starts on a model that fits, and one that names a model the options rule out is refused with the name of a model that fits. Co-Authored-By: Claude Code <[email protected]>
The command shown for an agent's terminal sign-in method was always quoted for a POSIX shell, so on Windows a path with backslashes was wrapped in single quotes, which neither cmd nor PowerShell runs. On Windows, paths now stay bare, words with spaces take double quotes, and environment values are written as PowerShell assignments. The bridge test that checked the command now passes on Windows. Co-Authored-By: Claude Code <[email protected]>
…egistry list An agent added from the ACP registry appeared in the model picker with the generic toolbox icon, so several added agents looked the same. The plugin now ships the registry's icon for each of its 41 agents as a declared plugin icon and uses it for an added agent whose id matches. The registry list in the plugin's settings shows the same icons. An agent the plugin has no icon for, including a hand-written custom agent, keeps the toolbox. Co-Authored-By: Claude Code <[email protected]>
… levels Some agents report their thinking level twice: as a thought-level option and again as legacy session modes with the same ids. bb showed the second copy as a mode menu in the composer footer next to the reasoning control in the model picker. The session model now drops legacy modes when every mode id is one of the agent's thought-level values. Modes that add anything else are kept. Co-Authored-By: Claude Code <[email protected]>
…holder model When the new ACP adapter asked an agent for its models by opening a session and that failed, it answered with a placeholder "Agent default" model and a single Medium level. The server stored that as a good catalogue for ten minutes, so an agent that could not start looked configured and gave no reason. The model list now fails with the agent's own error, as it already did for agents listed through a command: a missing agent, a failed start, a timeout, or a sign-in requirement. A signed-out agent's error carries the same sign-in instructions a thread start gives, and the model picker shows them under "Not signed in". An agent that starts but reports no models still gets the agent-managed default. Co-Authored-By: Claude Code <[email protected]>
…break choice Every Codex turn waited for the session's model list before starting, so that a Daybreak program could be chosen. That delayed turns even on threads and accounts that never use Daybreak; the recorded Codex replays took roughly twice as long. A turn now reads the model list only when the thread has a Daybreak choice, on or off. A thread where Daybreak was never set sends no program and leaves the choice to Codex, as before this change. Also give the ACP bridge test that starts the fake agent four times a timeout that fits the Windows runner. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
force-pushed
the
bb/review-the-acp-spec-and-support-design-thr_pmzq63w3jh
branch
from
October 9, 2026 22:38
a3fdcc7 to
fcce924
Compare
A provider's own reasoning levels can be more numerous and longer than bb's standard ones. Seven levels named "Thinking: minimal" and so on ran past both edges of the picker. The reasoning row and the speed row now wrap onto further lines. Co-Authored-By: Claude Code <[email protected]>
…t as a grid An agent may name its levels "Thinking: off", "Thinking: minimal" and so on. Under the picker's Reasoning heading the prefix only repeats the heading and makes the row too wide. The picker now drops a prefix that every level of a model shares, and shows bb's own name where what is left is a standard level. A ladder of more than six levels is laid out as an even grid; shorter ladders keep the single row. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
force-pushed
the
bb/review-the-acp-spec-and-support-design-thr_pmzq63w3jh
branch
from
October 9, 2026 23:07
c2daf2a to
51d1143
Compare
…nd say when a turn ends with no reply Some agents send output as soon as a session opens, before any prompt. The new adapter treated that as the agent starting a turn of its own, and the host then refused the user's first message because a turn was already active. Output that arrives before a session's first prompt is now held and shown at the start of that prompt's turn as its own message. A prompted turn that ends normally with no message, thought, tool call or plan from the agent now carries a notice that the agent sent nothing back, since an agent can fail quietly, for example when its own sign-in has expired. Co-Authored-By: Claude Code <[email protected]>
…peated modes hidden after a model switch An agent's output before any prompt is startup information meant for an editor, such as a version and skill list. The new adapter no longer shows it; it was already kept from opening a turn that blocked the first message. An agent's legacy modes that only repeat its thinking levels were hidden when a session opened but came back after a model switch shortened the level list. The decision now holds for the rest of the session. Co-Authored-By: Claude Code <[email protected]>
The package is now @bb/provider-bridge-acp-next, the built-in plugin is bb--provider-acp-next in plugins/provider-acp-next, and the plugin SDK subpath is @get-bb/plugin-sdk/provider-bridge/acp-next. No behaviour changes. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
marked this pull request as ready for review
October 10, 2026 01:33
SawyerHood
deleted the
bb/review-the-acp-spec-and-support-design-thr_pmzq63w3jh
branch
October 10, 2026 01:35
ymichael
pushed a commit
that referenced
this pull request
Oct 14, 2026
🚨 **SLOP COP** 🚨 · `new-issue-autopilot` ## Human comments ## What was wrong An explicit ACP model-list command that failed, timed out, or produced no usable catalog fell through to a successful synthetic-default response when the bridge's process-local cache was empty. The server correctly treated that response as authoritative and replaced its last good catalog. Maintenance runtime idle shutdown makes an empty bridge cache a normal possibility. Verified report: https://get-bb.github.io/reports/issues/5311.html ## What changed Reject explicit CLI model discovery when neither a fresh nor cached catalog is available, using the existing JSON-RPC error path. Preserve the synthetic default for agents without a configured listing and preserve same-command last-good cache reuse. No public protocol, schema, host wire fields, stored data, dependency, packaging, or release changes. The patch changes **51 total text lines**: 47 additions and four deletions across two files, entirely in the existing ACP bridge subsystem. Five lines are production additions; 46 changed lines are tests. ## How you verified - Trusted base: `fe1a02d7b994866cfd477e3ad7c0bc85fa525002` (`origin/main`). Repeated by the same agent in a second clean trusted checkout. - Added regression tests before production changes. On unchanged production, unsuccessful exit, unusable output, and a real 30-second timeout fail because the expected error is absent; same-command last-good cache preservation passes. Both clean runs produce three failures and one pass. - `pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp`: all tasks pass; 388 tests pass, four intentionally skip, across 19 files. This includes all focused regression cases after the guard. - `pnpm exec turbo run test --filter=@bb/server -- test/providers/provider-model-catalog-store.test.ts`: 18 tests pass, including retaining the persisted last good catalog after failed refreshes. - Frozen installs and full Turbo builds pass in both clean checkouts. `git diff --check` passes; no binary changes. No open linked PR existed before opening this one. ### Update: rebuilt ACP adapter The opt-in rebuilt adapter (`provider-bridge-acp-next`, added in #5266 after this PR's original base) copied the same fallback, so this PR now applies the same guard and regression tests there. It also drops the `params.listCommand === undefined` check in both bridges, which the new guard makes unreachable. Additional verification: - End to end with `pnpm start:worktree` and a custom agent whose `modelCli` list command can be made to fail: on main, a failed refresh in a fresh maintenance bridge logged `outcome: success, modelCount: 1, changed: true` and the stored catalog dropped to `acp-default`. With this change it logs `outcome: failed, changed: false` and the stored catalog keeps all three models. - The ported acp-next tests fail on the unpatched adapter (three fail, one passes) and pass with the guard. - `pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp --filter=@bb/provider-bridge-acp-next`: all pass (394 and 499 tests). Behaviour change: an agent whose list command has never succeeded now shows "Could not load models" in the picker instead of a usable "Agent default". Fixes #5311 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED <!-- slopcop:rule=new-issue-autopilot run=run_errewgbzmv1q9u5p sha=issue-5311 kind=summary --> --------- Co-authored-by: SawyerHood <[email protected]> Co-authored-by: qa <qa@x> Co-authored-by: Claude Opus 5.5 <[email protected]>
SawyerHood
added a commit
that referenced
this pull request
Oct 20, 2026
## Human comments ## What was wrong bb shipped two ACP adapters side by side: the original (`packages/provider-bridge-acp`, plugin `provider-acp`, on by default) and the rebuilt one from #5266 (`packages/provider-bridge-acp-next`, plugin `bb--provider-acp-next`, opt-in and mutually exclusive through `BUNDLED_PLUGIN_REPLACEMENTS`). Fixes had to be made twice, and some weren't: #5374's shutdown cleanup only reached the original bridge. Deleting the original plugin directly would have caused data loss. The orphaned-builtin cleanup (`removeUnbundledBuiltins`) deletes a removed built-in's settings, so every default user's `customAgents` would have been wiped. Users who had opted in would have been left with `provider-acp` disabled and no ACP providers. ## What changed - **In-place swap.** The rebuilt bridge and plugin now live at `packages/provider-bridge-acp` and `plugins/provider-acp`, under the original package names and the `provider-acp` plugin id. Default users' plugin rows, `customAgents`, and threads carry over unchanged, since provider ids are the same (`acp-cursor`, …). The `-next` directories are deleted. So are the opt-in switch (`BUNDLED_PLUGIN_REPLACEMENTS`, the `standsAside` catalog filter and the paired enable/disable in `setEnabled`) and their tests. Hardcoded `bb--provider-acp-next` ids in the plugin (`known-agents.ts`, `registry-icons.ts`, `usage-source.ts`) are now `provider-acp`. Registry icon refs resolve as `provider-acp/registry-*`. - **Handover for opted-in users.** `RETIRED_BUNDLED_PLUGINS` in `builtin-registry.ts` declares `bb--provider-acp-next` → `provider-acp`. At startup, `handOverRetiredBuiltins()` runs before `removeUnbundledBuiltins()`. If the retired row was enabled, it copies `customAgents` to `provider-acp` and turns `provider-acp` on. Then it deletes the retired row's settings, secrets and schedules. It does not clear the user's disabled-provider list, which normal orphan cleanup would, because both plugins own the same provider ids. - **Plugin SDK.** `@get-bb/plugin-sdk/provider-bridge/acp` now exports the rebuilt bridge. The export names and type shapes are the same as before, plus `experimental_registerAcpDialect`. `provider-bridge/acp-next` stays as a deprecated alias re-exporting `/acp`. `docs/api_to_audit.md` merges the two entries. No wire change; `HostDaemonAcpLaunchSpec` is identical. - **#5374 ported to the rebuilt bridge.** Every agent connection (thread sessions, model discovery, session-option discovery) is tracked and removed on exit. New connections are refused once shutdown starts. stdin close, SIGTERM and SIGINT share one awaited cleanup that releases sessions and kills tracked agents. Includes `shutdown.test.ts` from #5374. - **References.** Updated `bundled-plugins`, `bb-official.json`, `first-party-plugins.json`, `forkable-plugins.json`, the web bundled-marketplace list, `turbo.json` (the -next task config moved to `bb-plugin-provider-acp`), the provider-literal ratchet, plugin-build tests, `docs/configuration.md`, and the bb-guide plugin-authoring references. ## How you verified - `pnpm exec turbo run typecheck lint` for `@bb/provider-bridge-acp`, `bb-plugin-provider-acp`, `@get-bb/plugin-sdk`, `@bb/server`, `@bb/web`, `@bb/domain`, and `@bb/plugin-build`. All passed. - `turbo run test` passed for the bridge (505 tests, including the 6 ported shutdown cases), the SDK (376), plugin-build (211) and domain (248). - The plugin package had 81 of 82 passing. The one failure is `native-roots.test.ts` omp, an environment-only failure because `/tmp/.agents` exists on the machine (per `.bb/skills/test-audit`). It passes with `TMPDIR=/var/tmp/...`. - Server: `vitest run` over `test/services/plugins`, `test/services/plugin-catalog`, `test/system/provider-management`, `test/system/execution-options`, `test/public/public-provider-installations` and `test/providers/provider-registry`: 65 files and 765 tests passed. That includes the new `retired-bundled-plugins.test.ts`, which covers three cases: an enabled retired plugin hands off settings and turns its successor on; a disabled one leaves the successor alone and keeps disabled providers; and a missing successor. - `packages/agent-runtime` `runtime.acp-topology.test.ts` passed. - `node scripts/check-plugin-forks.mjs plugins/provider-acp` passed (with a clean TMPDIR). The provider-literal ratchet passed. The plugin SDK npm version guard passed (0.6.56 is unpublished, so no bump). - Not run locally: the full server suite, tarball smoke, Windows, and a live Cursor/opencode thread on the merged build. Follow-up: #5692 and #5055 target only the removed original bridge and need re-targeting; #5694 touches both. > AGENT GENERATED --------- Co-authored-by: Sawyer <[email protected]>
3 tasks done
ymichael
added a commit
that referenced
this pull request
Oct 23, 2026
## Human comments ## What was wrong omp and opencode namespace each model ID by the service that runs it, so one model can appear several times under the same name. For example, omp lists `openai/gpt-5.6-terra` (OpenAI API key) and `openai-codex/gpt-5.6-terra` (ChatGPT subscription) as "GPT-5.6 Terra" and "GPT-5.6-Terra". The picker already shows a grey source label from `AvailableModel.routeProviderId`, but nothing in the ACP path set that field, so these rows were indistinguishable. Picking the wrong one fails (for example, an API key with no credits left returns `credit_balance_exhausted`). #2062 reported this and was closed by #5266, but [the follow-up comment](#2062) confirms that the duplicate rows remained. ## What changed - `AcpDialect` gains an optional `presentModel(model)` hook. The bridge applies it to every model in `model/list` results (`packages/provider-bridge-acp/src/bridge/bridge.ts`). - The omp and opencode dialects set `routeProviderId` to the ID's first segment (`openrouter/anthropic/claude-sonnet-5.5` → `openrouter`) and strip that prefix from the name when the agent repeats it (opencode's `openai/GPT-4.1` → `GPT-4.1`). IDs without a `/` are unchanged. Other ACP agents are untouched. - Model IDs are unchanged, so selection, routing and search are unaffected. The picker renders the label the way it already does for Pi, with no app changes. - `routeProviderId` is an existing optional field, so there is no wire change and no `HOST_DAEMON_PROTOCOL_VERSION` bump. `AcpDialect` is part of the plugin SDK (`experimental_registerAcpDialect`), so third-party dialects can use the same hook. The SDK version on main (0.6.75) is already ahead of the published 0.6.73, so no bump is needed. This takes over the problem from #6115 by @lemonleks, who reported it and proposed labelling rows by ID namespace. That PR inferred the label inside the picker. This change has the omp and opencode adapters supply it instead, which avoids doubling opencode's name prefix and lets plugin dialects opt in. ## How you verified - New `bridge.test.ts` case: the omp and opencode dialects label `anthropic/…`, `openrouter/anthropic/…` and `openai/…` models and strip opencode's duplicated prefix. The generic `acp` dialect is left unchanged. - `pnpm exec turbo run typecheck lint test --filter=@bb/provider-bridge-acp`: all checks pass (538 tests). - `pnpm exec turbo run build:types typecheck --filter=@get-bb/plugin-sdk`: passes, and the bundled `AcpDialect` type includes `presentModel`. - Ran the omp dialect over a real omp 17.4.1 catalog (118 models). `openai/gpt-5.6-terra` gets the label `openai`, and `openai-codex/gpt-5.6-terra` gets `openai-codex`. Fixes #2062 > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
2 of 13 tasks
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Three linked problems, all from bb treating a provider's settings as a closed list owned by bb.
thought_levelvalues outside bb's eight reasoning levels are silently dropped (opencodeminimax-m3collapses toNone) #3620, acp-opencode: Zen opencode/ models report single medium reasoning level over ACP, native TUI offers low/medium/high/xhigh variants #3899), modes (ACP providers can't use plan mode: supportsPlan is never declared or translated from session modes #3019), live slash commands (ACP: surface available_commands_update as a slash palette (provider-acp drops OMP slash ads) #3848, acp-opencode: a leading /skill-name for a bb-only skill silently completes an empty turn (provider swallows it as an unknown command) #4923), questions to the user (ACP client never advertises elicitation: OMP ask tool absent, plan approval silently auto-approves #3849), cost (provider-acp drops usage_update.cost (stable spec field); cursor threads show cost unknown #3941), and work an agent starts by itself. Per-agent behaviour is a closed list inside bb, so a plugin author who needs another agent has to vendor the bridge (plugin-sdk: let ACP provider plugins register custom dialects instead of vendoring provider-bridge-acp #3418).What changed
A rebuilt ACP adapter, shipped as a second built-in plugin that is off by default.
packages/provider-bridge-acp-nextis a new bridge on the official@agentclientprotocol/sdk(1.7.0, pinned) with its own message stream and a session model that keeps what the agent reports.plugins/provider-acp-next("ACP providers (new adapter)", idbb--provider-acp-next) registers the same provider ids as the existing ACP plugin.customAgentslist follows the switch both ways. The rule isBUNDLED_PLUGIN_REPLACEMENTSin the server's built-in registry. The existing adapter and plugin are unchanged apart from a sort helper and one test.bb acp registry,bb acp add <agent-id>,bb acp remove <agent-id>).@get-bb/plugin-sdk/provider-bridge/acp-next, includingexperimental_registerAcpDialectso a plugin can supply a dialect. Entry added todocs/api_to_audit.md.Core contract changes, not behind the switch.
reasoningLevelSchemais any non-empty string, with an optionallabelon each effort). The standard levels keep their order, labels and model-switch behaviour.bb/provider-commandsandbb/session-options. A third,bb/session-option-selections, is server-only and holds choices the provider has not applied yet. A choice is one-shot: the server sends it assessionOptionswith the next command and drops it once the bridge reports that value.sessionOptions, so a provider can declare options before a thread exists. Create and update requests acceptsessionOptions. When a create leaves the model to bb, the server starts on a model that fits the chosen options; when it names a model the options rule out, the create is refused with the name of a model that fits.HOST_DAEMON_PROTOCOL_VERSION233 → 234. Plugin SDK 0.6.37 → 0.6.38 (NewThreadRequest.sessionOptions, the new subpath).UI, CLI and SDK.
bb thread commands,bb thread options [--set id=value] [--clear id],bb thread spawn --option id=value, and options listed underbb provider models. The SDK's thread update now sendssessionOptions.docs/provider-bridge-protocol.md,docs/provider-plugin-api.md,docs/configuration.md, the bb guide templates and the Codex plugin skill.Codex Daybreak.
daybreakoption per model from the account'smodel/list(availableAccessPrograms.cyber), only when some model advertises a Daybreak program. Each model says whether it runs with Daybreak, without it, or both.cyberAccessProgram:daybreakBlueif the model lists it, otherwisedaybreakRed, with Daybreak on;standardwith it off. A thread where Daybreak was never set, and any thread on an account without Daybreak, sends nothing and does not wait on the model list. The choice is sent asdaybreakEnabledonthread/start, saved throughthread/metadata/updatewhen it changes, and read back on resume.gpt-daybreak-*-latestalias models move to the selected-only list ("More models") instead of being hidden, so threads that already use one keep working.Not in this PR: importing existing agent sessions, moving the ACP translator onto the session model, and an ACP v2 wire adapter.
How you verified
pnpm exec turbo run lint typecheck test --filter='...[origin/main]' --continueon the rebased branch: 253 tasks; all pass except a few tests in load-sensitive suites that timed out while a dev app was running on the same machine; each passes when run alone.pnpm check:plugin-forks(36 plugins;side-chattimed out once under load and passes when run alone) andpnpm exec turbo run smoke:tarballboth pass. Both plugin SDK version guards pass at 0.6.38.opencode/big-pickle), pi ACP from the registry and built-in Pi (openai/gpt-6-luna): create and read back a file, a follow-up after a server restart, a mode change to plan, a reasoning level change, and stopping a running shell command and then continuing. All answered; the files had the expected contents.daybreakEnabledonthread/start,cyberAccessProgramdaybreakBlueandstandardonturn/start, andthread/metadata/update.bb thread options --set daybreak=falsewas saved on the next turn. With the new ACP plugin on and a scripted agent: a thread created with an option on and a non-default mode ran its first turn with both applied.@bb/agent-runtime#test:integrationhas one failing Codex case ("applies rotated and removed contributions on the next turn") that fails the same way on the base Codex bridge.Fixes #4802, fixes #2122, fixes #3077, fixes #3009, fixes #3636, fixes #3620, fixes #3899, fixes #3019, fixes #3848, fixes #4923, fixes #3941, fixes #3849, fixes #3418, fixes #2062, fixes #2521, fixes #1093, fixes #2320, fixes #4797
🤖 Generated with Claude Code