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
@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
- Launch opencode with the official prebuilt Linux binary
- Visit the WebUI in browser
- 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
- Manual calls to OpenAI-compatible
/v1/chat/completionsAPI work without any error. - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.