Open Project dialog cannot access directories outside home #7052

Closed
opened 2026-02-16 18:06:01 -05:00 by yindo · 5 comments
Owner

Originally created by @tisDDM on GitHub (Jan 21, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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.

Originally created by @tisDDM on GitHub (Jan 21, 2026). Originally assigned to: @adamdotdevin on GitHub. ## 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.
yindo added the web label 2026-02-16 18:06:01 -05:00
yindo closed this issue 2026-02-16 18:06:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 21, 2026):

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

  • #7577: Opencode Web: "Open Project" does not show some folders - user cannot navigate to projects outside home directory
  • #6490: opencode web UI cannot browse or select folders outside the default user profile (e.g., D:\code\python) - Windows-specific case with same root cause
  • #7597: Web frontend "open project" on Windows only lists user folder and fails for absolute/relative paths - closed Windows-specific duplicate with suggested fixes
  • #8486: File selection in the WebUI does not work - related to the /find/file endpoint issues

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.

@github-actions[bot] commented on GitHub (Jan 21, 2026): This issue might be a duplicate of existing issues. Please check: - #7577: Opencode Web: "Open Project" does not show some folders - user cannot navigate to projects outside home directory - #6490: opencode web UI cannot browse or select folders outside the default user profile (e.g., D:\code\python) - Windows-specific case with same root cause - #7597: Web frontend "open project" on Windows only lists user folder and fails for absolute/relative paths - closed Windows-specific duplicate with suggested fixes - #8486: File selection in the WebUI does not work - related to the /find/file endpoint issues 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.
Author
Owner

@djdembeck commented on GitHub (Jan 22, 2026):

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

@djdembeck commented on GitHub (Jan 22, 2026): Would be great to get this merged, seeing this issue as well
Author
Owner

@truemogician commented on GitHub (Jan 24, 2026):

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.

@truemogician commented on GitHub (Jan 24, 2026): 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.
Author
Owner

@tisDDM commented on GitHub (Jan 27, 2026):

Fixed upstream in a8018dcc4 and 972cb01d5 (v1.1.33+). Verified working.

@tisDDM commented on GitHub (Jan 27, 2026): Fixed upstream in a8018dcc4 and 972cb01d5 (v1.1.33+). Verified working.
Author
Owner

@eadwu commented on GitHub (Feb 7, 2026):

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.

@eadwu commented on GitHub (Feb 7, 2026): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7052