Skip to content

AI: Error when using home directory shortcut #40796

Closed

Description

@jakeleventhal

Summary

ACP command path with ~/ shortcut yields not found.

Description

Steps to trigger the problem:

  1. Add the following to Zed settings:
  "OpenCode": {
    "command": "~/.bun/bin/opencode",
    "args": ["acp"]
  }
  1. Start opencode Agent
  2. Get the below error:

No such file or directory (os error 2)

  1. Change command to "/Users/myuser/.bun/bin/opencode" and it works just fine

Expected Behavior:
Home directory shortcut works.
Actual Behavior:
Home directory shortcut does not work.

Model Provider Details

  • Provider: OpenCode
  • Model Name: N/A
  • Mode: Agent Panel
  • Other Details (MCPs, other settings, etc): N/A

Zed Version and System Specs

Zed: v0.208.6 (Zed)
OS: macOS 26.1 (Build 25B5072a)
Memory: 64 GiB
Architecture: aarch64

Activity

  1. added
    area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI features
    on Oct 21, 2025
  2. added a commit that references this issue on Oct 30, 2025
    b059c1f
  3. added a commit that references this issue on Nov 7, 2025
    e9e2498
  4. added a commit that references this issue on Aug 8, 2026
    9026ee5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresarea:ai/acpFeedback for Zed's Agent Client Protocol

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions