You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP file-write approvals present as command approvals carrying a bare directory path #1719
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-acpBuilt-in plugin: provider-acpprovidersCross-provider bridges, models, login
When an ACP agent (observed with opencode) asks permission for a file write, the approval renders as a command interaction whose "command" is a bare directory path, and the timeline shows the item as commandExecution until approval upgrades it to a fileChange. The approval itself works; it presents as the wrong subject kind.
The ACP bridge's permission translation in plugins/provider-acp (mapping ACP permission requests to bb interaction subjects). The fix is a small mapping change: classify write-permission requests as file-change subjects from the start instead of command subjects.
Surfaced during #1640 final validation; pre-existing unless noted.
Root cause (short): plugins/provider-acp/src/interactions.ts buildAcpPermissionInteractionPayload always emits a command approval subject with command = rawInput.command ?? title ?? kind and the bridge drops toolCall.locations, so opencode's write permission (kind "edit", title = file path) and its external_directory permission (kind "other", title = bare parent dir, locations = [file, dir]) both render as "run this command $ /path", and the server materialises them as a commandExecution timeline item under the same toolCallId that event-translation already emitted as fileChange.
Proposed fix: In plugins/provider-acp: forward toolCall.locations[].path from handlePermissionRequest (bridge.ts) into AcpPermissionToolCall, and in buildAcpPermissionInteractionPayload (interactions.ts) return a file_change subject {itemId: toolCallId, writeScope: containing location ?? first location ?? null, sessionGrant: null} when (a) toolCall.kind is edit/delete/move, or (b) kind is other/undefined and locations is non-empty, and no rawInput.command is present (covers opencode's external_directory permission, which arrives as kind "other"); keep the command fallback otherwise. No server/protocol cha…
Caveats: Revision addressed the verifier findings: (major) external_directory is ACP kind "other", so the fake agent now emits the two real opencode shapes separately (write: kind edit + file title; external_directory: kind other + bare-directory title + locations), both were reproduced on base in separate threads (thr_aqrjgmjtqa, thr_isrbv6ddiw) with new JSON/event/CLI artifacts and a screenshot, the unit…
The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at 16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).
confirmed-reproBug reproduced again from a clean trusted checkout; see linked reportprovider-acpBuilt-in plugin: provider-acpprovidersCross-provider bridges, models, login
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1719.html
commandapproval subject with command = rawInput.command ?? title ?? kind and the bridge drops toolCall.locations, so opencode's write permission (kind "edit", title = file path) and its external_directory permission (kind "other", title = bare parent dir, locations = [file, dir]) both render as "run this command $ /path", and the server materialises them as a commandExecution timeline item under the same toolCallId that event-translation already emitted as fileChange.file_changesubject {itemId: toolCallId, writeScope: containing location ?? first location ?? null, sessionGrant: null} when (a) toolCall.kind is edit/delete/move, or (b) kind is other/undefined and locations is non-empty, and no rawInput.command is present (covers opencode's external_directory permission, which arrives as kind "other"); keep the command fallback otherwise. No server/protocol cha…The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).Present ACP file-write permissions as file-change approvals
Present ACP file-write permissions as file-change approvals (get-bb#1803