Web server hangs on GET / in git repos on v1.1.53 #8762

Open
opened 2026-02-16 18:10:46 -05:00 by yindo · 1 comment
Owner

Originally created by @robinlyu on GitHub (Feb 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

Bug Description

opencode web starts and listens, but the web UI never loads when started from a git repo directory.

The request GET / is received and marked status=started, then hangs indefinitely (no response body).

Environment

  • OpenCode: 1.1.53
  • OS: Linux (remote server)
  • Command: opencode web --hostname 0.0.0.0 --port 9998 --log-level DEBUG

Repro

  1. Run opencode web --hostname 0.0.0.0 --port 9998 --log-level DEBUG in a git repo (e.g. /home/rob/Projects/smarketing).
  2. Open http://<host>:9998.
  3. Browser hangs; curl http://127.0.0.1:9998/ also hangs.

Control Test

If I run from /tmp (non-git dir), web responds normally with HTTP/1.1 200 OK.

Relevant Logs

In failing cases, logs consistently stop after file watcher/VCS init and never show request completion:

  • service=server method=GET path=/ request
  • service=server status=started method=GET path=/ request
  • service=file.watcher platform=linux backend=inotify watcher backend
  • service=vcs branch=... initialized
  • service=bus type=file.watcher.updated subscribing

No corresponding status=completed for GET /.

Log files:

  • /home/rob/.local/share/opencode/log/2026-02-07T035949.log (fails in smarketing repo)
  • /home/rob/.local/share/opencode/log/2026-02-07T040116.log (fails in coding-agent-settings repo)
  • /home/rob/.local/share/opencode/log/2026-02-07T035917.log (works from /tmp, includes completed GET /)

Notes

This started after moving to 1.1.53. I am downgrading as workaround.

Originally created by @robinlyu on GitHub (Feb 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### Bug Description `opencode web` starts and listens, but the web UI never loads when started from a git repo directory. The request `GET /` is received and marked `status=started`, then hangs indefinitely (no response body). ### Environment - OpenCode: `1.1.53` - OS: Linux (remote server) - Command: `opencode web --hostname 0.0.0.0 --port 9998 --log-level DEBUG` ### Repro 1. Run `opencode web --hostname 0.0.0.0 --port 9998 --log-level DEBUG` in a git repo (e.g. `/home/rob/Projects/smarketing`). 2. Open `http://<host>:9998`. 3. Browser hangs; `curl http://127.0.0.1:9998/` also hangs. ### Control Test If I run from `/tmp` (non-git dir), web responds normally with `HTTP/1.1 200 OK`. ### Relevant Logs In failing cases, logs consistently stop after file watcher/VCS init and never show request completion: - `service=server method=GET path=/ request` - `service=server status=started method=GET path=/ request` - `service=file.watcher platform=linux backend=inotify watcher backend` - `service=vcs branch=... initialized` - `service=bus type=file.watcher.updated subscribing` No corresponding `status=completed` for `GET /`. Log files: - `/home/rob/.local/share/opencode/log/2026-02-07T035949.log` (fails in `smarketing` repo) - `/home/rob/.local/share/opencode/log/2026-02-07T040116.log` (fails in `coding-agent-settings` repo) - `/home/rob/.local/share/opencode/log/2026-02-07T035917.log` (works from `/tmp`, includes completed `GET /`) ### Notes This started after moving to 1.1.53. I am downgrading as workaround.
yindo added the web label 2026-02-16 18:10:46 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6363: Opencode hangs when opened in a directory with .git (similar git repo hanging issue)
  • #10812: OpenCode hangs forever during startup in project with TypeScript error (startup initialization hanging)
  • #11092: OpenCode does not show UI in terminal or web (web UI loading/hanging issues)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 6, 2026): This issue might be a duplicate of existing issues. Please check: - #6363: Opencode hangs when opened in a directory with .git (similar git repo hanging issue) - #10812: OpenCode hangs forever during startup in project with TypeScript error (startup initialization hanging) - #11092: OpenCode does not show UI in terminal or web (web UI loading/hanging issues) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8762