Skip to content

[BUG] ACP in Zed: Internal error "server shut down unexpectedly" on macOS #24481

Closed

Description

@AungMyoKyaw

Description

When using OpenCode as an ACP agent inside Zed coding editor, the connection fails immediately with:

Internal error: "server shut down unexpectedly"

This happens both with the ACP registry agent and direct ACP integration in Zed.

OpenCode version

CLI: 0.0.0-dev-202604260529

Plugins

"plugin": [
  "@tarquinen/opencode-dcp@latest",
  "file:///Users/aungmyokyaw/Desktop/projects/life-projects/opencode-notify/dist/plugin.js"
]

Also using MCP servers: chrome-devtools, context7, exa

Steps to reproduce

  1. Configure Zed to use OpenCode as an ACP agent
  2. Open any project in Zed
  3. Try to chat with OpenCode agent
  4. OpenCode server crashes with "server shut down unexpectedly"

Operating System

macOS 26.4.1 (Build 25E253), Apple Silicon (arm64)

Zed Version

Zed Preview 0.234.6

Additional context

  • Similar to existing issue [BUG] default_agent config does't work on zed acp #6002 but that one was triggered specifically by default_agent config
  • This config does NOT use default_agent but still crashes
  • The crash may be related to plugin loading or MCP server initialization during ACP startup
  • Config includes custom local provider, MCP servers, and plugins

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 26, 2026
  2. github-actions commented on Apr 26, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, feel free to leave a comment explaining the difference.

  3. AungMyoKyaw commented on Apr 26, 2026

    @AungMyoKyaw
    Author

    Thanks for the cross-reference. This is distinct from #6002 in that:

    Same error message likely means same underlying ACP startup failure path, but the trigger is different — plugin/MCP initialization rather than default_agent parsing. Worth investigating whether any non-trivial config (plugins, MCP, custom providers) causes the ACP server to exit prematurely during handshake.

    Happy to provide debug logs if helpful.

  4. chenhui-su commented on Apr 30, 2026

    @chenhui-su

    the same Internal error: "server shut down unexpectedly" using opencode in zed.

    windows: win 11 pro 26200.8246
    zed: 1.0.0
    opencode: 1.14.30

  5. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
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