Opus 4.6 subagents and toolcalls use crazy cache #8843

Open
opened 2026-02-16 18:10:59 -05:00 by yindo · 2 comments
Owner

Originally created by @IM-001 on GitHub (Feb 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi,

I think it's specific to Opus 4.6 (or maybe all agent swarms type models), but it's very difficult to work with OpenCode at the moment because my cache on my system drive goes crazy, can take almost 100gb in a few minutes. Some observations:

  • I am on windows 10, working with opencode mostly in zed, but from a normal powershell terminal
  • having the opencode cache on another drive would mitigate this
  • the problematic cache lies in /user/.local/share/opencode/snapshot/230948290834etc/objects/pack and there is a huge file tmp_pack_XXM82w

Plugins

No response

OpenCode version

all

Steps to reproduce

No response

Screenshot and/or share link

use opus 4.6 with Github Copilot subscription in a powershell terminal, and have opus making toolcalls

Operating System

No response

Terminal

No response

Originally created by @IM-001 on GitHub (Feb 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, I think it's specific to Opus 4.6 (or maybe all agent swarms type models), but it's very difficult to work with OpenCode at the moment because my cache on my system drive goes crazy, can take almost 100gb in a few minutes. Some observations: - I am on windows 10, working with opencode mostly in zed, but from a normal powershell terminal - having the opencode cache on another drive would mitigate this - the problematic cache lies in /user/.local/share/opencode/snapshot/230948290834etc/objects/pack and there is a huge file tmp_pack_XXM82w ### Plugins _No response_ ### OpenCode version all ### Steps to reproduce _No response_ ### Screenshot and/or share link use opus 4.6 with Github Copilot subscription in a powershell terminal, and have opus making toolcalls ### Operating System _No response_ ### Terminal _No response_
yindo added the windowsbugperf labels 2026-02-16 18:10:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2026):

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

  • #12687: [BUG/PERF] Severe Memory Leak and Disk Swell leading to System Kernel Panic (macOS) - Similar disk swell pattern (50GB within hours)
  • #10034: [ROOT CAUSE ANALYSIS] tmp_pack Leak - Complete Code Analysis - Documents the root cause as tmp_pack files in snapshot directory accumulating without cleanup (137GB+ confirmed locally)
  • #8749: [BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS - Same tmp_pack files in ~/.local/share/opencode/snapshot/*/objects/pack/ growing indefinitely
  • #10532: Opencode using my 20 GB storage - General disk space accumulation issue

The root cause appears to be long-running git add operations that fail/timeout without cleanup of tmp_pack files in the snapshot directory. #10034 provides a detailed analysis with code-level evidence and recommended fixes.

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Feb 8, 2026): This issue might be a duplicate of existing issues. Please check: - #12687: [BUG/PERF] Severe Memory Leak and Disk Swell leading to System Kernel Panic (macOS) - Similar disk swell pattern (50GB within hours) - #10034: [ROOT CAUSE ANALYSIS] tmp_pack Leak - Complete Code Analysis - Documents the root cause as tmp_pack files in snapshot directory accumulating without cleanup (137GB+ confirmed locally) - #8749: [BUG] tmp_pack Files Consuming 180GB on Ubuntu 24.04 LTS - Same tmp_pack files in `~/.local/share/opencode/snapshot/*/objects/pack/` growing indefinitely - #10532: Opencode using my 20 GB storage - General disk space accumulation issue The root cause appears to be long-running git add operations that fail/timeout without cleanup of tmp_pack files in the snapshot directory. #10034 provides a detailed analysis with code-level evidence and recommended fixes. Feel free to ignore if your specific case differs from these.
Author
Owner

@IM-001 commented on GitHub (Feb 8, 2026):

very interesting, it might be just a temporary luck, but updating my models cache seemed to fix my problem for now!

opencode models --refresh

@IM-001 commented on GitHub (Feb 8, 2026): very interesting, it might be just a temporary luck, but updating my models cache seemed to fix my problem for now! opencode models --refresh
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8843