You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web UI: "Open project" picker can't navigate to parent/sibling directories (fs/list entries with ../ are dropped) #58732
In the web UI, the "Open project" folder picker can't navigate outside the currently open project. Typing a parent directory (e.g. /srv/devai/projects/) still shows the contents of the current project, and there is no way to go up to sibling projects.
The API itself returns the right entries, but relative to the session location, so siblings come back with ../. The picker seems to drop those entries (and shows ./, i.e. the current project, instead):
GET /api/fs/list?location[directory]=/srv/devai/projects/DEVAI&path=/srv/devai/projects/
{"location":{"directory":"/srv/devai/projects/DEVAI"},"data":[
{"path":"../meu-app/","type":"directory"},
{"path":"../teste-devai/","type":"directory"},
{"path":"./","type":"directory"}]}
With location[directory]=/srv/devai/projects the same call returns DEVAI/, meu-app/, teste-devai/ and the picker would work. So it looks like entries outside the location (../…) aren't resolved against location.directory (or the picker should list relative to the typed path).
Plugins
none
OpenCode version
2.1.4 (opencode serve --service, web UI)
Steps to reproduce
Have two projects side by side: /srv/projects/a and /srv/projects/b.
Open a session in project a in the web UI.
Open the "Open project" picker and type /srv/projects/.
Expected: a/ and b/. Actual: the contents of a (.git, its subfolders); you can't go up or select b.
Screenshot
Picker shows the current project's contents even though the input path is the parent directory.
Operating System
Ubuntu 26.04.1 LTS (server), browser: Chrome on Windows 11
Thanks for the detailed report and the API output! I couldn't reproduce this on 2.1.4.
I made two git projects side by side (/tmp/opencode/projects/a and /tmp/opencode/projects/b) and ran both opencode serve and opencode serve --service. In the web UI I opened a session in a, then opened the "Open project" dialog from the project dropdown under the prompt.
/api/fs/list returned ../b/ and ./ for the parent folder, the same shape as your output.
Typing /tmp/opencode/projects/ showed …/projects/b/ and …/projects/a/ as suggestions, and pressing Enter opened b.
Typing /tmp/opencode/projects (no trailing slash) and pressing Enter showed a and b in the folder list, and I could select b.
One thing that might explain what you saw: the folder list doesn't change while you type. It keeps showing the current folder until you press Enter or click one of the suggestions under the path field. Could you check whether pressing Enter (or clicking a suggestion) after typing /srv/devai/projects/ takes you there?
If it still shows the contents of DEVAI after that, these would help:
Which of these happens: no suggestions appear under the field, the suggestions don't include the sibling folders, or choosing one doesn't change the list?
Where you opened the dialog from (home screen, project dropdown under the prompt, or somewhere else).
Any errors in the browser's developer console (F12) while you type and press Enter.
Whether /srv/devai/projects or any project inside it is a symlink.
Related: #42784 (browsing into subfolders in this dialog, fixed earlier) and #58524 (a different project-switching problem in the desktop app).
Closing this for now: we couldn't reproduce it on 2.1.4 and haven't heard back. With both opencode serve and opencode serve --service, the "Open project" dialog showed the sibling folders when given the parent path, and either could be selected.
If it still happens for you, please reply with the details asked for above and we'll reopen it:
whether pressing Enter or clicking a suggestion after typing /srv/devai/projects/ takes you there
Activity
opencode-agent commentedon Oct 24, 2026
Thanks for the detailed report and the API output! I couldn't reproduce this on 2.1.4.
I made two git projects side by side (
/tmp/opencode/projects/aand/tmp/opencode/projects/b) and ran bothopencode serveandopencode serve --service. In the web UI I opened a session ina, then opened the "Open project" dialog from the project dropdown under the prompt./api/fs/listreturned../b/and./for the parent folder, the same shape as your output./tmp/opencode/projects/showed…/projects/b/and…/projects/a/as suggestions, and pressing Enter openedb./tmp/opencode/projects(no trailing slash) and pressing Enter showedaandbin the folder list, and I could selectb.One thing that might explain what you saw: the folder list doesn't change while you type. It keeps showing the current folder until you press Enter or click one of the suggestions under the path field. Could you check whether pressing Enter (or clicking a suggestion) after typing
/srv/devai/projects/takes you there?If it still shows the contents of
DEVAIafter that, these would help:/srv/devai/projectsor any project inside it is a symlink.Related: #42784 (browsing into subfolders in this dialog, fixed earlier) and #58524 (a different project-switching problem in the desktop app).
opencode-agent commentedon Oct 27, 2026
Closing this for now: we couldn't reproduce it on 2.1.4 and haven't heard back. With both
opencode serveandopencode serve --service, the "Open project" dialog showed the sibling folders when given the parent path, and either could be selected.If it still happens for you, please reply with the details asked for above and we'll reopen it:
/srv/devai/projects/takes you thereThanks for the report!