[Web] 启动目录被强制覆盖为 Home (~),无法直接打开当前项目 #7765

Open
opened 2026-02-16 18:08:10 -05:00 by yindo · 1 comment
Owner

Originally created by @3558L on GitHub (Jan 27, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

1. 路径强制覆盖逻辑

通过 localhost:4096/path 检查,发现项目路径其实已经被系统检测到了。但在后续的加载逻辑中,directory 参数被强行重置成了 ~

2. Windows 平台体验极差

这个问题在 Windows 上非常影响体验。因为项目通常不在 C 盘,一旦被重置回 ~,必须从盘符(如 D:/)开始一层层手动输入路径。且输入框中一旦点击下拉提示的父文件夹,就会直接将其选为根目录,导致无法继续补全子路径,只能纯手动敲字。

Plugins

oh-my-opencode

OpenCode version

1.1.36

Steps to reproduce

No response

Screenshot and/or share link

Image Image

Operating System

Windows11

Terminal

Powershell

Originally created by @3558L on GitHub (Jan 27, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description ### 1. 路径强制覆盖逻辑 通过` localhost:4096/path` 检查,发现项目路径其实已经被系统检测到了。但在后续的加载逻辑中,`directory` 参数被强行重置成了` ~`。 ### 2. Windows 平台体验极差 这个问题在 Windows 上非常影响体验。因为项目通常不在 C 盘,一旦被重置回 `~`,必须从盘符(如 D:/)开始一层层手动输入路径。且输入框中一旦点击下拉提示的父文件夹,就会直接将其选为根目录,导致无法继续补全子路径,只能纯手动敲字。 ### Plugins oh-my-opencode ### OpenCode version 1.1.36 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="1784" height="471" alt="Image" src="https://github.com/user-attachments/assets/3f01e9c8-18e9-4cc9-b615-9ffb2af1bf21" /> <img width="1294" height="93" alt="Image" src="https://github.com/user-attachments/assets/3f06fea6-0ce5-4a64-a59d-61562779264e" /> ### Operating System Windows11 ### Terminal Powershell
yindo added the windowsbugweb labels 2026-02-16 18:08:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 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) - Similar Windows path navigation issues

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

@github-actions[bot] commented on GitHub (Jan 27, 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) - Similar Windows path navigation issues 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#7765