anomalyco / anomalyco/opencode

Web & Desktop home UIs render no projects/sessions against a headless server (v1.18.19) although GET /project returns the registered git project

Open
#44,216 3 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 22, 2026.

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

Description

Environment

  • opencode web v1.18.19 headless on Ubuntu 24.04 (systemd), --hostname 127.0.0.1 --port 4096, WorkingDirectory set to a git repository (/opt/data/aicoding/repos/ai-prentice-4-all).
  • Clients tested: web UI via HTTPS reverse proxy (Chrome, normal + private windows), Desktop app 1.18.x (macOS arm64) connected via defaultServerUrl (tunnel), TUI via opencode attach.

Expected

Home UI lists the server's project (the git repo) and its sessions; "+"/Add project usable.

Actual

  • Web home shows Nothing here yet / Create a session to get started; Add project greyed; no project nodes (also with ?directory=<repo> in the URL and in a clean private window).
  • Desktop shows the server as connected (green dot, Default Server) but lists no sessions/projects; its Add project opens the local OS file picker (useless for a remote server).
  • TUI (opencode attach) works fine and lists sessions — so the server itself is healthy.

Evidence (server side is correct)

GET /project returns:

[{"id":"global","worktree":"/"},{"id":"76860fc1…","worktree":"/opt/data/aicoding/repos/ai-prentice-4-all","vcs":"git","sandboxes":[…]}]

GET /session?directory=<repo> returns sessions with that projectID. GET /global/health = {"healthy":true}.

Tried

  • POST /session?directory=<repo> (registers project correctly; UI still empty).
  • POST /experimental/workspace {"type":"worktree"}WorkspaceCreateError: Timed out waiting for global event (and, before the project existed, Worktrees are only supported for git projects).
  • Setting server cwd to the git repo (project then auto-registers; UI still empty).
  • Private/incognito windows; hard reloads.

Impact

Headless deployments (the documented opencode serve/opencode web use-case) have no usable web/desktop home; only the TUI works. Related: #7790, #7371.

Suggestion

Home should render GET /project results regardless of workspace layer; web needs a server-side directory picker instead of the OS picker; workspace creation should not hang (Timed out waiting for global event).

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.