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 autocomplete fails completely on Windows due to path separator mismatch #23144
On Windows, the @ file autocomplete feature fails to list any files. The autocomplete popup appears, but no files are shown regardless of what is typed after @.
This is different from the performance issues reported in #22627 and #23088 - on Windows, the feature is completely non-functional due to a path separator bug, not just slow.
Plugins
No response
OpenCode version
1.4.9
Steps to reproduce
Environment
OpenCode version: 1.4.9
Operating System: Windows 11
Terminal: PowerShell / Windows Terminal
Installation method: npm
Steps to Reproduce
Open any project directory in OpenCode on Windows
Start a new chat or use existing chat
Type @ to trigger file autocomplete
Type any character (e.g., @d) to search for files
Expected: File list appears with matching files
Actual: No files appear, list remains empty
Root Cause Analysis
After investigating the source code, I found the issue is in packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx:
Activity
github-actions commentedon Apr 17, 2026
This issue might be a duplicate of existing issues. Please check:
@file autocomplete shows no files on Windows. Although this issue provides a different root cause analysis (path separator mismatch), the visible behavior appears very similar. Please confirm whether your issue is distinct from Input '@' cannot list workspace files, file search results always return 0 #18871 before we proceed.If you believe your issue is truly distinct from #18871 with a separate root cause, please clarify in a comment so maintainers can keep both open.
github-actions commentedon Jul 5, 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.