Web frontend "open project" on Windows only lists user folder and fails for absolute/relative paths #4600

Closed
opened 2026-02-16 17:44:45 -05:00 by yindo · 1 comment
Owner

Originally created by @truemogician on GitHub (Jan 10, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

In web/server mode on Windows, the "Open Project" button only shows subfolders of the user's home directory (%UserProfile%). Entering absolute paths (e.g., C:\path\to\project) or relative paths returns no results - the dialog never finds the folder.

Suggested Fixes

  1. Backend path normalization and resolution
    Resolve and normalize the path from user input before calling the directory listing API.
  2. Use a native/browser directory picker on the frontend
    Use File System Access API (showDirectoryPicker) or a standard fallback so the browser opens a native directory selection dialog, avoiding manual path parsing and improving UX.

Plugins

oh-my-opencode

OpenCode version

1.1.11

Steps to reproduce

  1. Run opencode web on Windows.
  2. Click "Open project".
  3. Type any absolute path

Screenshot and/or share link

No response

Operating System

Windows 11 Enterprise

Terminal

Windows Terminal

Originally created by @truemogician on GitHub (Jan 10, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description In web/server mode on Windows, the "Open Project" button only shows subfolders of the user's home directory (`%UserProfile%`). Entering absolute paths (e.g., C:\path\to\project) or relative paths returns no results - the dialog never finds the folder. #### Suggested Fixes 1. Backend path normalization and resolution Resolve and normalize the path from user input before calling the directory listing API. 2. Use a native/browser directory picker on the frontend Use File System Access API (`showDirectoryPicker`) or a standard <input type="file" webkitdirectory> fallback so the browser opens a native directory selection dialog, avoiding manual path parsing and improving UX. ### Plugins oh-my-opencode ### OpenCode version 1.1.11 ### Steps to reproduce 1. Run `opencode web` on Windows. 2. Click "Open project". 3. Type any absolute path ### Screenshot and/or share link _No response_ ### Operating System Windows 11 Enterprise ### Terminal Windows Terminal
yindo added the windowsbugweb labels 2026-02-16 17:44:45 -05:00
yindo closed this issue 2026-02-16 17:44:45 -05:00
Author
Owner

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

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

  • #6490: opencode web UI cannot browse or select folders outside the default user profile (e.g., D:\code\python) - exact same issue on Windows
  • #6978: Can not switch the project in web mode - similar path selection limitation in web mode

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #6490: opencode web UI cannot browse or select folders outside the default user profile (e.g., D:\code\python) - exact same issue on Windows - #6978: Can not switch the project in web mode - similar path selection limitation in web mode Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4600