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

Open
opened 2026-02-16 17:40:45 -05:00 by yindo · 1 comment
Owner

Originally created by @alexzakarov on GitHub (Dec 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @alexzakarov on GitHub (Dec 16, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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: <img width="640" height="360" alt="Image" src="https://github.com/user-attachments/assets/1f84c0c8-d62a-428d-9188-d7d8140272f7" /> ### OpenCode version 1.0.157 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugperf labels 2026-02-16 17:40:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2025):

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] commented on GitHub (Dec 16, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3584