anomalyco / anomalyco/opencode
Snapshot git operations fail with paging file too small under memory pressure
@Hona is already working on this.
Since Aug 19, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
During extended sessions on Windows, git processes spawned by the snapshot system fail with "error launching git: The paging file is too small for this operation to complete." and "fatal: Out of memory, malloc failed". The snapshot code at packages/opencode/src/snapshot/index.ts only logs a warning and returns — no retry, no circuit breaker, no user notification. Snapshots silently stop working.
7 occurrences logged between Aug 12–18 in opencode.log. Later occurrences escalated to fatal: Out of memory, malloc failed and die() called many times.
Related: #20695, #42597, #42980
Plugins
N/A
OpenCode version
1.18.x (dev branch)
Steps to reproduce
- Run opencode on Windows for an extended session (hours) with multiple parallel sessions
- Under memory pressure, the OS cannot allocate virtual memory for new git child processes
- Snapshot operations (
diff-files,ls-files) fail with "paging file too small" - Snapshots silently degrade — no retry, no user notification, undo/revert stop working
Screenshot and/or share link
N/A
Operating System
Windows 11
Terminal
pwsh
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.