Skip to content

feat: scan declutter, prune leftovers, and path/id QoL for v1.1.0 - #17

Merged
Interittus13 merged 1 commit into
mainfrom
feat/scan-prune
Sep 23, 2026
Merged

Interittus13 merged 1 commit into
mainfrom
feat/scan-prune

Conversation

@Interittus13

Copy link
Copy Markdown
Owner

Summary

  • Default scan hides stale noise (.__rebind_orphan_*, empty-window, tmp-* / numeric sessions, 0-transcript agent dirs); scan --all shows everything; scan --path <dir> focuses one project.
  • New prune command dry-runs (default) or deletes (--yes, with backup) orphaned workspaceStorage and empty ephemeral agent dirs.
  • Reject 32-char workspace hashes pasted into --from/--to/scan --path and guided path prompts; SPLIT-BRAIN wizard picker shows header counts + recommended keep id.

Test plan

  • go test ./...
  • cursor-rebind map --from <32-hex-id> --to … → rejected with --target-id hint
  • cursor-rebind scan --path /path/to/project → only that project’s rows
  • Manual: prune dry-run on real storage; prune --yes only after quitting Cursor (optional disposable copy)
  • Guided menu migrate/repair with a SPLIT-BRAIN path → picker lists ids + recommended keep

Notes

  • Docs: README, CHANGELOG [Unreleased], docs/machine-move.md
  • Destructive only via prune --yes / existing migrate --cleanup; dry-run by default
  • Follow-up (1.2): selective per-chat retarget, birthtime/hash candidates, header rebuild from composerData

- Introduced a `prune` command to preview and delete orphaned workspaceStorage directories and empty agent projects.
- Updated `scan` command to support filtering by project path and to hide stale noise by default, with options to show all.
- Enhanced README.md with usage instructions for the new `prune` command and updated `scan` command details.
- Added new filtering logic to improve workspace and project management, including handling of orphaned and ephemeral entries.
- Updated CHANGELOG.md to reflect these new features and improvements.
@Interittus13
Interittus13 merged commit 64983ad into main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant