anomalyco / anomalyco/opencode

`@` file autocomplete is always empty for projects on WSL Windows drives (`/mnt/*`)

Open
#49,536 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.