anomalyco / anomalyco/opencode
`@` file autocomplete is always empty for projects on WSL Windows drives (`/mnt/*`)
@Hona is already working on this.
Since Sep 17, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
@ file autocomplete is always empty for projects on WSL Windows drives (/mnt/*). The TUI shows "No matching items", and typing a filename prefix never completes.
Reproduced against the same backend the TUI uses (opencode debug file search, backed by packages/core/src/filesystem/search.ts):
| cwd | opencode debug file search <query> |
opencode debug rg files |
|---|---|---|
| /mnt/e/officeskilltest (manuscript.doc, pptpicture.png) | empty | lists both files |
| /mnt/e/familiar | empty | lists files |
| /mnt/c/Users/24318 | empty | lists files |
| /mnt/e/share_for_server | returns files | returns files |
| /home/wslubuntu/.config/opencode (ext4) | returns files | returns files |
When the root is a home dir the log shows fff refusing to initialize:
WARN "failed to initialize fff" error="Failed to init file picker: Can not run certain FFF features in a file system root or home directories..."
In the empty case the file service degrades to find/glob/grep => [] with no user-visible error, so @ silently has no files.
Workaround: OPENCODE_DISABLE_FFF=1, or keep the project on the Linux filesystem.
Related: #41457 (different: files missing only on first open).
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.