Skip to content

Zed extension starts agent in wrong working dir #4029

Closed

Description

@hmps

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

Activity

  1. added
    bugSomething isn't working
    on Nov 7, 2025
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 7, 2025
  3. rekram1-node commented on Nov 7, 2025

    @rekram1-node
    Contributor

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

  4. self-assigned this
    on Nov 7, 2025
  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 7, 2025
  6. rekram1-node commented on Nov 7, 2025

    @rekram1-node
    Contributor

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

  7. rekram1-node commented on Nov 7, 2025

    @rekram1-node
    Contributor

    @hmps update your zed extension and it should work now

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions