Preserve per-project archive history when restoring items

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Alexander
2026-08-28 15:51:15 +02:00
parent f0f031cd4a
commit 9ad6531151
+2 -1
View File
@@ -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);