anomalyco / anomalyco/opencode

Snapshot git operations fail with paging file too small under memory pressure

Open
#43,445 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Run opencode on Windows for an extended session (hours) with multiple parallel sessions
  2. Under memory pressure, the OS cannot allocate virtual memory for new git child processes
  3. Snapshot operations (diff-files, ls-files) fail with "paging file too small"
  4. 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

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.