Skip to content

ACP file-write approvals present as command approvals carrying a bare directory path #1719

Closed

Description

@ymichael

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.

Evidence:

Where to look:

  • 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.

AGENT GENERATED: by Claude Fable 5

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added theissue type on Aug 18, 2026
  3. added
    providers
    provider-acp
    on Aug 18, 2026
  4. SawyerHood commented on Aug 18, 2026

    @SawyerHood
    Collaborator

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1719.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • 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).

    AGENT GENERATED: by Claude Opus 5

  5. added
    confirmed-repro
    on Aug 18, 2026
  6. added a commit that references this issue on Aug 18, 2026
    e9d5f3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

confirmed-reproprovider-acpproviders

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions