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: prompt silently fails with no response/error when the session's project directory no longer exists #58631
On the desktop app, if a session's project directory is renamed, moved, or deleted, sending a prompt produces no response and no error. The UI just sits there ("没反应"). The server logs show prompt_async failed with PlatformError: NotFound: FileSystem.realPath (...) (ENOENT).
The failure is never surfaced to the user, so it looks like the assistant is stuck / silently ignoring the message.
The session record still points at the old path (e.g. session.directory = D:/pythonProject/电商演示系统), and the server resolves realPath per prompt, which fails with ENOENT.
Suggested fix
Surface the prompt_async failure to the desktop UI (error toast) instead of failing silently.
Or detect a missing session directory before sending and offer to relocate the session / re-open the project at its new path.
Ideally, handle ENOENT on FileSystem.realPath gracefully with an actionable message.
Thanks for the detailed report and the log lines. They make the cause clear: the session still points at the old folder, and every prompt fails in FileSystem.realPath without the error ever reaching the UI.
The version here (1.18.30) is OpenCode v1. v1 now only gets fixes for critical bugs (data loss, security problems, or breakage with no workaround). Reopening the project at its new path works around this one, so it's unlikely to be fixed in v1.
Please try OpenCode v2 (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0). v2 checks for a missing session folder: its terminal UI shows a "Session location unavailable" screen and lets you move the session instead of failing silently. If you still see a silent failure on v2, or you think this is critical, please reply here with your v2 version.
Closing this as not planned. It's about OpenCode v1 Desktop (1.18.30): prompts fail silently with prompt_async failed / FileSystem.realPath ENOENT after the session's project folder is renamed, moved or deleted. v1 only gets fixes for critical bugs, and reopening the project at its new path works around this one.
v2 checks for a missing session folder: its terminal UI shows a "Session location unavailable" screen and lets you move the session. If you still see a silent failure on v2 (opencode upgrade --major), please open a new issue with your v2 version and the steps. Related: #52108, #55129. Thanks again for the detailed report.
Activity
opencode-agent commentedon Oct 24, 2026
Thanks for the detailed report and the log lines. They make the cause clear: the session still points at the old folder, and every prompt fails in
FileSystem.realPathwithout the error ever reaching the UI.The version here (
1.18.30) is OpenCode v1. v1 now only gets fixes for critical bugs (data loss, security problems, or breakage with no workaround). Reopening the project at its new path works around this one, so it's unlikely to be fixed in v1.Please try OpenCode v2 (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0). v2 checks for a missing session folder: its terminal UI shows a "Session location unavailable" screen and lets you move the session instead of failing silently. If you still see a silent failure on v2, or you think this is critical, please reply here with your v2 version.Related issues:
prompt_async failed/realPathENOENT after a folder was deleted (v1, closed)realPathENOENT failure for a missing worktree folderopencode-agent commentedon Oct 25, 2026
Closing this as not planned. It's about OpenCode v1 Desktop (
1.18.30): prompts fail silently withprompt_async failed/FileSystem.realPathENOENT after the session's project folder is renamed, moved or deleted. v1 only gets fixes for critical bugs, and reopening the project at its new path works around this one.v2 checks for a missing session folder: its terminal UI shows a "Session location unavailable" screen and lets you move the session. If you still see a silent failure on v2 (
opencode upgrade --major), please open a new issue with your v2 version and the steps. Related: #52108, #55129. Thanks again for the detailed report.