Skip to content

Open Project dialog cannot access directories outside home #9795

Closed

Description

@tisDDM

Description

The "Open project" dialog in the web UI is limited to the user's home directory.
It's not possible to open projects located elsewhere on the filesystem
(e.g. /develop/software).

Root Cause

  1. The /find/file endpoint ignores the directory parameter sent by the client
  2. File.search() always searches within Instance.directory
  3. The dialog component doesn't properly handle absolute path input

Steps to Reproduce

  1. Run opencode web
  2. Press Cmd+O / Ctrl+O to open "Open project" dialog
  3. Type /develop or any absolute path outside home
  4. Dialog shows "No folders found" or only returns results from home

Expected Behavior

Typing /develop/ should list directories inside /develop/.

Related

Follow-up to #8325 which fixed the initial "No folders found" issue but
didn't address paths outside the home directory.

Activity

  1. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

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

    Related to #8325 which was recently closed (2026-01-21) as a partial fix but appears to have not fully addressed paths outside the home directory.

    Feel free to ignore if your specific case differs from these.

  2. added a commit that references this issue on Jan 21, 2026
    06e9794
  3. djdembeck commented on Jan 22, 2026

    @djdembeck

    Would be great to get this merged, seeing this issue as well

  4. truemogician commented on Jan 24, 2026

    @truemogician

    This is a huge headache for Windows users, and it's been 3 weeks since someone first reported. We even have 3 open PRs trying to solve this issue.
    I don't see the reason for setting it aside for so long, especially considering the rapid iteration of this project. This should definitely be prioritized.

  5. tisDDM commented on Jan 27, 2026

    @tisDDM
    Author

    Fixed upstream in a8018dc and 972cb01 (v1.1.33+). Verified working.

  6. eadwu commented on Feb 8, 2026

    @eadwu

    Just putting it here that it hasn't been fixed.

    Simple Docker container that has /workspace as workdir and it never shows up regardless of working directory.

    Putting it under /root makes it show up fine.

  7. uukelele commented on Jul 20, 2026

    @uukelele

    This is also a problem when working from GitHub codespaces as the main directory is /workspaces/<repo-name> instead of /home/user

  8. Arsalankhan315 commented on Jul 20, 2026

    @Arsalankhan315
  9. Arsalankhan315 commented on Jul 20, 2026

    @Arsalankhan315
  10. AliSananS commented on Sep 24, 2026

    @AliSananS

    The problem was solved in old UI but in new UI (with tabs) you can no longer open projects outside $HOME.
    I like to keep my projects in /workspace directory. Linking directory doesn't work properly. Mounting /workspace to $HOME/workspace is the only option I have: sudo mount --bind /workspace $HOME/workspace

  11. CharlesScoville commented on Oct 13, 2026

    @CharlesScoville

    I can also report that file picker is broken for the current web UI. I am launching opencode from my $HOME dir on Debian, I have all my projects, or links to projects, in there. The "add project" window only sees 1/10th of the dirs.

    This is the third outstanding issue I have found in opencode, and I have only been using it for two days.

    ... this whole project is broken.

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

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions