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
Desktop: session stops responding when its workspace folder is deleted (prompt_async failed: FileSystem.realPath ENOENT) #55129
Repo folder is not a git repo (global storage path used)
Symptom
A tab/session stops responding entirely. Subsequent messages are sent but never processed; the tab just sits there. Refreshing the UI and restarting the app do not help.
level=ERROR message="prompt_async failed" sessionID=<stuck> cause="Cause([Die(PlatformError: NotFound: FileSystem.realPath (C:\\Users\\Muhammad Siddiqui\\Documents\\agent) (cause: Error: ENOENT: no such file or directory, lstat 'C:\\Users\\Muhammad Siddiqui\\Documents\\agent'))])"
And during startup/path-watching:
level=ERROR message=failed ref=err_... error="PlatformError: NotFound: FileSystem.realPath (C:/Users/Muhammad Siddiqui/Documents/agent) (cause: Error: ENOENT: no such file or directory, lstat 'C:\\Users\\Muhammad Siddiqui\\Documents\\agent')" cause="PlatformError: NotFound: FileSystem.realPath ... at Server.listen ..."
Root cause observed
The session's workspace directory C:\Users\Muhammad Siddiqui\Documents\agent no longer exists (it was deleted/moved). Every prompt in that session fails during path resolution (FileSystem.realPath), so the session never streams a reply and looks frozen.
Expected behavior
Sessions pointing at a missing directory should recover, clear the stale workspace reference, or surface a clear error — not silently stop responding while still accepting input.
Steps to reproduce
Open a project folder in the Desktop app.
Delete or rename that folder.
Go back to that tab and send a message.
No reply; the request fails internally with FileSystem.realPath ... ENOENT.
Workaround found
Close the stale tab and reopen the correct folder (or remove the session data for the deleted path).
Thanks for the clear report and the log lines, they made this easy to trace.
This looks like OpenCode v1 Desktop: the @opencode-aidesktop install path and the prompt_async failed log message both come from v1. v1 now only gets fixes for critical bugs (data loss, security problems, or breakage with no workaround). Since closing the tab and reopening the right folder works, this is unlikely to be fixed in v1.
v2 handles this case differently. A session whose folder no longer exists is reported as "Session location unavailable", and you're offered to move it to another directory instead of the session silently hanging. We'd encourage upgrading to v2 (@opencode/cli / the current Desktop app).
Closing this as not planned. It's a v1 Desktop issue (the prompt_async failed / FileSystem.realPath ENOENT after a session's folder is deleted), and v1 only gets fixes for critical bugs. Closing the tab and reopening the right folder works around it. In v2, a missing session folder shows "Session location unavailable" instead of the session hanging silently (see #55035, and #50951 / #50548 for the v2 Desktop follow-ups).
If you see this on v2, please open a new issue with your opencode --version and the steps. Thanks again for the detailed report.
Activity
opencode-agent commentedon Oct 13, 2026
Thanks for the clear report and the log lines, they made this easy to trace.
This looks like OpenCode v1 Desktop: the
@opencode-aidesktopinstall path and theprompt_async failedlog message both come from v1. v1 now only gets fixes for critical bugs (data loss, security problems, or breakage with no workaround). Since closing the tab and reopening the right folder works, this is unlikely to be fixed in v1.v2 handles this case differently. A session whose folder no longer exists is reported as "Session location unavailable", and you're offered to move it to another directory instead of the session silently hanging. We'd encourage upgrading to v2 (
@opencode/cli/ the current Desktop app).Related issues:
FileSystem.realPathENOENT with missing project folders, tracked for v2 DesktopIf you think this is critical, or you see the same behaviour on v2, please reply here with your
opencode --versionand we'll take another look.opencode-agent commentedon Oct 14, 2026
Closing this as not planned. It's a v1 Desktop issue (the
prompt_async failed/FileSystem.realPathENOENT after a session's folder is deleted), and v1 only gets fixes for critical bugs. Closing the tab and reopening the right folder works around it. In v2, a missing session folder shows "Session location unavailable" instead of the session hanging silently (see #55035, and #50951 / #50548 for the v2 Desktop follow-ups).If you see this on v2, please open a new issue with your
opencode --versionand the steps. Thanks again for the detailed report.