Skip to content

@ symbol completely fails to reference files in any directory on Windows (v1.15.12) #29859

Closed

Description

@joesdu

Description

When using the @ symbol to reference files in OpenCode TUI, no files are found at all in any directory on the system. The autocomplete dropdown only shows subAgent list without any file suggestions.
This is not a drive-specific issue - it occurs consistently across all directories and drives on the same machine.

Plugins

No response

OpenCode version

1.15.12

Steps to reproduce

  1. Open PowerShell/Terminal
  2. Navigate to any directory (tested on multiple drives and paths)
  3. Launch OpenCode: opencode
  4. In the chat input, type @
  5. Observe: No file suggestions appear, only subAgent list

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on May 29, 2026

    @github-actions
    Contributor

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

    If your issue is different from the above, please add details explaining how it differs.

  2. LOYINuts commented on Jun 11, 2026

    @LOYINuts

    same

  3. joesdu commented on Jun 12, 2026

    @joesdu
    Author

    It's very strange; sometimes it can list files normally, and sometimes it can't. I remember it worked in version 1.16.x, but now it doesn't work in version 1.17.3.

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