From 9ad653115103670534ab2e61c1387a59bbc92329 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 28 Aug 2026 15:51:15 +0200 Subject: [PATCH] Preserve per-project archive history when restoring items Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- web/app.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app.jsx b/web/app.jsx index ecc01c3..98c528c 100644 --- a/web/app.jsx +++ b/web/app.jsx @@ -962,6 +962,7 @@ function App() { const entries = [], history = []; projs.forEach((p, i) => { for (const e of parsedAll[i].entries) e._projectId = p.id; + for (const h of parsedAll[i].history) h._projectId = p.id; entries.push(...parsedAll[i].entries); history.push(...parsedAll[i].history); }); @@ -1139,7 +1140,7 @@ function App() { )); const archiveContent = await Parser.serialize(toDiskIds( remainingArchive.filter(e => pidOf(e) === pid), - [], + archiveData.history.filter(h => pidOf(h) === pid), pid, )); const result = await ApiBackend.restoreFromArchive(backlogContent, archiveContent, pid);