Description
Implement persistent storage for checkpoints and session history to survive VS Code restarts. Currently, checkpoints (shadow-copy snapshots before each agent action) and chat session data are held in memory and lost when VS Code closes.
Business Value
- Users can restore previous states even after restarting VS Code
- Session history remains accessible across multiple work sessions
- Enables audit trails and compliance use cases
- Improves user experience by preventing loss of work context
Acceptance Criteria
Tests Required
Implementation Notes
- Use VS Code's workspace storage API ( for sensitive data) and filesystem for large blobs
- Store relative paths in checkpoint metadata — convert to absolute on restore to support moved workspaces
- Checkpoint storage format:
{timestamp}-{hash}.json with gzipped file diffs to save space
- Session format:
{sessionId}.json with streaming-friendly structure (append messages, not rewrite)
- Consider using SQLite or LevelDB for efficient querying across old sessions (future optimization)
Related Issues
None yet — this is a foundational feature.
Environment
- VS Code 1.95+
- All platforms (Windows, macOS, Linux)
Description
Implement persistent storage for checkpoints and session history to survive VS Code restarts. Currently, checkpoints (shadow-copy snapshots before each agent action) and chat session data are held in memory and lost when VS Code closes.
Business Value
Acceptance Criteria
champ.storage.checkpointRetentionDays,champ.storage.maxCheckpointSizeMB,champ.storage.sessionsPathTests Required
Implementation Notes
{timestamp}-{hash}.jsonwith gzipped file diffs to save space{sessionId}.jsonwith streaming-friendly structure (append messages, not rewrite)Related Issues
None yet — this is a foundational feature.
Environment