From a2294650b4fa2c7d40a7b6c01a052985a48dd790 Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 3 Apr 2026 07:53:20 +0000 Subject: [PATCH] feat(workspace): restore startup orphan scan Co-Authored-By: Virgil --- store.go | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.45.3