summaryrefslogtreecommitdiff
path: root/core/replica.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-22 10:39:52 -0300
committerGabriel Schneider <[email protected]>2026-11-22 10:39:53 -0300
commit94561bf0e13d034384eae01d2cb9d48a8fe0a502 (patch)
tree1a7ba2b66e6fbe69b06457863dc8e732435fb265 /core/replica.zig
parent9158de5d50831e115e14e2ed502300ee8c1d9930 (diff)
downloadpardes-94561bf0e13d034384eae01d2cb9d48a8fe0a502.tar.gz
pardes-94561bf0e13d034384eae01d2cb9d48a8fe0a502.zip
tape: no screen-state branch left, and a terminal's kitty images are each side's own emulator's again (the old road's deletion, piece 6 of 8): core/tape.zig loses `Tape.screen_state` and every branch on it (a terminal's output recorded without its bytes, the positions and prompt checks skipped, `screenReplica`, `screenAuthority`, `screenState`, `viewOnly`, which on the one road did nothing), and the tape site `images`; core/panes.zig its replica branches (a feed skipped and the session's positions taken, a view's scroll or follow noted, a resize left to the authority, the reloads at a join skipped); core/Term.zig a terminal's digest that returned early under screen state, and the medium read that went past the tape; core/dump.zig a join's dump always holds each terminal whole (`slim_terminals` stays for the exit dump); the tests' `t.screen_state = false` lines (4 in core/replica.zig, 3 in test/replicas.zig); THE IMAGES (the brief's choice): `Pane.term_images` and its taped read after each output (pardes-image-loop's cure for a screen-state client, whose emulator never held an image) go, the tag reads `Term.hasImages` again (core/tagline.zig), and a terminal's digest holds whether it has an image (core/term/terminal.zig `digest`: one bool among its facts), so the fact the tag shows is covered by the digest it is computed from (S1's rule) rather than by a pane field copied after each output, and a parting over it is named at the terminal; abi/wire.zig's line for 30 says so (the dump's shape changed with it); the image-loop's test runs on the one road (the client's emulator has the image, its tag says what the session's does); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182, kitty-test 45/45, the soak's small run and `--echo` rc 0 (diverged 0, unequal 0, corpus 22)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/replica.zig')
-rw-r--r--core/replica.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/replica.zig b/core/replica.zig
index 55e7a1f7..e9e29de0 100644
--- a/core/replica.zig
+++ b/core/replica.zig
@@ -4053,7 +4053,6 @@ test "bytes: a client joins from a dump with its terminals whole, and every side
try std.testing.expect(pardes.Term.writes != reloads);
const late = try Replica.initDump(gpa, 2, joined.view, joined.dump, .{ .cols = 80, .rows = 24 });
defer late.deinit();
- late.t.screen_state = false;
late.core().echo = null;
try std.testing.expectEqual(joined.digest, late.digest());
b.a.output(.{ .output = .{ .pane = b.shell, .bytes = ";30mthe rest of it\x1b[0m\r\n" } });
@@ -4377,7 +4376,6 @@ test "bytes: a join reloads only the terminals written since their last reload:
try std.testing.expectEqual(2, pardes.Term.reloads.n - before);
const late = try Replica.initDump(gpa, 3, joined.view, joined.dump, .{ .cols = 80, .rows = 24 });
defer late.deinit();
- late.t.screen_state = false;
late.core().echo = null;
try std.testing.expectEqual(joined.digest, late.digest());
// Output into both until each has pruned its history (whole pages, by
@@ -7190,7 +7188,6 @@ test "a client joined from a dump takes a 9P pty/run in a shell as the session d
r.confirm(joined.unit);
const late = try Replica.initDump(gpa, 2, joined.view, joined.dump, .{ .cols = 80, .rows = 24 });
defer late.deinit();
- late.t.screen_state = false;
late.core().echo = null;
try std.testing.expectEqual(joined.digest, late.digest());
const node = pardes.ctlfs.Node.of(a.core.panes[shell].?.serial, .pty_run);
@@ -7376,7 +7373,6 @@ const NinepJoin = struct {
const joined = (try n.a.join(1, null)).?;
defer std.testing.allocator.free(joined.dump);
const r = try Replica.initDump(std.testing.allocator, 1, joined.view, joined.dump, .{ .cols = 80, .rows = 24 });
- r.t.screen_state = false;
r.core().echo = null;
n.late = r;
try std.testing.expectEqual(joined.digest, r.digest());