Skip to content

feat: clean up leftover staging folders from interrupted operations #82

Closed

Description

@nextestudios

Summary

On startup, find and remove .controlfs-staging-* / .controlfs-new-* leftovers created by ControlFS, using their manifest, never by name pattern alone.

Motivation

A crash or power loss during extraction/compression can leave hidden temporaries.

Requirements

  • Only delete folders containing a valid ControlFS manifest; report what was cleaned.

Controller UX

Notice in the status bar after cleanup.

Technical Notes

Operation manifests already written by SafeExtractor; persist a list of active staging paths.

Acceptance Criteria

  • After a simulated crash, the next launch removes the owned staging folder and nothing else.

Testing

Unit tests for new branches and for every bug reproduced before a fix (no trivial variations, see AGENTS.md).

Dependencies

  • None

Priority: medium · Milestone: 9 · 1.0 Readiness

Activity

  1. added
    priority: medium
    type: feature
    area: operations
    area: archives
    on Sep 27, 2026
  2. added
    moscow: must
    and removed
    priority: medium
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: archivesarea: operationsmoscow: musttype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions