anomalyco / anomalyco/opencode

[Bug] WebUI gets no response after sending message: GET /api/reference fails due to special characters in path; direct API calls work fine

Open
#39,830 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
Describe the bug

When using the official Linux x64-baseline release binary, after sending messages in the Web chat interface, there is no response from the model.
Browser dev console shows an error on request GET /api/reference: the request path contains unexpected special characters.

Notably:
Direct API requests to /v1/chat/completions work perfectly when invoked manually. This issue only occurs within the WebUI.

Suspected root cause:
The pre-built release binary embeds stale frontend assets. The frontend code generates malformed request URLs with illegal characters, which causes the backend path resolution to fail.

Environment
  • Binary: opencode-linux-x64-baseline.tar.gz (downloaded from GitHub Releases)
  • OS: Kylin Linux V10 x86_64
  • Startup command:
    ./opencode serve --hostname 0.0.0.0 --port 4096
Steps to reproduce
  1. Launch opencode with the official prebuilt Linux binary
  2. Visit the WebUI in browser
  3. Create a new conversation and send any text message
Expected behavior

The model responds normally in the Web chat window.

Actual behavior

No reply is displayed. Browser console captures errors for GET /api/reference caused by special characters inside the requested directory path.

Additional information
  1. Manual calls to OpenAI-compatible /v1/chat/completions API work without any error.
  2. The musl variant binary fails to run on Kylin Linux.
Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.