Skip to content

Site registry never reconciles with the filesystem (missing folders, failed-clone leftovers, no disk usage) #95

Description

@juanmaguitar

What happens

The site registry and the filesystem drift apart with no reconciliation, in both directions:

  1. Delete or move a site folder outside the app and the site stays in the sidebar forever; its status checks quietly return all-false (src/main.js:406-422) but nothing marks it missing or offers cleanup.
  2. A failed clone leaves a partial directory behind. The site directory is created before the clone runs (src/main.js:462-503), so on failure the leftovers stay — and a retry with the same name silently becomes "my-site-2" via the collision-suffix logic (src/main.js:111-119) instead of reusing the intended name.

Related: there is no size reporting or "free up space" anywhere — each site is a full working tree plus node_modules plus build output, and a user with three sites cannot see why their disk is full.

Idea

A cheap existence check when listing sites (mark missing sites and offer to forget them), cleanup of the partial directory when a clone fails, and per-site disk usage in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: site-lifecycleCreating, cloning, moving, deleting sites; the registrybugSomething isn't workingnext-validationAffects the next real-user validation roundpost-v1.0Valid work, deliberately out of scope for v1.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions