anomalyco / anomalyco/opencode
Desktop scoped-store cleanup can race later writes on Windows
Open
@Hona is already working on this.
Since Aug 26, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In a Windows desktop development build, deleting or clearing scoped state also starts asynchronous cleanup of the empty store file. A later write can overlap that cleanup, producing repeated EPERM errors in the main process and making composer interactions feel sluggish.
Plugins
None
OpenCode version
1.18.22 (source checkout)
Steps to reproduce
- Run the Windows desktop development build.
- Use session or composer flows that delete or clear scoped state while a later interaction writes to the same store.
- Observe intermittent store-file
EPERMerrors and reduced responsiveness.
Screenshot and/or share link
Not attached; reproduced locally in the native Windows app.
Operating System
Windows 11 Home
Terminal
PowerShell
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.