Skip to content

@ file mentions always return "No matching items" even though files are accessible (Windows, v1.16.2) #31075

Closed as not planned

Description

@epaniaguam

Description

What happened?

File mentions using @ never return any results.

For example:

@DESIGN

returns:

No matching items

even though DESIGN.md exists in the project root.

The same happens with every project I tested.

Environment
OpenCode version: 1.16.2
OS: Windows 11 (build 26200)
Git repository: Yes
Expected behavior

Typing part of a file name after @ should show matching files.

Example:

@web

should suggest:

web/
Actual behavior

The autocomplete popup shows:

No matching items

for every file name tested.

Additional information

OpenCode can access project files normally.

Examples that work:

List all files in the project root

returns:

web/
...

and:

#web/package.json

successfully reads the file.

This suggests the filesystem and workspace indexing are working, but the @ file mention autocomplete is not.

Plugins

No response

OpenCode version

OpenCode version: 1.16.2

Steps to reproduce

Open any Git project.
Start OpenCode.
Type:
@web
Observe that the popup displays:
No matching items

Troubleshooting already performed
Reinstalled OpenCode
Tested multiple projects
Tested with opencode --pure
Verified workspace detection
Verified file access
Verified Git repository detection

Screenshot and/or share link

Open any Git project.

Start OpenCode.
Type:
@DESIGN
Observe that the popup displays:
No matching items

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jun 6, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from the above (e.g. a different root cause or different behavior), please add a comment explaining how it differs so maintainers can keep them separate.

  2. LOYINuts commented on Jun 11, 2026

    @LOYINuts

    same

  3. wuhao2343 commented on Jun 19, 2026

    @wuhao2343

    I have found a solution:

    1. 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)
    2. Copy rg.exe to the directory %USERPROFILE%\.local\share\opencode\bin , and set this directory in the environment variables
    3. Restarting opencode will solve the problem
    Image
  4. github-actions commented on Aug 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions