Skip to content

[Bug] OpenCode Web shows "No folders found" although projects are returned by the backend API #39655

Closed as not planned

Description

Description

When running opencode web, the Web UI starts successfully and is accessible in the browser.

However, the home page and the Open Project dialog both show "No folders found", even though the backend already returns all projects correctly.

The issue appears to be on the Web UI side because:

  • /project returns all existing projects (17 projects in my case)
  • /session returns existing sessions
  • All requests return HTTP 200
  • The UI still shows an empty project list

Server log also prints:

Failed to initialize fff
Failed to init file picker: Can not run certain FFF features in a file system root or home directories. Consider smaller per-project directories.

### Additional information

The backend appears to work correctly.

`GET /project` returns existing projects, for example:

```json
[
  {
    "worktree": "/Users/.../Documents/GitHub/openclaw"
  },
  {
    "worktree": "/Users/.../Documents/GitHub/unified-agentic-os"
  }
]

The local database also contains projects:

SELECT COUNT(*) FROM project;
17

The issue seems to be that the Web UI does not render the projects even though they are successfully returned by the backend.

Plugins

None

OpenCode version

1.18.9

Steps to reproduce

  1. Start OpenCode Web
opencode web
  1. Open the Web UI in the browser.

  2. Observe that the home page and the Open Project dialog display "No folders found".

  3. Open DevTools → Network.

  4. Observe that the project request returns HTTP 200 and contains all existing projects, but none are rendered in the UI.

Screenshot and/or share link

Image Image Image

Operating System

macOS Sequoia 15.x (Intel)

Terminal

iTerm2

Activity

  1. github-actions commented on Jul 30, 2026

    @github-actions
    Contributor

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

  2. OpeOginni commented on Jul 30, 2026

    @OpeOginni
    Contributor

    You have to actively load these projects into the local storage of the web app, by inputing them and adding them.

  3. cf-joshnabbott commented on Jul 30, 2026

    @cf-joshnabbott

    You have to actively load these projects into the local storage of the web app, by inputing them and adding them.

    @OpeOginni is the process explained somewhere?

  4. OpeOginni commented on Jul 30, 2026

    @OpeOginni
    Contributor

    Not too complicated, just click Add Project, then the path of the folder on your machine

  5. changer-changer commented on Aug 8, 2026

    @changer-changer

    Reproducing on 1.18.15 (npm, Ubuntu 22.04, opencode web --hostname 0.0.0.0). Same symptoms: home shows "这里还没有内容 / Nothing here yet", "New session" inert, while /api/session returns all sessions correctly.

    Additional finding: the web frontend bundled in opencode-ai@1.18.15 is actually the 1.18.14 build (see #41280), so users of 1.18.15 won't see any frontend fix from this PR until the packaging is corrected too.

    Workaround that works (client-side, no rebuild): seed the bookmark store in localStorage, then reload:

    const KEY='opencode.global.dat:server', DIR='/home/your/session/dir';
    const st=JSON.parse(localStorage.getItem(KEY)||'{"list":[],"projects":{"local":[]},"lastProject":{},"recentlyClosed":{}}');
    st.projects.local.push({worktree:DIR, expanded:true});
    st.lastProject={local:DIR};
    localStorage.setItem(KEY, JSON.stringify(st));

    Verified: after reload the session list (grouped by day) and "New session" both work. The same key is what the "Add project" dialog writes when you pick a folder manually.

  6. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions