Skip to content

Snapshot system leaks tmp_pack_* files indefinitely, filling disk at ~9.5 GB/hour #14811

@ChrisMares

Description

@ChrisMares

Description

The OpenCode snapshot system creates tmp_pack_* files in the git object store under ~/.local/share/opencode/snapshot//objects/pack/ and never cleans them up. These files accumulate at approximately one new ~9.5 GB file per hour while OpenCode is running, and persist after OpenCode exits. This will silently fill any disk to 100% capacity over time.

Environment

  • OS: Ubuntu 24.04, Linux
  • Install method: install script

Plugins

No response

OpenCode version

1.2.10

Steps to reproduce

  1. Run OpenCode in any project
  2. Leave it running for several hours
  3. Check ~/.local/share/opencode/snapshot//objects/pack/

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

wezterm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions