anomalyco / anomalyco/opencode
Web interface working directory path corruption
Open
@Hona is already working on this.
Since Jul 22, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Web interface (opencode web) can not be used. Logs reveal that some weird character got appended to the working directory path.
This happens on both MacOS and Ubuntu Linux server.
Plugins
superpowers@git+https://github.com/obra/superpowers.git
OpenCode version
1.18.4
Steps to reproduce
- Run
opencode web --print-logs --log-level DEBUG - Try to prompt int the web interface.
Screenshot and/or share link
toan@toans-MacBook-Pro paste % opencode web --print-logs --log-level DEBUG
! OPENCODE_SERVER_PASSWORD is not set; server is unsecured.
timestamp=2026-07-22T03:03:08.482Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/config.json
timestamp=2026-07-22T03:03:08.487Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/opencode.json
timestamp=2026-07-22T03:03:08.492Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/opencode.jsonc
▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█ █ █ █ █▀▀▀ █ █ █ █ █ █ █ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
Web interface: http://127.0.0.1:4096/
timestamp=2026-07-22T03:03:09.122Z level=INFO run=2af9f91f message="global event connected"
timestamp=2026-07-22T03:03:09.178Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/config.json
timestamp=2026-07-22T03:03:09.178Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/opencode.json
timestamp=2026-07-22T03:03:09.187Z level=INFO run=2af9f91f message=loading path=/Users/toan/.config/opencode/opencode.jsonc
timestamp=2026-07-22T03:03:09.190Z level=INFO run=2af9f91f message="creating instance" directory=/Users/toan/Dev/paste
timestamp=2026-07-22T03:03:09.192Z level=INFO run=2af9f91f message=fromDirectory directory=/Users/toan/Dev/paste
timestamp=2026-07-22T03:03:09.357Z level=INFO run=2af9f91f message=bootstrapping directory=/Users/toan/Dev/paste
timestamp=2026-07-22T03:03:09.404Z level=DEBUG run=2af9f91f message="loading config from /Users/toan/.opencode/opencode.json"
timestamp=2026-07-22T03:03:09.405Z level=INFO run=2af9f91f message=loading path=/Users/toan/.opencode/opencode.json
timestamp=2026-07-22T03:03:09.416Z level=DEBUG run=2af9f91f message="loading config from /Users/toan/.opencode/opencode.jsonc"
timestamp=2026-07-22T03:03:09.416Z level=INFO run=2af9f91f message=loading path=/Users/toan/.opencode/opencode.jsonc
timestamp=2026-07-22T03:03:09.465Z level=INFO run=2af9f91f message="all LSPs are disabled"
timestamp=2026-07-22T03:03:09.468Z level=INFO run=2af9f91f message="all formatters are disabled"
timestamp=2026-07-22T03:03:09.468Z level=INFO run=2af9f91f message=init
timestamp=2026-07-22T03:03:11.568Z level=INFO run=2af9f91f message="creating instance" directory=/Users/toan/Dev/paste/r�
timestamp=2026-07-22T03:03:11.569Z level=INFO run=2af9f91f message=fromDirectory directory=/Users/toan/Dev/paste/r�
timestamp=2026-07-22T03:03:12.401Z level=WARN run=2af9f91f message="failed to initialize fff" error="Failed to init file picker: Invalid path r\u0016�"
timestamp=2026-07-22T03:03:12.434Z level=ERROR run=2af9f91f message=failed ref=err_7c4f4ebc error="PlatformError: NotFound: FileSystem.realPath (r\u0016�) (cause: Error: ENOENT: no such file or directory, lstat 'r\u0016�')" cause="PlatformError: NotFound: FileSystem.realPath (r\u0016�)\n at hw (/$bunfs/root/chunk-n5xdwwdb.js:71:4288)\n at <anonymous> (/$bunfs/root/chunk-n5xdwwdb.js:27:13322)\n at processTicksAndRejections (native:7:39)\n at Server.listen (/$bunfs/root/chunk-9byymwp0.js:6:15456)\n at Server.listen (definition) (/$bunfs/root/chunk-9byymwp0.js:6:15579) {\n [cause]: Error: ENOENT: no such file or directory, lstat 'r\u0016�'\n}"
timestamp=2026-07-22T03:03:12.435Z level=INFO run=2af9f91f message=bootstrapping directory=/Users/toan/Dev/paste/r�
timestamp=2026-07-22T03:03:12.466Z level=DEBUG run=2af9f91f message="loading config from /Users/toan/.opencode/opencode.json"
timestamp=2026-07-22T03:03:12.466Z level=INFO run=2af9f91f message=loading path=/Users/toan/.opencode/opencode.json
timestamp=2026-07-22T03:03:12.466Z level=DEBUG run=2af9f91f message="loading config from /Users/toan/.opencode/opencode.jsonc"
timestamp=2026-07-22T03:03:12.466Z level=INFO run=2af9f91f message=loading path=/Users/toan/.opencode/opencode.jsonc
timestamp=2026-07-22T03:03:12.491Z level=INFO run=2af9f91f message="all LSPs are disabled"
timestamp=2026-07-22T03:03:12.491Z level=INFO run=2af9f91f message="all formatters are disabled"
timestamp=2026-07-22T03:03:12.491Z level=INFO run=2af9f91f message=init
timestamp=2026-07-22T03:03:15.057Z level=INFO run=2af9f91f message="watcher backend" directory=/Users/toan/Dev/paste platform=darwin backend=fs-events
timestamp=2026-07-22T03:03:15.073Z level=INFO run=2af9f91f message="project copy refresh started" projectID=4c16e8f9dcdebb70a8cf2e291f1ea5f549c4157f
timestamp=2026-07-22T03:03:15.444Z level=INFO run=2af9f91f message="project copy refresh done" projectID=4c16e8f9dcdebb70a8cf2e291f1ea5f549c4157f updated=[] removed=[]
timestamp=2026-07-22T03:03:15.460Z level=INFO run=2af9f91f message="booting location services" directory=/Users/toan/Dev/paste workspaceID=undefined
timestamp=2026-07-22T03:03:15.814Z level=INFO run=2af9f91f message=init count=15
timestamp=2026-07-22T03:04:10.001Z level=INFO run=2af9f91f message=cleanup prune=7.days
Operating System
MacOS 26.5.2
Terminal
iTerm2
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.