-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as duplicate of#8040
Closed as duplicate of#8040
Copy link
Labels
Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.Valid, but needs effort estimate or design input before work can start.bugSomething isn't workingSomething isn't workingfeature requestFeature request, not a bugFeature request, not a bug
Description
Issue
Checkpoints are creating full git repositories for each task in the VSCode global storage directory, which is particularly problematic for large directories that don't already have git repositories, because it seems to copy the entire directory every single time!
This is causing excessive disk usage: 40GB after just a few minutes of Roo'ing!
Version
v3.14.2
Details
- Each task creates a checkpoint directory with a full .git repository
- Multiple identical .git/objects/pack directories of 3.2GB each
- Total storage usage has reached 40GB in the tasks directory
- This occurs in
.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/tasks
The issue is particularly severe when working with large directories that don't already have git repositories, as the entire directory content gets copied into each checkpoint.
Steps to reproduce
- Open VSCode with Roo extension
- Start a new task in a large directory that doesn't have an existing git repository
- Check disk usage in
.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/tasks:cd .config/Code/User/globalStorage/rooveterinaryinc.roo-cline/tasks du -mx | sort -n - Observe multiple 3.2GB+ .git/objects/pack directories and total usage around 40GB
Output
$ du -mx | sort -n
...
3214./631b3718-285e-4f4e-8868-90eb00c08a45/checkpoints/.git/objects/pack
3214./8b468531-8ec4-4da0-adf8-d476b0b616f8/checkpoints/.git/objects/pack
3214./9f7eb741-fdbf-4009-b636-30cb5521fcbc/checkpoints/.git/objects/pack
[...]
40920. # 40GB total usage
Potential Solutions
- Only create checkpoints for files that are actually modified
- Set size limits for checkpoint directories or individual files
The current implementation creates full repository copies which is particularly problematic for large directories without existing git repositories.
dosubot, RyutaroMatsumoto and Joseph-Y
Metadata
Metadata
Assignees
Labels
Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.Valid, but needs effort estimate or design input before work can start.bugSomething isn't workingSomething isn't workingfeature requestFeature request, not a bugFeature request, not a bug
Type
Projects
Status
Done