File selection in the WebUI does not work #5843

Open
opened 2026-02-16 17:57:29 -05:00 by yindo · 0 comments
Owner

Originally created by @jfayad on GitHub (Jan 14, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

When I try to reference a specific file through the @ command I constantly get a no matching result (even before typing)

On the console I see an error on the following request:

http://127.0.0.1:4096/find/file?dirs=true

which returns:

{
  "data": {
    "dirs": "true"
  },
  "error": [
    {
      "expected": "string",
      "code": "invalid_type",
      "path": [
        "query"
      ],
      "message": "Invalid input: expected string, received undefined"
    }
  ],
  "success": false
}

Plugins

none

OpenCode version

1.1.20

Steps to reproduce

  1. Open the webUI
  2. Start typing a prompt and reference a file with the @ command

Screenshot and/or share link

No response

Operating System

macOS Sonoma 14.4.1

Terminal

WebUI started from vscode terminal with opencode --port 4096 -> Ctrl+P -> Open WebUI

Originally created by @jfayad on GitHub (Jan 14, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description When I try to reference a specific file through the `@` command I constantly get a `no matching result` (even before typing) On the console I see an error on the following request: http://127.0.0.1:4096/find/file?dirs=true which returns: ```json { "data": { "dirs": "true" }, "error": [ { "expected": "string", "code": "invalid_type", "path": [ "query" ], "message": "Invalid input: expected string, received undefined" } ], "success": false } ``` ### Plugins none ### OpenCode version 1.1.20 ### Steps to reproduce 1. Open the webUI 2. Start typing a prompt and reference a file with the `@` command ### Screenshot and/or share link _No response_ ### Operating System macOS Sonoma 14.4.1 ### Terminal WebUI started from vscode terminal with opencode --port 4096 -> Ctrl+P -> Open WebUI
yindo added the bugweb labels 2026-02-16 17:57:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5843