HUGE snapshot folder #4168

Open
opened 2026-02-16 17:42:52 -05:00 by yindo · 3 comments
Owner

Originally created by @0fflineuser on GitHub (Jan 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi,
I was setting up a nixos vm and found that I had way less space on my disk than usual but I didn't download anything very big for a while.
So I launched filelight to see what was going on and turns out the ~/.local/share/opencode folder was 169gb!!!!!
Sorry, but wtf, how is that even possible. 😂
It seems to be stuff in ~/.local/share/opencode/snapshot/global/objects/pack
Is it a known issue, I didn't really find anything ?

I update opencode almost always the day or next day when there is an update, so maybe it was a bug in earlier versions ?

Image

Plugins

No response

OpenCode version

1.0.223

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

kitty

Originally created by @0fflineuser on GitHub (Jan 4, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, I was setting up a nixos vm and found that I had way less space on my disk than usual but I didn't download anything very big for a while. So I launched filelight to see what was going on and turns out the ~/.local/share/opencode folder was 169gb!!!!! Sorry, but wtf, how is that even possible. 😂 It seems to be stuff in `~/.local/share/opencode/snapshot/global/objects/pack ` Is it a known issue, I didn't really find anything ? I update opencode almost always the day or next day when there is an update, so maybe it was a bug in earlier versions ? <img width="2557" height="1439" alt="Image" src="https://github.com/user-attachments/assets/1e057b22-60bf-40be-ab70-c4f35b1f1250" /> ### Plugins _No response_ ### OpenCode version 1.0.223 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Arch Linux ### Terminal kitty
yindo added the bugperfnix labels 2026-02-16 17:42:52 -05:00
Author
Owner

@ja-mf commented on GitHub (Jan 21, 2026):

same here, this was a session lasting 1-2 days

Image

according to https://github.com/anomalyco/opencode/issues/9290#issuecomment-3770100380 it should be fixed but I think a filter to ignore tracking for massive files and snapshot folder watching and alert is actually appropriate, currently this is dangerous when working in folders with large datasets (not even tracked with git).

@ja-mf commented on GitHub (Jan 21, 2026): same here, this was a session lasting 1-2 days <img width="1120" height="380" alt="Image" src="https://github.com/user-attachments/assets/85191d92-f5ec-4387-9843-56f75617c37a" /> according to https://github.com/anomalyco/opencode/issues/9290#issuecomment-3770100380 it should be fixed but I think a filter to ignore tracking for massive files and snapshot folder watching and alert is actually appropriate, currently this is dangerous when working in folders with large datasets (not even tracked with git).
Author
Owner

@miguelnavarro89 commented on GitHub (Jan 22, 2026):

same for me, opencode is basically useless unless I remove snapshot folder every hour.

@miguelnavarro89 commented on GitHub (Jan 22, 2026): same for me, opencode is basically useless unless I remove snapshot folder every hour.
Author
Owner

@rekram1-node commented on GitHub (Jan 22, 2026):

@miguelnavarro89 it has been released, and yes u can disable snapshotting just do:

snapshot: false in ur opencode.json

@rekram1-node commented on GitHub (Jan 22, 2026): @miguelnavarro89 it has been released, and yes u can disable snapshotting just do: snapshot: false in ur opencode.json
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4168