feat: update session management functions and improve partition handling
Desktop Client Build / Resolve Build Metadata (push) Successful in 31s
Frontend CI / Frontend (push) Successful in 2m58s
Backend CI / Backend (push) Successful in 18m2s
Desktop Client Build / Build Desktop Client (push) Successful in 24m49s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 38s

This commit is contained in:
2026-06-19 00:14:30 +08:00
parent 3aa8eb86f8
commit 0cddb47055
6 changed files with 80 additions and 19 deletions
@@ -385,7 +385,8 @@ async function cleanDesktopStorageOnce(): Promise<DesktopStorageCleanupResult> {
for (const [partition, accountId] of persistedPartitions) {
const root = partitionPath(partition)
if (root && before.entries.some((entry) => entry.partition === partition)) {
const footprint = root ? await directoryFootprint(root) : { bytes: 0, lastModifiedAt: null }
if (footprint.bytes > 0 || footprint.lastModifiedAt) {
continue
}
forgetPersistedSessionPartition(accountId, partition)