Skip to content

Add Sessions TUI workflows for storage optimization and cleanup #595

Description

@JAORMX

Part of #583. Depends on migration, cleanup, and storage-health APIs.

Scope

Add two deliberately separate Sessions management flows:

  1. Optimize storage — semantics-preserving v1→v2 migration/compaction.
  2. Clean up sessions — destructive retention plan/apply.

Acceptance criteria

Optimize storage

  • Show reclaim estimate, invalid/skipped counts, temporary-space requirement, and cancel/resume behavior.
  • Clearly state that logical sessions and transcripts are preserved.
  • Progress survives closing/reopening; failures are inspectable/retryable.

Cleanup

  • Start with policy scope and dry-run impact.
  • Report main/child/scheduled/unknown/protected/live/awaiting separately.
  • Unknown protected by default.
  • Require high-friction confirmation for bulk deletion.
  • Recheck and report changed/live rows skipped during apply.
  • Progress survives panel close; cancellation is documented as stopping future work, not rollback.

Do not reuse single-row delete confirmation and never combine cleanup consent with optimization.

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added
    enhancement
    on Aug 17, 2026
  3. added
    tui
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementtuiux

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions