anomalyco / anomalyco/opencode
Web UI: "New Session" button stays disabled even though server is correctly bound to project directory
@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
cd ~/social-content && opencode web- Open the forwarded URL in browser (fresh/incognito, cache cleared)
- Homepage loads, but "New Session" button is grayed out with no tooltip
Evidence the server itself is correctly configured
GET /pathcorrectly returns:
directory: "/home/developer/social-content",worktree: "/home/developer/social-content"GET /find/file?query=socia&directory=/home/developer/social-contentreturns real
matching files inside the projectGET /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>/cwdto 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
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.