Skip to content

Web UI: "Open project" picker can't navigate to parent/sibling directories (fs/list entries with ../ are dropped) #58732

Closed as not planned

Description

@Lucianogdl

Description

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

  1. Have two projects side by side: /srv/projects/a and /srv/projects/b.
  2. Open a session in project a in the web UI.
  3. Open the "Open project" picker and type /srv/projects/.
  4. 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

Terminal

n/a (web UI)

Activity

  1. opencode-agent commented on Oct 24, 2026

    @opencode-agent
    Contributor

    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).

  2. opencode-agent commented on Oct 27, 2026

    @opencode-agent
    Contributor

    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
    • where you opened the dialog from
    • any errors in the browser console
    • whether any of the folders are symlinks

    Thanks for the report!

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

Metadata

Metadata

Assignees

No one assigned

    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