summaryrefslogtreecommitdiff
path: root/src/tape.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 18:04:38 -0300
committerGabriel Schneider <[email protected]>2026-10-29 21:13:33 -0300
commit7ba57610929544bf3d1b3d0bf65dbb039d97942b (patch)
tree3cfa59be7b0b56e82b8bff80856eaa7f1cf63b53 /src/tape.zig
parent70de5ec5ff3dad01afcc45244ad5e5a481486da6 (diff)
downloadpardes-7ba57610929544bf3d1b3d0bf65dbb039d97942b.tar.gz
pardes-7ba57610929544bf3d1b3d0bf65dbb039d97942b.zip
snapshots: dump, load, restore, tagnav and headersweep-restored show the session as it was dumped: a terminal's view, its prompts hidden in text mode, a pane's message, typed text over its history
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/tape.zig')
-rw-r--r--src/tape.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tape.zig b/src/tape.zig
index 3573d887..d4fb7756 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -983,6 +983,8 @@ pub fn replayMain(io: std.Io, path: []const u8) u8 {
if (t.diverged) |why| if (std.mem.startsWith(u8, why, "the tape ends")) {
t.diverged = null;
};
+ // One killed (as the harnesses end theirs) has its end state here.
+ if (t.dump_check and t.diverged == null) if (t.core) |core| t.dumpRoundTrip(core);
if (t.diverged) |why| {
failed = true;
std.debug.print("replay {s}: {s} replica diverged after {d} digests: {s}\n", .{ path, run.name, t.digests, why });