Zed extension starts agent in wrong working dir #2660

Closed
opened 2026-02-16 17:36:41 -05:00 by yindo · 3 comments
Owner

Originally created by @hmps on GitHub (Nov 7, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When using the new Zed extension to start a session with the agent, the working dir is set to Zed's temporary directory. If I launch the agent when configure in settings, it works as expected.

When it launches in the temporary dir, I can still tag files and it will happily make changes to them. But all the changes will be made in a copy of the file in the temporary dir. So while I don't see any changes, the agent reports that all the changes has been made and are ready for me :)

With extension

Image Image

With manual config

Image

Config

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

OpenCode version

1.0.39

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26.1

Terminal

No response

Originally created by @hmps on GitHub (Nov 7, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When using the new [Zed extension](https://zed.dev/extensions/opencode) to start a session with the agent, the working dir is set to Zed's temporary directory. If I launch the agent when configure in settings, it works as expected. When it launches in the temporary dir, I can still tag files and it will happily make changes to them. But all the changes will be made in a copy of the file in the temporary dir. So while I don't see any changes, the agent reports that all the changes has been made and are ready for me :) ### With extension <img width="1158" height="896" alt="Image" src="https://github.com/user-attachments/assets/1df8b474-34a1-4145-b22b-68c9d398c859" /> <img width="1144" height="738" alt="Image" src="https://github.com/user-attachments/assets/7947568f-fec7-4311-b32d-f9d2317ed3d5" /> ### With manual config <img width="1160" height="846" alt="Image" src="https://github.com/user-attachments/assets/8d0db7a3-b64f-4a26-a07c-1e10bcbf90d6" /> #### Config ```json "agent_servers": { "opencode": { "command": "opencode", "args": ["acp"] } }, ``` ### OpenCode version 1.0.39 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 26.1 ### Terminal _No response_
yindo added the bug label 2026-02-16 17:36:41 -05:00
yindo closed this issue 2026-02-16 17:36:41 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@hmps i think this is a bug in zed did you update your ide to latest? they fixed this

@rekram1-node commented on GitHub (Nov 7, 2025): @hmps i think this is a bug in zed did you update your ide to latest? they fixed this
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

nvm zed broke something for us so I need to update the code & update extension going to do that today

@rekram1-node commented on GitHub (Nov 7, 2025): nvm zed broke something for us so I need to update the code & update extension going to do that today
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

@hmps update your zed extension and it should work now

@rekram1-node commented on GitHub (Nov 7, 2025): @hmps update your zed extension and it should work now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2660