Skip to content

Zed cannot run bash commands if OpenCode has ask permission in ACP mode #25836

Closed

Description

@yajo

Description

Using OpenCode inside Zed through ACP, it gets stuck when trying to run a bash command that needs user authorization.

Looks like a resurrection of #3332. Relevant info from Zed side: zed-industries/zed#53249 (comment)

Plugins

None

OpenCode version

1.14.25

Steps to reproduce

Have this configuration for opencode:

{
  "permission": {
    "bash": {
      "git commit *": "ask"
    }
  }
}

Have this configuration for Zed:

{
  "agent_servers": {
    "OpenCode": {
      "args": [
        "acp"
      ],
      "command": "opencode",
      "type": "custom"
    }
  }
}

Then open OpenCode agent through Zed and ask it to commit changes.

Screenshot and/or share link

Image

Operating System

Linux 6.19.9-zen1, NixOS, 25.11 (Xantusia), 25.11.20260429.755f5aa

Terminal

None (ACP)

Activity

  1. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If either of these covers your case, it may be worth commenting there or confirming whether the fix regressed.

  2. treuherz commented on May 6, 2026

    @treuherz

    I think this is the same as #14301, but that was closed without resolution

  3. bcdady commented on May 21, 2026

    @bcdady

    The permission.asked → requestPermission() handler was already merged into dev before v1.15.7, so this bug is fixed in the current release. This issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions