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
Reclaim disk left by removed worktree snapshots ($DATA/snapshot, storage/session_diff) #186
#181 (PR #184) removes the worktree snapshot, revert and session-diff subsystem. Versions before it left two kinds of data on disk that nothing reads anymore:
$XDG_DATA_HOME/aictrl/snapshot/<projectId>: shadow git repos that staged the whole worktree of every git project the CLI ran in. On large repos these can be multi-GB (see the timings in perf(run): skip per-step worktree snapshots in headless runs (#146) #172). The hourly snapshot.cleanup job (git gc --prune=7.days) was removed with the subsystem, so they no longer shrink either.
$XDG_DATA_HOME/aictrl/storage/session_diff/*.json: per-session diff blobs written by the deleted SessionSummary. storage/json-migration.ts does not read them.
After #184 nothing reads, migrates or deletes either path. The only way to reclaim the space is aictrl uninstall or deleting the files by hand.
Decision needed
Should the CLI delete these on its own? Two options:
A one-shot cleanup that removes snapshot/ and storage/session_diff/ on startup, gated by a marker so it runs once. One risk: an older CLI version running at the same time may still use its shadow repo.
Documentation only: a release-notes line saying both dirs are safe to delete.
Acceptance
One of the two options is chosen and implemented.
If option 1: a test proves the dirs are removed exactly once and that session data in aictrl.db is untouched.
Activity