Old snapshot folders not deleted after the 7 day threshhold #7696

Open
opened 2026-02-16 18:07:57 -05:00 by yindo · 1 comment
Owner

Originally created by @ariane-emory on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Old snapchat files are meant to be pruned after seven days.

The current implementation tracks git objects per project but lacks a mechanism to prune entire project directories based on the snapshot retention time. We ought add a comprehensive approach to identify and remove stale project directories that have exceeded the defined age limit.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

  1. Use open code for at least one week with snapshots enabled.
  2. Navigate to ~/.local/share/opencode/snapshot.
  3. Observe that folders with timestamps greater than one week in the past exist.

Screenshot and/or share link

No response

Operating System

MacOS Sequoia latest

Terminal

iTerm2

Originally created by @ariane-emory on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Old snapchat files are meant to be pruned after seven days. The current implementation tracks git objects per project but lacks a mechanism to prune entire project directories based on the snapshot retention time. We ought add a comprehensive approach to identify and remove stale project directories that have exceeded the defined age limit. ### Plugins None ### OpenCode version 1.1.36 ### Steps to reproduce 1. Use open code for at least one week with snapshots enabled. 2. Navigate to `~/.local/share/opencode/snapshot`. 3. Observe that folders with timestamps greater than one week in the past exist. ### Screenshot and/or share link _No response_ ### Operating System MacOS Sequoia latest ### Terminal iTerm2
yindo added the bug label 2026-02-16 18:07:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

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

  • #10626: [FEATURE]: Snapshot lifespan ought be configurable. (directly related to snapshot retention configuration)
  • #6845: HUGE snapshot folder (reports excessive snapshot folder sizes)
  • #8577: Snapshot feature needs safeguards for large directories (snapshot-related disk space issue with safeguards)
  • #8887: [BUG] Snapshot module ignores 'watcher.ignore' config, causing excessive disk usage and performance degradation
  • #9601: Opencode using up 380GB in ~/.local/share/opencode/snapshot/objects (direct report of snapshot objects consuming massive space)
  • #9290: OpenCode nuked my storage (318 GB added) (major storage consumption complaint related to snapshots)
  • #3182: Very slow session due to 98GB of git snapshots (performance issue from snapshot storage)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #10626: [FEATURE]: Snapshot lifespan ought be configurable. (directly related to snapshot retention configuration) - #6845: HUGE snapshot folder (reports excessive snapshot folder sizes) - #8577: Snapshot feature needs safeguards for large directories (snapshot-related disk space issue with safeguards) - #8887: [BUG] Snapshot module ignores 'watcher.ignore' config, causing excessive disk usage and performance degradation - #9601: Opencode using up 380GB in ~/.local/share/opencode/snapshot/objects (direct report of snapshot objects consuming massive space) - #9290: OpenCode nuked my storage (318 GB added) (major storage consumption complaint related to snapshots) - #3182: Very slow session due to 98GB of git snapshots (performance issue from snapshot storage) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7696