Summary
The cx save, cx restore, and cx snapshots commands have stub implementations. These need full implementation for workspace state persistence.
Current State
// snapshot.rs - stubs only
println!("cx save: Workspace snapshots not yet implemented");
println!("cx restore: Workspace snapshots not yet implemented");
println!("cx snapshots: Workspace snapshots not yet implemented");
Required Functionality
cx save [name]
- Capture current terminal state (tabs, panes, working directories)
- Save to
~/.cx/snapshots/<name>.json
- Auto-generate name if not provided (e.g.,
myproject-0201)
cx restore
- Read snapshot JSON
- Recreate terminal layout
- Restore working directories
- Optionally re-run last commands
cx snapshots
--list - List all saved snapshots
--delete <name> - Remove a snapshot
--info <name> - Show snapshot details
Snapshot Format
{
"name": "myproject-0201",
"created": "2026-02-01T12:00:00Z",
"tabs": [
{
"title": "main",
"panes": [
{"cwd": "/home/user/project", "last_command": "npm run dev"}
]
}
]
}
Acceptance Criteria
Summary
The
cx save,cx restore, andcx snapshotscommands have stub implementations. These need full implementation for workspace state persistence.Current State
Required Functionality
cx save [name]
~/.cx/snapshots/<name>.jsonmyproject-0201)cx restore
cx snapshots
--list- List all saved snapshots--delete <name>- Remove a snapshot--info <name>- Show snapshot detailsSnapshot Format
{ "name": "myproject-0201", "created": "2026-02-01T12:00:00Z", "tabs": [ { "title": "main", "panes": [ {"cwd": "/home/user/project", "last_command": "npm run dev"} ] } ] }Acceptance Criteria