Skip to content

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

@yajo

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions