Skip to content

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

@ariane-emory

Description

@ariane-emory

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions