@zq-silk/yui 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -275,12 +275,16 @@ export function populateSqliteFromState(home, state, databaseFilename) {
|
|
|
275
275
|
for (const snapshot of Object.values(stored.contextSnapshots)) {
|
|
276
276
|
store.saveContextSnapshot(snapshot);
|
|
277
277
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
// Review Agent Runs carry a strict reference to their ReviewRound, so
|
|
279
|
+
// persist the parent records before any Run that belongs to one. A
|
|
280
|
+
// ReviewRound may name its Reviewer Run, but saveReviewRound deliberately
|
|
281
|
+
// accepts that forward reference while the fresh database is populated.
|
|
281
282
|
for (const round of Object.values(stored.reviewRounds)) {
|
|
282
283
|
store.saveReviewRound(taskId, round);
|
|
283
284
|
}
|
|
285
|
+
for (const run of Object.values(stored.agentRuns)) {
|
|
286
|
+
store.saveAgentRun(run);
|
|
287
|
+
}
|
|
284
288
|
for (const changeSet of Object.values(stored.changeSets)) {
|
|
285
289
|
store.saveChangeSet(taskId, changeSet);
|
|
286
290
|
}
|