Skip to content

OpenCode unusable after moving project directory (iCloud Desktop & Documents sync) #49082

Closed

Description

@jason-darcy

Description

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.

Image

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)

Plugins

No Plugins

OpenCode version

1.18.30

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Sep 15, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    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.

  2. stevbev commented on Sep 15, 2026

    @stevbev

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions