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] New sessions created from sidebar never respond — prompt_async fails: FileSystem.realPath ENOENT on missing worktree dir (global/silent-knight) #49561
OpenCode Desktop (Windows 11): clicking the "+ New session" button in the sidebar creates a new chat window, but sending a message produces no assistant reply and no visible error in the UI. The CLI works fine on the same project/provider.
Attaching the full error excerpt from the app log (%USERPROFILE%\.local\share\opencode\log\opencode.log): https://gist.github.com/wzgcavtc/9ac2bb060fa79cbc85fa50d5a2b6749f
11 \FileSystem.realPath\ errors
8 \prompt_async failed\ across 3 sessions
\worktree\global\ exists but is empty (no \silent-knight\ dir)
timestamp=2026-10-01T21:26:56.778Z level=ERROR run=6cba4dd2 message="prompt_async failed" sessionID=ses_f06a351cdffefabEuEymtL1XFJ cause="Cause([Die(PlatformError: NotFound: FileSystem.realPath (/Users/mac/D) (cause: Error: ENOENT: no such file or directory, lstat '/Users/mac/D'))])"
timestamp=2026-10-01T21:27:38.628Z level=ERROR run=6cba4dd2 message="prompt_async failed" sessionID=ses_f06a268f8ffen7PsEbWYWYvYz0 cause="Cause([Die(PlatformError: NotFound: FileSystem.realPath (/Users/mac/D) (cause: Error: ENOENT: no such file or directory, lstat '/Users/mac/D'))])"
Same prompt_async failed → FileSystem.realPath ENOENT shape as the Windows report, but the missing path here was the session's project directory itself (/Users/mac/D), not a worktree slot — the UI silently no-oped every send, exactly as described (no spinner, no error, sessions archived).
Recovery recipe that worked on this machine:
Recreate the missing directory (mkdir -p /Users/mac/D).
Fully quit and relaunch the app (the renderer kept poisoned pre-fix state until restart).
After that, sends through the Desktop-spawned server (opencode serve --port 16131) are admitted again: POST /api/session/{id}/prompt → 200 SessionInputAdmitted, agent loop executes, zero new prompt_async failed entries. CLI control remained healthy throughout (opencode run -m zai-coding-plan/glm-5.3-flash → ok), matching the CLI-works-Desktop-noops symptom.
UX asks this adds:
The Desktop should surface the realPath/prompt_async error in the chat UI instead of silently no-oping the send.
Sessions opened against home-directory roots also log failed to initialize fff: Can not run certain FFF features in a file system root or home directories on every boot.
Separate config footgun seen while verifying (can masquerade as "Desktop is broken"): the project's default model opencode/fledge-alpha-free answers HTTP 403 FreeTierError: This model is not available in your country — sends then visibly error even though the send pipeline is healthy; explicit-model CLI calls work fine.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
wzgcavtc commentedon Sep 17, 2026
Attaching the full error excerpt from the app log (%USERPROFILE%\.local\share\opencode\log\opencode.log): https://gist.github.com/wzgcavtc/9ac2bb060fa79cbc85fa50d5a2b6749f
github-actions commentedon Sep 17, 2026
This issue might be related to existing issues that share the same
FileSystem.realPath ENOENT/prompt_async failedpattern. Please check:worktreeinprojecttable — project shows "no git" and all prompts fail with ENOENT #46330: Same error signature (FileSystem.realPath ENOENT,prompt_async failed) with a missing worktree directory — closed as fixed for moved-project case, but the non-git/global worktree subdirectory not being created may be a distinct uncovered path.session.pathcausingrealPath NotFound → cannot get sessionon Windows Desktop (broader issue covering similar ENOENT failures).resolvereturnsglobalbeforeproject_directoryis consulted #48870: Non-git directories falling back toglobalscope — related root cause around how the global workspace handles session/worktree attribution for non-git folders.gasyoun commentedon Oct 1, 2026
Additional data point — macOS flavor of the same silent no-op cluster (OpenCode Desktop 1.18.32, macOS 15.6.1, darwin):
Failing call (from ~/.local/share/opencode/log/opencode.log):
Same
prompt_async failed→FileSystem.realPathENOENT shape as the Windows report, but the missing path here was the session's project directory itself (/Users/mac/D), not a worktree slot — the UI silently no-oped every send, exactly as described (no spinner, no error, sessions archived).Recovery recipe that worked on this machine:
mkdir -p /Users/mac/D).After that, sends through the Desktop-spawned server (
opencode serve --port 16131) are admitted again:POST /api/session/{id}/prompt→ 200SessionInputAdmitted, agent loop executes, zero newprompt_async failedentries. CLI control remained healthy throughout (opencode run -m zai-coding-plan/glm-5.3-flash→ ok), matching the CLI-works-Desktop-noops symptom.UX asks this adds:
realPath/prompt_asyncerror in the chat UI instead of silently no-oping the send.failed to initialize fff: Can not run certain FFF features in a file system root or home directorieson every boot.Separate config footgun seen while verifying (can masquerade as "Desktop is broken"): the project's default model
opencode/fledge-alpha-freeanswers HTTP 403FreeTierError: This model is not available in your country— sends then visibly error even though the send pipeline is healthy; explicit-model CLI calls work fine.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊