From 013a72753b88f47bff2b492c179b04c9b396ccbf Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 3 Apr 2026 08:27:52 +0000 Subject: [PATCH] fix(store): scan workspace orphans at startup Co-Authored-By: Virgil --- store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/store.go b/store.go index d856f23..6bc06c3 100644 --- a/store.go +++ b/store.go @@ -155,6 +155,9 @@ func newStoreFromConfig(operation string, config StoreConfig) (*Store, error) { storeInstance.purgeInterval = config.PurgeInterval } + // New() performs a non-destructive scan so orphaned workspaces remain + // discoverable through RecoverOrphans(). + discoverOrphanWorkspacePaths(defaultWorkspaceStateDirectory) storeInstance.startBackgroundPurge() return storeInstance, nil }