anomalyco / anomalyco/opencode
bug(desktop): "Stale read from <Show>" crash reopening project after full app reinstall + data wipe (macOS)
@Brendonovich is already working on this.
Since Aug 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Desktop app crashes with Error: Stale read from when opening a specific project. Crash persists even after a complete reset: quitting the app, deleting ~/Library/Application Support/ai.opencode.desktop, ~/.local/share/opencode, ~/.cache/opencode, and ~/.config/opencode, fully uninstalling and reinstalling the Desktop app, and reconfirming there is no leftover process (pkill -f opencode before reinstall). The crash still occurs on first attempt to open the project after a totally clean install, and the UI continues to display a stale/previous project name from before a folder rename that happened several sessions ago.
This looks related to #16323, #25131, and #13112, but none of those workarounds (clearing workspace .dat files, killing stray processes) resolved it here, likely because the underlying issue is a genuinely unfixed non-keyed callback pattern rather than local cache state, as noted in #16323
Error: Stale read from .
at castError (oc://renderer/assets/main-DX5ErpZp.js:735:10)
at handleError (oc://renderer/assets/main-DX5ErpZp.js:748:18)
at runComputation (oc://renderer/assets/main-DX5ErpZp.js:501:12)
at updateComputation (oc://renderer/assets/main-DX5ErpZp.js:470:3)
at runTop (oc://renderer/assets/main-DX5ErpZp.js:566:7)
at runQueue (oc://renderer/assets/main-DX5ErpZp.js:638:45)
at completeUpdates (oc://renderer/assets/main-DX5ErpZp.js:594:5)
at runUpdates (oc://renderer/assets/main-DX5ErpZp.js:584:5)
at oc://renderer/assets/main-DX5ErpZp.js:473:7
Plugins
None
OpenCode version
1.18.10
Steps to reproduce
- Rename a project folder while it has active OpenCode Desktop session history.
- Observe UI continues referencing the old folder name (separate known issue).
- Fully wipe all OpenCode app data and reinstall Desktop from scratch.
- Open the same project again.
- UI crashes immediately with Error: Stale read from .
Screenshot and/or share link
No response
Operating System
macOS Tahoe 26.5
Terminal
Default shell
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.