opencode icon indicating copy to clipboard operation
opencode copied to clipboard

File paths in assistant responses are not clickable in Zed editor

Open burugo opened this issue 1 month ago • 1 comments

Description

Description

When the assistant lists files using the list tool, the output format includes tree-style decorations (e.g., ├──, └──) which not being clickable in Zed editor.

Current behavior

packages/script/
├── src/
│   └── index.ts
├── package.json
├── sst-env.d.ts
└── tsconfig.json

These paths cannot be clicked to open files in Zed (Cmd+Click does not work).

Expected behavior

File paths produced by opencode should be recognized as clickable links by both Zed and VSCode, similar to how Codex outputs are handled, even when full absolute paths are shown. Currently full paths from opencode remain unclickable in Zed while VSCode works.

Environment

  • Editor: Zed
  • OS: macOS

Notes

  • VSCode can open the paths produced by opencode, but Zed cannot
  • Codex outputs are clickable in both editors, so opencode should match that behavior
  • Problem persists even when using full absolute paths in the response

OpenCode version

1.0.137

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macOS 26.1

Terminal

zed terminal

burugo avatar Dec 09 '25 09:12 burugo

ill fix

rekram1-node avatar Dec 09 '25 15:12 rekram1-node