You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
new terminal using opencode in home dir with snapshot: true will occupy huge storage #16336
I think it's common to use opencode to solve some common issue without projects.
And then it's natural to just use opencode in a new created terminal which usually located in home dir.
That's the question, if snapshot: true the whole home dir will be created a snapshot and occupies the storage quickly.
If we set snapshot: false, we need to set snapshot: true in each project folder, that's not convinient.
I think it's intuitive to disable snapshot when opencode opens in a non git folder, at lease disable it in home dir
This issue might be a duplicate of existing issues. Please check:
Why is OpenCode massively abusing git? #3176: OpenCode snapshotting large directories without size limits or permission — same root cause of snapshot running on a huge non-project directory
If your issue is specifically about snapshot being triggered in a non-git/home directory rather than snapshot leaks, it may be distinct enough to keep open. Please review the above and let the maintainers know if this covers your case.
One addition for anyone landing here: before settling for "snapshot": false, check whether the home folder is accidentally a git repository - an accidental .git up there is a common reason home sessions start producing full snapshots.
From the folder where you start opencode: git rev-parse --show-toplevel
If it prints your home folder (or another broad parent folder): that repo is almost certainly accidental - delete that .git (usually empty; rename if unsure) and start opencode inside a real project folder; the giant snapshot scan goes away with it, no config change needed.
If it reports no repository, or prints a real project of yours: then your plan applies - keep "snapshot": false globally and enable it per project where you want undo.
For me the first case was it: a stray .git in home, and removing it ended the huge snapshots entirely.
Activity
github-actions commentedon Mar 6, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is specifically about snapshot being triggered in a non-git/home directory rather than snapshot leaks, it may be distinct enough to keep open. Please review the above and let the maintainers know if this covers your case.
ahmad12-ui commentedon Mar 7, 2026
Hi, I’m interested in working on this bug.
If no one is currently fixing it, I’d like to investigate the issue and submit a PR.
fix: resolve 4 bugs — Azure filters, snapshot safety, oxlint path, or…
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
piknockyou commentedon Sep 30, 2026
One addition for anyone landing here: before settling for
"snapshot": false, check whether the home folder is accidentally a git repository - an accidental.gitup there is a common reason home sessions start producing full snapshots.From the folder where you start opencode:
git rev-parse --show-toplevel.git(usually empty; rename if unsure) and start opencode inside a real project folder; the giant snapshot scan goes away with it, no config change needed."snapshot": falseglobally and enable it per project where you want undo.For me the first case was it: a stray
.gitin home, and removing it ended the huge snapshots entirely.