Repository navigation
Open
Labels
Description
The workflow
Run an ACP agent that has its own permission modes as a bb provider and use bb's permission modes and the Plan action as with Claude Code or Codex. My case is Google Antigravity CLI 1.5.8 (agy acp), configured as a custom agent in provider-acp on bb 0.49.0. Code links below are at f024a372f0.
What happens today
- ACP providers declare only
accept-editsandfull(declaration.ts:15), and the bridge throws onauto(bridge.ts:3269-3270). - Accept edits does not change the agent's own mode. agy starts in its
defaultmode, so every edit becomes an approval card, although agy has anaccept-editsmode.agy acphas no launch flag for the mode, and itsagentModesetting is not applied over ACP. - The agent's modes are reachable only through its
modeconfig option in the Mode menu (session-model.ts:144-153). That option is not tied to bb's permission mode, so a user can switch agy toautowhile bb still shows Accept edits. - The generic ACP provider declares no composer actions (declaration.ts:104), so there is no Plan action. The SDK contract says the bridge "maps it onto whatever the agent calls it natively" (backend-contract.ts:1423-1429), but the ACP bridge never reads
promptMode. - Full access already works:
permissionClican add--dangerously-skip-permissions, and bb approvessession/request_permissionitself in that mode.
agy 1.5.8 advertises the session modes default, accept-edits, auto and plan, plus a config option of category mode. ACP leaves mode ids to the agent, so bb cannot guess them.
What you would expect
A declarative mapping on an ACP agent entry, next to permissionCli, for example:
"sessionModes": { "accept-edits": "accept-edits", "auto": "auto", "plan": "plan" }- bb sets the mapped mode (
session/set_mode, or the agent'smodeconfig option) when a session starts or is restored, and when a turn changes the permission mode. - An agent that maps
autodeclaresautoinstead of having it rejected. - An agent that maps
plangets the Plan composer action; a plan turn switches to that mode. - While a mapping exists, the Mode menu does not offer a second, unsynchronized way to change the same mode.
Known agents could ship such a mapping for agents that have these modes.
Context and alternatives
- A plugin cannot add this: the
AcpDialecthooks (dialect.ts:38-60) have no access to session parameters,set_modeor the permission policy. Per-agent permission handling is hardcoded in the bridge today (OpenCode throughOPENCODE_PERMISSION, fix(acp): enforce bb permission modes for OpenCode #5816). - Prior art: ACP providers can't use plan mode: supportsPlan is never declared or translated from session modes #3019 and the auto-closed Declare plan support for ACP agents and translate it via session modes #3040 (Plan through session modes), the Kimi request Add built-in Kimi Code support to the ACP provider #6264 (native
default/auto/yolo), and Feature request: bring ACP providers closer to native ones (questions, quota errors, subagents, usage) #7471 for other ACP gaps. - Without it, agy under bb is either an approval per edit (Accept edits) or no approvals at all (Full access). Its
automode, which runs inside agy's terminal sandbox, is unreachable.
Checks
- I searched open and closed issues for the same request.
- If an agent wrote this, the body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 13, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type: Feature · Priority: Medium · Effort: High and labels
providers,provider-acp. All classifications were missing; no existing values were replaced. Verified the final Type and fields after writing.The current ACP provider explicitly exposes only two permission modes and no composer actions. Connecting native session modes to these controls adds provider capabilities and requires configuration and permission-policy design, rather than a contained defect fix. Medium priority reflects the limited provider scope and existing workarounds; High effort reflects the cross-layer design.
No reproduction report or pull request: this is classified as a Feature, so the bug-report and fix steps do not apply.
seklow commentedon Nov 13, 2026
A live check of why the mapping also has to run on restore. I drove
agy acp1.5.8 directly over ACP, without bb in between.session/set_modetoaccept-editsworks: agy sendscurrent_mode_updateand a config-option update, and a turn in that session stays inaccept-edits.session/loadorsession/resumeof the same session in a new agy process, the session is back indefault, and agy sends no mode notification.So the agent forgets its mode with each process, and bb has to set the mapped mode again after every restore, not only when it creates a session. From reading the bridge, a Mode-menu choice today is a one-shot session option: once the agent reports that value, the stored choice is dropped. After an idle reap or a daemon restart, agy would then be back in
defaultwithout the user noticing.wojteklembryk commentedon Nov 22, 2026
Another agent in the same position, GitHub Copilot CLI (the registry ACP agent
acp-github-copilot-cli), plus one consequence of the two-mode declaration that makes this more than a convenience. Observed on bb 0.49.0; code links at796cdcc.An undeclared
autobecomes Full access, not Accept edits. When the requested mode is not declared, the composer picksautoif offered, otherwisefull, and only then the first declared mode (selection-state.ts:303-317). ACP agents declare["accept-edits", "full"](declaration.ts:15, L86-L88). So a remembered Auto (picked while a Claude Code project was selected), or a pluginsetSelection({ permissionMode: "auto" }), settles on Full access in a project whose agent is GitHub Copilot. On 0.49.0 a plugin that requestsautogotfullin every Copilot project andautoin a Claude Code project. Until ACP agents can declareauto, falling back toaccept-editswould be the safer choice for a requestedauto.What Copilot CLI offers over ACP.
copilot --acp(Copilot CLI 1.0.106), driven directly without bb, answerssession/newwith:agent,planandautopilot(ids are URLs such ashttps://agentclientprotocol.com/protocol/session-modes#autopilot), plus a config option with categorymode;autopilotis described as "enables allow-all and runs until task completion", so it is closer to bb'sfullthan toauto.There is no
autosession mode. The closest is the launch flag--assisted-approval(percopilot --help, a probabilistic judge that reviews permission requests, "equivalent to theassistedmode of /permissions"). So for this agent a mapping would need launch flags per mode as well as session modes.permissionClitoday has onlyfullandworkspaceWrite(bridge.ts:780-793); anautoentry there would cover Copilot, whileplancould map to theplansession mode as proposed above.vkosakov commentedon Nov 24, 2026
Same gap from a different dialect, with a shape that needs no session-mode mapping.
Concrete case. OpenCode as an ACP agent (
acp-opencode, OpenCode 2.2.7) under bb 0.50.1 on macOS. The user asked for all three modes in the composer and the picker offers only Accept Edits and Full Access.Why
autois reachable here withoutsession/set_mode. bb already owns OpenCode's permission surface throughOPENCODE_PERMISSIONindialectLaunchEnv:editis alwaysallow, whilebash,webfetchandexternal_directoryareallowforfullandaskforaccept-edits. That gives a three-way mapping for free:accept-edits: unchanged —bash,webfetchandexternal_directoryask.auto:bashandwebfetchallow,external_directoryask, andhandlePermissionRequestanswersallow_oncewhile the request's tool-call paths stay insideworkspaceWriteRoots.full: unchanged.This keeps
autodistinct fromfullon this dialect: leaving the workspace still produces a prompt, which is what the composer copy already promises ("High-risk actions can still come back to you"). Because it is not a session mode, the restore problem from the previous comment does not apply to it.Two observations from the same session.
accept-edits, OpenCode asks for nothing except.envreads, so on this dialect Accept Edits already behaves like Full Access in practice.autois the mode the user was actually looking for; the two declared modes both miss the middle.Happy to open a pull request with the declaration change, the bridge branch and tests if this shape works for you. The pieces are
plugins/provider-acp/src/declaration.ts(the mode list),packages/provider-bridge-acp/src/session-params.ts(the throw onauto), andpackages/provider-bridge-acp/src/bridge/bridge.ts(permissionCliArgsForMode,dialectLaunchEnv,handlePermissionRequest).