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
opencode seems to keep old project folder data with no easy way to remove it. #40699
Had a project that was normally pointing to waveshare4.2rlcd-modern-platform, it's now waveshare4.2rlcd, if I delete the project from OpenCode, and try to add it again with the new folder. It still references the old one and fails to work when trying agents in the project due to the folder not being there. There needs to be a way to actually really delete the information it stores about it, because it's keeping the old information. Not sure how this happened originally some complex mess with worktrees.
Basically this could be easily solved without worrying about how to reproduce it if we could simply delete old project data, or even be able to edit the folder the project is attached to.It's missing basic functions that it should have that would have made this easily fixable on my end.
#38578 appears to be the closest duplicate. It describes the same stale workspace path, FileSystem.realPath ENOENT failure, and sessions remaining unusable after the folder is moved or renamed.
The additional part I wanted to emphasize is the lack of a recovery option: OpenCode should allow users to fully remove the stored project/session data or edit the project path so a corrupted stale reference can be repaired.
Activity
github-actions commentedon Aug 5, 2026
This issue might be a duplicate of existing issues. Please check:
FileSystem.realPath ENOENT— exact same error and root causeopencode -cfails with "Unexpected server error" after project directory is renamed/deleted #40677:opencode -cfails with "Unexpected server error" after project directory is renamed/deleted — sameFileSystem.realPathENOENT failure and same workaround concernproject.worktreeafter project folder is renamed on disk; remote clients keep reopening the dead path #35240: Server keeps staleproject.worktreeafter project folder is renamed on disk — same underlying stale path issueradfaraf commentedon Aug 5, 2026
#38578 appears to be the closest duplicate. It describes the same stale workspace path, FileSystem.realPath ENOENT failure, and sessions remaining unusable after the folder is moved or renamed.
The additional part I wanted to emphasize is the lack of a recovery option: OpenCode should allow users to fully remove the stored project/session data or edit the project path so a corrupted stale reference can be repaired.
Closing this as a duplicate of #38578 is fine.
Hona commentedon Sep 2, 2026
Fixed for opencode2 launch via #46713
You can try the desktop beta here: https://github.com/anomalyco/opencode-beta