mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
fix(filesystem): preserve digest failures through cleanup cancellation
Record cancellation at file checkpoints and before owner handoff. Keep physical hash failures, exact reasons, completed facts and failed-close owners distinct through artifact and provider projections and cleanup retries. Refs #4598. Validated with 566 passing affected tests and 22 platform skips; final Kuna cleanup reason rerun passed 43 tests. No Android device or real JADX/Kuna execution claimed.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { regularFileCancellation } from "../filesystem/OwnedRegularFile.js";
|
||||
import type { BigIntStats } from "node:fs";
|
||||
import type { FileHandle } from "node:fs/promises";
|
||||
import { dirname } from "node:path";
|
||||
@@ -278,7 +279,7 @@ const readStableFileEntry = async (
|
||||
retain(cause.owner);
|
||||
cause = cause.cause;
|
||||
}
|
||||
if (isAborted(signal))
|
||||
if (regularFileCancellation(cause) !== undefined || isAborted(signal))
|
||||
return entryFailure(
|
||||
path,
|
||||
"file",
|
||||
|
||||
Reference in New Issue
Block a user