You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@ file mention never shows project files on Windows — only agents (general/explore) appear #28824
[BUG] @ file mention never shows project files on Windows — only agents (general/explore) appear OpenCode version: 1.15.7 Platform: Windows (win32, Windows 10/11) Shell: PowerShell 7.6.1 (pwsh) Terminal: VS Code integrated terminal + standalone PowerShell (both affected)
Summary
Typing @ in the TUI prompt only shows agent suggestions (@general, @explore). Project files never appear, regardless of whether I type just @ or @ followed by search text. The opencode debug file tree command fails with "Unexpected error".
No file.tree.updated, mention, or autocomplete events appear in logs. opencode debug file tree fails:
Error: Unexpected error, check log file at ...
opencode debug file list works — server CAN see files, but TUI mention system doesn't receive them. opencode debug file status works — returns git file status correctly. Resolved config shows watcher ignore patterns are applied:
Your issue provides additional diagnostic detail (watcher initializes but never publishes a file tree, opencode debug file tree failing) which may be helpful context even if the root cause overlaps.
Find rg.exe (many development software come with this tool, such as VSCode. You can use a global search tool like Everything to search for it. If you can't find it, download one)
Copy rg.exe to the directory %USERPROFILE%\.local\share\opencode\bin, and set this directory in the environment variables
Activity
github-actions commentedon May 22, 2026
This issue might be a duplicate of existing issues. Please check:
@file autocomplete fails completely on Windows due to path separator mismatch— same symptom (@ only shows agents, no files) on Windows, with a root cause analysis pointing to path separator handlingInput '@' cannot list workspace files, file search results always return 0— same symptom on WindowsBug: file watcher paths stop matching open files on Windows— related file watcher + Windows path issueYour issue provides additional diagnostic detail (watcher initializes but never publishes a file tree,
opencode debug file treefailing) which may be helpful context even if the root cause overlaps.LOYINuts commentedon Jun 11, 2026
same
adeelrehmancs commentedon Jun 16, 2026
same
wuhao2343 commentedon Jun 19, 2026
I have found a solution:
%USERPROFILE%\.local\share\opencode\bin, and set this directory in the environment variablesgithub-actions commentedon Aug 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.