anomalyco / anomalyco/opencode

Web UI: "New Session" button stays disabled even though server is correctly bound to project directory

Open
#39,330 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 28, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

After starting opencode web in a project directory, the homepage's "New Session"
button remains permanently disabled/grayed out, with no tooltip explaining why —
even though the server itself is correctly bound to the project and fully functional
when queried directly.

Environment
  • OpenCode version: 1.18.8
  • OS: Ubuntu (server), accessed via VS Code Remote-SSH port forwarding
  • Started with: opencode web (port 4096)
Actual Behavior

"New Session" button is disabled on the homepage despite the server being fully
functional and correctly scoped.

Expected Behavior

"New Session" should be clickable and start a session in the server's bound directory,
since the server itself has no issue serving or searching that directory.

Additional Notes

The homepage's "Open Project"/folder search dialog separately returns "No folders
found" when searching from directories outside the server's own root — this appears
to be expected/by-design (external-directory boundary), but may be confusing UX since
it's presented in the same flow as starting a session in the current project.

Plugins

GSD and Context Mode

OpenCode version

1.18.8

Steps to reproduce
Steps to Reproduce
  1. cd ~/social-content && opencode web
  2. Open the forwarded URL in browser (fresh/incognito, cache cleared)
  3. Homepage loads, but "New Session" button is grayed out with no tooltip
Evidence the server itself is correctly configured
  • GET /path correctly returns:
    directory: "/home/developer/social-content", worktree: "/home/developer/social-content"
  • GET /find/file?query=socia&directory=/home/developer/social-content returns real
    matching files inside the project
  • GET /find/file?query=socia&directory=/home/developer (outside the bound directory)
    correctly returns [] — expected, since this is outside the server's directory boundary
  • ripgrep is installed and working (~/.cache/opencode/bin/rg, v14.1.0)
  • Server process confirmed via readlink /proc/<pid>/cwd to be rooted in the correct directory
  • Restarting the server after confirming ripgrep works did not resolve the issue
Screenshot and/or share link

No response

Operating System

Ubuntu

Terminal

VSCode

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.