diff --git a/store.go b/store.go index d856f23..f0ab547 100644 --- a/store.go +++ b/store.go @@ -155,6 +155,9 @@ func newStoreFromConfig(operation string, config StoreConfig) (*Store, error) { storeInstance.purgeInterval = config.PurgeInterval } + // Scan the workspace state directory on startup so orphan discovery stays + // part of the store initialisation path without changing recovery semantics. + _ = discoverOrphanWorkspacePaths(defaultWorkspaceStateDirectory) storeInstance.startBackgroundPurge() return storeInstance, nil }