Skip to content

fix: make saved-session pruning aware of live owners and detached hosts #288

Description

@jasonsuhari

Problem

Pruning snapshots beyond the retention limit removes TOML files directly. It can delete the only metadata for a detached host or an old-but-live session without terminating or preserving that process.

Acceptance checks

  • Live-owner sessions are never pruned.
  • Sessions with reachable detached hosts are preserved or deliberately terminated through the normal deletion path.
  • Stale snapshots without live resources can still be pruned to the retention target.
  • Tests cover mixed live, detached, and stale records.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:needs-triageNeeds maintainer review and routing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions