[BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS #6330

Open
opened 2026-02-16 18:03:11 -05:00 by yindo · 0 comments
Owner

Originally created by @vincent-pellerin on GitHub (Jan 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

[BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS

Description

OpenCode is creating massive temporary pack files in ~/.local/share/opencode/snapshot/*/objects/pack/ that are never cleaned up, consuming 180.9 GB of disk space. These tmp_pack_* files appear to accumulate over time without any automatic cleanup mechanism.

Environment

  • OpenCode version: 1.1.21
  • Operating System: Ubuntu 24.04 LTS
  • Desktop Environment: Gnome
  • Hardware: Thinkpad X390 Yoga 2 (2019)
  • Installation method: Official installer (installed to ~/.opencode/bin/)
  • Usage context: Via VSCode integrated terminal

Affected Location

~/.local/share/opencode/snapshot/ed610c2ec990659cd5a93f0917806ddcc867e270/objects/pack/

Files Found

Multiple tmp_pack_* files:

  • tmp_pack_L1OcCi - 34.3 GB
  • tmp_pack_g8Pw3x - 34.3 GB
  • tmp_pack_eBJrkn - 34.3 GB
  • tmp_pack_qruqJT - 34.3 GB
  • tmp_pack_uhAqV2 - 34.3 GB
  • tmp_pack_qdZhkE - 6.2 GB
  • tmp_pack_Eup0BZ - 1.4 GB
  • tmp_pack_j9Ykzw - 1.4 GB
  • tmp_pack_yB0FXj - 332.2 MB

Total: ~180.9 GB

Steps to Reproduce

[Unclear - appears to happen during normal OpenCode usage over time]

  1. Use OpenCode normally over extended period
  2. Files accumulate in snapshot directory
  3. No automatic cleanup occurs

Expected Behavior

Temporary pack files should be automatically cleaned up after use or session end.

Actual Behavior

tmp_pack_* files accumulate indefinitely, consuming massive amounts of disk space (180GB+) without any cleanup mechanism.

Workaround

Manual deletion of temp files:

rm -f ~/.local/share/opencode/snapshot/*/objects/pack/tmp_pack_*

Related Issues

This appears to be related to:

  • #5617 (Ubuntu 22.04 - 79GB in 10 minutes)
  • #6845 (NixOS - 169GB snapshot folder)

Additional Context

  • Files were write-protected, requiring -f flag to remove
  • This confirms the bug also affects Ubuntu 24.04 LTS (in addition to Ubuntu 22.04)
  • Pattern suggests this is a persistent Ubuntu/Linux issue with OpenCode's temp file management

Impact

  • Critical disk space consumption
  • Can fill entire filesystem
  • Affects system stability
  • No warning or notification to user

Note: This bug report consolidates the issue affecting multiple Ubuntu versions. The pattern is consistent across Ubuntu 22.04 and 24.04 LTS, as well as NixOS.

Plugins

"opencode-anthropic-auth@0.0.8"

OpenCode version

1.1.21

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04.3 LTS

Terminal

VSCode Terminal

Originally created by @vincent-pellerin on GitHub (Jan 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description # [BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS ## Description OpenCode is creating massive temporary pack files in `~/.local/share/opencode/snapshot/*/objects/pack/` that are never cleaned up, consuming 180.9 GB of disk space. These `tmp_pack_*` files appear to accumulate over time without any automatic cleanup mechanism. ## Environment - **OpenCode version**: 1.1.21 - **Operating System**: Ubuntu 24.04 LTS - **Desktop Environment**: Gnome - **Hardware**: Thinkpad X390 Yoga 2 (2019) - **Installation method**: Official installer (installed to `~/.opencode/bin/`) - **Usage context**: Via VSCode integrated terminal ## Affected Location ``` ~/.local/share/opencode/snapshot/ed610c2ec990659cd5a93f0917806ddcc867e270/objects/pack/ ``` ## Files Found Multiple `tmp_pack_*` files: - `tmp_pack_L1OcCi` - 34.3 GB - `tmp_pack_g8Pw3x` - 34.3 GB - `tmp_pack_eBJrkn` - 34.3 GB - `tmp_pack_qruqJT` - 34.3 GB - `tmp_pack_uhAqV2` - 34.3 GB - `tmp_pack_qdZhkE` - 6.2 GB - `tmp_pack_Eup0BZ` - 1.4 GB - `tmp_pack_j9Ykzw` - 1.4 GB - `tmp_pack_yB0FXj` - 332.2 MB **Total**: ~180.9 GB ## Steps to Reproduce [Unclear - appears to happen during normal OpenCode usage over time] 1. Use OpenCode normally over extended period 2. Files accumulate in snapshot directory 3. No automatic cleanup occurs ## Expected Behavior Temporary pack files should be automatically cleaned up after use or session end. ## Actual Behavior `tmp_pack_*` files accumulate indefinitely, consuming massive amounts of disk space (180GB+) without any cleanup mechanism. ## Workaround Manual deletion of temp files: ```bash rm -f ~/.local/share/opencode/snapshot/*/objects/pack/tmp_pack_* ``` ## Related Issues This appears to be related to: - #5617 (Ubuntu 22.04 - 79GB in 10 minutes) - #6845 (NixOS - 169GB snapshot folder) ## Additional Context - Files were write-protected, requiring `-f` flag to remove - This confirms the bug also affects **Ubuntu 24.04 LTS** (in addition to Ubuntu 22.04) - Pattern suggests this is a persistent Ubuntu/Linux issue with OpenCode's temp file management ## Impact - Critical disk space consumption - Can fill entire filesystem - Affects system stability - No warning or notification to user --- **Note**: This bug report consolidates the issue affecting multiple Ubuntu versions. The pattern is consistent across Ubuntu 22.04 and 24.04 LTS, as well as NixOS. ### Plugins "opencode-anthropic-auth@0.0.8" ### OpenCode version 1.1.21 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="1012" height="559" alt="Image" src="https://github.com/user-attachments/assets/b38f2e39-815e-41d8-b673-b6aa3ef5b7e8" /> ### Operating System Ubuntu 24.04.3 LTS ### Terminal VSCode Terminal
yindo added the bugperf labels 2026-02-16 18:03:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6330