opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] Ubuntu 22.04 Temp_Pack Files Using All of the Storage

Open alexzakarov opened this issue 1 month ago • 1 comments

Description

I am using Ubuntu 22.04 and when I open and work on the opencode cli, my storage is getting used by something. I realized that tmp_pack files are using all my storage and This does not make sense for me. In just 10 minutes of work, It used "79GBs" of storage. This is the relevant state:

Image

OpenCode version

1.0.157

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

alexzakarov avatar Dec 16 '25 08:12 alexzakarov

This issue might be a duplicate of existing issues. Please check:

  • #1126: Session grew to 88G! - Similar issue where sessions accumulate large amounts of storage in git object files (~/.local/share/opencode/project/.../snapshot)

The root cause appears to be the same: OpenCode sessions create git repositories internally and these repositories can grow to massive sizes (tens of GB) during normal usage. In your case, tmp_pack files are using 79GB in just 10 minutes. In #1126, a single session grew to 88G due to corrupted git objects.

Feel free to ignore if your case involves something different, but this might have valuable context about the session storage mechanism.

github-actions[bot] avatar Dec 16 '25 08:12 github-actions[bot]