anomalyco / anomalyco/opencode

Desktop scoped-store cleanup can race later writes on Windows

Open
#45,154 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Run the Windows desktop development build.
  2. Use session or composer flows that delete or clear scoped state while a later interaction writes to the same store.
  3. Observe intermittent store-file EPERM errors 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.