opencode desktop 在执行中会 Glob /xxx path 检索根目录,并不是项目目录 #4332

Open
opened 2026-02-16 17:43:27 -05:00 by yindo · 2 comments
Owner

Originally created by @mxyhi on GitHub (Jan 6, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

opencode desktop 在执行中会 Glob /xxx path 检索根目录,并不是项目目录

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @mxyhi on GitHub (Jan 6, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description opencode desktop 在执行中会 Glob /xxx path 检索根目录,并不是项目目录 ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 17:43:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 6, 2026):

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

  • #6336: opencode web - thinks it is in root (/) path
  • #6478: opencode reads agents.md from parent directories
  • #4686: TUI sends absolute local paths causing ENOENT on server side
  • #6835: Desktop crashes when opening project after attach to remote server
  • #6900: skill can't find scripts path
  • #5380: TUI referencing local directory when using attach --dir to connect to a remote server
  • #3551: Sessions are now mixed with home directory session list, disregarding which directory you're in

These issues all involve incorrect directory path resolution where OpenCode is reading from the root directory, home directory, or a different directory than the project directory. Your issue might be related to one of these existing path resolution bugs.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 6, 2026): This issue might be a duplicate of existing issues. Please check: - #6336: opencode web - thinks it is in root (/) path - #6478: opencode reads agents.md from parent directories - #4686: TUI sends absolute local paths causing ENOENT on server side - #6835: Desktop crashes when opening project after attach to remote server - #6900: skill can't find scripts path - #5380: TUI referencing local directory when using attach --dir to connect to a remote server - #3551: Sessions are now mixed with home directory session list, disregarding which directory you're in These issues all involve incorrect directory path resolution where OpenCode is reading from the root directory, home directory, or a different directory than the project directory. Your issue might be related to one of these existing path resolution bugs. Feel free to ignore if none of these address your specific case.
Author
Owner

@ualtinok commented on GitHub (Jan 30, 2026):

@adamdotdevin https://github.com/anomalyco/opencode/issues/9077 is closed but I'm still seeing Opencode desktop calling Glob with '/'

What could be the reason? Maybe when model use '/' as path for glob we should convert to cwd?

@ualtinok commented on GitHub (Jan 30, 2026): @adamdotdevin https://github.com/anomalyco/opencode/issues/9077 is closed but I'm still seeing Opencode desktop calling Glob with '/' What could be the reason? Maybe when model use '/' as path for glob we should convert to cwd?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4332