Skip to content

File selection in the WebUI does not work #8486

@jfayad

Description

@jfayad

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions