Repository navigation
Description
Version
desktop-v0.45.0 (129f621771a3e275773992db648316966ac207cf), provider-acp with any ACP agent (reproduced with Cursor via ACP and Codex via ACP).
Steps
- Start an ACP thread with permission mode
accept-editsand let the first turn complete. - Switch the thread's permission mode to
fullin the composer. - Send a follow-up that needs a command or write the agent would have asked about.
Expected
The new permission mode applies to the next prompt, the way #4789 (Claude Code) and #4794 (Codex) now apply permission changes to follow-ups and steers.
Actual
The ACP agent keeps the mode the session was constructed with. The bridge only rebuilds the session when envVars changed or after a cancel error; the permissionMode carried on the follow-up request is never compared or passed into the resumed session:
bb/packages/provider-bridge-acp/src/bridge/bridge.ts
Lines 2648 to 2660 in 129f621
| : session.construction.envVars; | |
| if ( | |
| session.restartAfterCancelError || | |
| !isDeepStrictEqual(envVars ?? {}, session.construction.envVars ?? {}) | |
| ) { | |
| const previousProviderThreadId = session.providerThreadId; | |
| const reason = session.restartAfterCancelError | |
| ? "The ACP agent failed during cancellation; its session was rebuilt before continuing." | |
| : "Execution settings changed; the ACP session was rebuilt to apply them."; | |
| session = await startAgentSession({ | |
| kind: "resume", | |
| params: { ...session.construction, envVars }, | |
| resumeProviderThreadId: previousProviderThreadId, |
So permissionCli for the agent process still reflects the original mode until the thread is stopped and restarted.
What I ruled out
- Not a UI state issue: the follow-up
session/promptrequest does carry the newpermissionMode; the bridge ignores it on the resume path. - Not specific to one agent: the comparison is in the shared ACP bridge, before any dialect code.
Fork fix
Compare permissionMode alongside envVars when deciding whether to rebuild, pass it into the resumed session's construction params, and reject permissionMode: auto on ACP with a -32602 error since ACP has no equivalent and it would otherwise be silently treated as the previous mode. 2 files, +77/−3, with bridge tests for the rebuild and the rejection:
hxy91819/bb@desktop-v0.45.0...hxy91819:bb:fix/acp-permission-mode
Happy to turn this into a PR once I am on the contributor list.
AGENT GENERATED
Activity
Record upstream issue get-bb#4806 for fix/acp-permission-mode
bb-slop-cop commentedon Oct 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-acp,security,confirmed-repro.fulltoaccept-edits.cd12e7a9dfb3; 127 existing tests and the package typecheck pass. The report includes the complete reproduction test. Real Cursor/Codex processes and the composer UI were not exercised.Apply ACP permission changes on follow-ups and steers (get-bb#4922)
Record upstream issue get-bb#4806 for fix/acp-permission-mode