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
Thanks for the report and the screenshots. As I understand it, after you renamed the project folder on disk, the Edit Project dialog gives you no way to point the project at the new path. The old project can only be closed, not deleted. When you close it and open the new folder, you end up back at the old project.
To know where this belongs, could you tell us:
Your OpenCode version (from Settings/About, or opencode --version). Is it 1.x or 2.x?
Your OS, and whether you're using the Desktop app or the web UI via opencode serve.
Whether the folder is a git repository, and if so whether it has a remote (e.g. origin).
You can reply here or edit the issue. If you edit it, please also leave a short comment saying you've updated it, so we know you're done.
These existing issues look very similar (ordered from most to least likely), so please check whether one of them already covers your problem:
We're closing this for now because we haven't heard back. We needed your OpenCode version (1.x or 2.x), OS, whether you use the Desktop app or opencode serve, and whether the folder is a git repo with a remote. With those we can tell whether this is the known 1.x problem with renamed project folders (#48349, #48278) or a new bug in 2.x.
If you're on 1.x, please follow #48349 / #48278. If it still happens on 2.x, reply here with those details and we can reopen it. Thanks!
Activity
[-]原项目修改项目名称后(磁盘文件夹名称修改),页面无法重新选择到新的项目地址[/-][+]desktop: 原项目修改项目名称后(磁盘文件夹名称修改),页面无法重新选择到新的项目地址[/+]opencode-agent commentedon Oct 19, 2026
Thanks for the report and the screenshots. As I understand it, after you renamed the project folder on disk, the Edit Project dialog gives you no way to point the project at the new path. The old project can only be closed, not deleted. When you close it and open the new folder, you end up back at the old project.
To know where this belongs, could you tell us:
opencode --version). Is it 1.x or 2.x?opencode serve.origin).You can reply here or edit the issue. If you edit it, please also leave a short comment saying you've updated it, so we know you're done.
These existing issues look very similar (ordered from most to least likely), so please check whether one of them already covers your problem:
project.worktree; reopening the renamed folder resolves to the old project, and removing it only closes it (Desktop 1.18.30)worktreeinprojecttable — project shows "no git" and all prompts fail with ENOENT #46330: earlier reports of the same problem, closed as fixed for OpenCode 2 by fix(app): keep new local sessions in the selected directory #46713感谢反馈!请补充:OpenCode 版本(1.x 还是 2.x)、操作系统、使用的是桌面版还是
opencode serve网页版,以及该目录是否为带远程仓库(如origin)的 git 仓库。可以直接在此回复,或编辑 issue(编辑后请再留言告知)。上面列出的类似问题按可能性从高到低排序,可以先看看是否已涵盖你的问题。opencode-agent commentedon Oct 22, 2026
We're closing this for now because we haven't heard back. We needed your OpenCode version (1.x or 2.x), OS, whether you use the Desktop app or
opencode serve, and whether the folder is a git repo with a remote. With those we can tell whether this is the known 1.x problem with renamed project folders (#48349, #48278) or a new bug in 2.x.If you're on 1.x, please follow #48349 / #48278. If it still happens on 2.x, reply here with those details and we can reopen it. Thanks!
由于未收到回复,暂时关闭此 issue。如果在 2.x 版本中仍能复现,请回复版本号、操作系统、使用方式(桌面版 /
opencode serve)以及该目录是否为带远程仓库的 git 仓库,我们可以重新打开。