anomalyco / anomalyco/opencode
[MAC] WAL database file grows to 1GB+ in temp directory
Open
@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
- Use OpenCode normally over several sessions
- 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
)
Operating System
MAC 26.5.1 (25F80)
Terminal
No response
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.