Skip to content

🐞 Bug Report: Windows references @alias/ file search not working #33573

Description

@hongenge

Description

On Windows, OpenCode references work partially:

  • @alias can correctly attach a configured reference root directory
  • but @alias/ file-level search inside the referenced directory does NOT work

This breaks expected behavior described in the documentation.

According to docs, both should work:

  • @alias → attach reference root
  • @alias/ → browse/search files inside reference

However, on Windows, only the first case works.

Steps to Reproduce

  1. Configure a reference in opencode.jsonc:
{
  "references": {
    "docs": {
      "path": "D:/docs"
    }
  }
}
  1. Start OpenCode on Windows
  2. In TUI input:
@docs

✔ Works: reference is attached

@docs/

❌ Does NOT work: no file autocomplete / no search results / no file expansion

OpenCode version

1.17.9

Operating System

Windows 10

Terminal

WezTerm+pwsh

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions