anomalyco / anomalyco/opencode

[MAC] WAL database file grows to 1GB+ in temp directory

Open
#39,463 1 comment 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Jul 29, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Bug Report

Description
OpenCode creates a WAL (Write-Ahead Log) SQLite file in the system temp directory
that grows unbounded. In my case it reached 1.03 GB.

File location
/private/var/folders//T/opencode-wal-.db

Steps to reproduce

  1. Use OpenCode normally over several sessions
  2. Check disk usage in temp folder

Expected behavior
The WAL file should be cleaned up or compacted periodically.

Actual behavior
The file grows to 1 GB+ and is never cleaned up automatically.

Environment

  • OS: macOS
  • OpenCode version: (v0.2026.07.15.08.55.stable_01
Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image)

Operating System

MAC 26.5.1 (25F80)

Terminal

No response

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.