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
I keep my main project on the Desktop (~/Desktop/). After enabling iCloud's "Desktop & Documents Folders" sync, macOS moved my project to a different location under my user directory (e.g. ~/Desktop/my-project/ or ~/my-project). Since then, OpenCode no longer works.
I followed the docs and performed a full reset:
Deleted everything under:
~/.local/share/opencode/
~/.config/opencode/
~/.cache/opencode/
Ran opencode uninstall
Reinstalled via brew install opencode
OpenCode still does not work. The "wipe local data + reinstall" approach did not resolve the issue.
The following logs are what I found when I use toggle console.
[08:34:09] [ERROR] 'Failed to refresh default location data' Error: Unexpected server error. Check server logs for details.
Error
at (/$bunfs/root/chunk-ekfgxja2.js:8:7602)
at async refresh (/$bunfs/root/chunk-8k28rfvw.js:8:15074)
at processTicksAndRejections (unknown:7:39)
If your issue is specifically about iCloud sync relocating the directory (rather than a manual move), it may be a distinct trigger but the same underlying bug. You may want to add a comment on one of those issues or confirm whether the fix there would also address your case.
@jason-darcy I had the same issue. After spending a few hours debugging my config, environment, and the lot, I saw your issue report for the same issue. Thanks to you for reporting this, I expanded my testing. I discovered the issue is caused by the latest brew package for opencode. Cellar 1.18.30_1 is broken when installed on multiple Macs, reverting back to Cellar 1.18.30 restores opencode to functionality.
@rekram1-node Can the root cause with the Cellar 1.18.30_1 be investigated and resolved urgently before more users break during their next update cycle? Or perhaps just publishing opencode 1.18.31 will be the solution, assuming that the bug in 1.18.30_1 does not propagate to 1.18.31.
Activity
github-actions commentedon Sep 15, 2026
This issue might be a duplicate of existing issues. Please check:
FileSystem.realPath/ENOENTfailures identical to the error in this reportIf your issue is specifically about iCloud sync relocating the directory (rather than a manual move), it may be a distinct trigger but the same underlying bug. You may want to add a comment on one of those issues or confirm whether the fix there would also address your case.
stevbev commentedon Sep 15, 2026
@jason-darcy I had the same issue. After spending a few hours debugging my config, environment, and the lot, I saw your issue report for the same issue. Thanks to you for reporting this, I expanded my testing. I discovered the issue is caused by the latest brew package for opencode. Cellar 1.18.30_1 is broken when installed on multiple Macs, reverting back to Cellar 1.18.30 restores opencode to functionality.
@rekram1-node Can the root cause with the Cellar 1.18.30_1 be investigated and resolved urgently before more users break during their next update cycle? Or perhaps just publishing opencode 1.18.31 will be the solution, assuming that the bug in 1.18.30_1 does not propagate to 1.18.31.