Merge pull request #316 from gsd-build/fix/stale-completed-unit-oom-313
fix: treat unresolvable artifact paths as stale completion state
This commit is contained in:
commit
c188fab42c
1 changed files with 4 additions and 1 deletions
|
|
@ -3042,7 +3042,10 @@ export function verifyExpectedArtifact(unitType: string, unitId: string, base: s
|
|||
}
|
||||
|
||||
const absPath = resolveExpectedArtifactPath(unitType, unitId, base);
|
||||
if (!absPath) return true;
|
||||
// Unit types with no verifiable artifact always pass (e.g. replan-slice).
|
||||
// For all other types, null means the parent directory is missing on disk
|
||||
// — treat as stale completion state so the key gets evicted (#313).
|
||||
if (!absPath) return unitType === "replan-slice";
|
||||
if (!existsSync(absPath)) return false;
|
||||
|
||||
// execute-task must also have its checkbox marked [x] in the slice plan
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue