Skip to content

Checkpoints creating excessive disk usage (40GB+) in VSCode global storage #3080

@KJ7LNW

Description

@KJ7LNW

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

  1. Open VSCode with Roo extension
  2. Start a new task in a large directory that doesn't have an existing git repository
  3. 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
    
  4. 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

  1. Only create checkpoints for files that are actually modified
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.bugSomething isn't workingfeature requestFeature request, not a bug

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions