Skip to content

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

Closed

Description

@alexzakarov

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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Dec 16, 2025
  2. github-actions commented on Dec 16, 2025

    @github-actions
    Contributor

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

    • Session grew to 88G! #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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates 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