From 933bf9532d6b3f684682f444d271bf6539c2ccfa Mon Sep 17 00:00:00 2001 From: 777genius Date: Sat, 30 May 2026 23:05:02 +0300 Subject: [PATCH] perf(main): reuse worker cached summaries --- src/main/workers/team-fs-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/workers/team-fs-worker.ts b/src/main/workers/team-fs-worker.ts index e88290de..638a3965 100644 --- a/src/main/workers/team-fs-worker.ts +++ b/src/main/workers/team-fs-worker.ts @@ -645,7 +645,7 @@ function applyCachedTaskReadResult( bumpSkipReason(taskDiag.skipReasons, cached.skipReason); return; } - tasks.push(cloneCached(cached.task)); + tasks.push(cached.task); } function pruneTaskFileCache( @@ -960,7 +960,7 @@ async function listTeams( if (dependencyFingerprint.cacheSafe && cached?.fingerprint === dependencyFingerprint.value) { cached.lastUsedAt = nowMs(); diag.cacheHits++; - return cloneCached(cached.summary); + return cached.summary; } diag.cacheMisses++;