You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hold): Sage review round 3 — keep persisted task metadata as a fallback for every resume checkpoint (#627 stage 1)
The synthetic pre-wave discovery was replaced by fresh discovery as soon as
it existed, and fresh discovery lists only tasks still to run — so a hold
checkpoint after that point wrote taskFolder '' (and dropped partial-progress
/ diagnostic fields) for every completed task. Fresh discovery is now merged
OVER the persisted fallback for both checkpoint contexts; fresh entries win,
persisted entries fill the gaps.
Test: real hold checkpoint through persistRuntimeStateStrict with one held
task and one completed task absent from fresh discovery; reload asserts
folders, partialProgress* and exitDiagnostic survive. 4017 pass.
describe("#627 — Sage round 3: strict checkpoint keeps every task's folder and recovery metadata",()=>{
703
+
letroot: string;
704
+
beforeEach(()=>{
705
+
root=mkdtempSync(join(tmpdir(),"tp627-r3-"));
706
+
mkdirSync(join(root,".pi"),{recursive: true});
707
+
});
708
+
afterEach(()=>{
709
+
rmSync(root,{recursive: true,force: true});
710
+
});
711
+
712
+
it("a hold checkpoint during resume (fresh discovery lists only the held task) preserves the completed task's folder, partial-progress and diagnostic fields",()=>{
0 commit comments