diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 17:31:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 20:57:35 -0300 |
| commit | 40a24ca96be07778dfac7c789d936c732c0cc567 (patch) | |
| tree | c484b4cd32d191ad2a421fd8d77fb76491efc33c /core/replica.zig | |
| parent | 8c2c07bb4b991fde28b9af6207c7eb7418540130 (diff) | |
| download | pardes-40a24ca96be07778dfac7c789d936c732c0cc567.tar.gz pardes-40a24ca96be07778dfac7c789d936c732c0cc567.zip | |
pair: PARDES_TERM_BYTES (a working name) puts a session and its clients on the terminals' second road, the pty's bytes in the units to each client's own emulator (`Peers.bytes`), which only the soak could take (`--bytes`): the session's `Peers` is made with `.bytes` set (runtime/session.zig), every joined replica, a dump's or a pair's own boot, is turned to its own emulators as the soak turns its clients (core/replica.zig `takeJoined`: `screen_state` false, no predicted echo), and the process harness keeps the variable in a case's environment as it keeps PARDES_PAIR (test/process.zig `Child`); a client started without it against a session with it diverges: for the corpus through a pair's client window, not for a user (the switch for real clients is the terminals' line's); with it the corpus as a pair (PARDES_PAIR, a client window) is byte-identical to tree3's through frame 57, the kitty image in a terminal's pane (frame 50) included, where screen state diverges the client; frames 58-59 (WindowOpacity) differ and frame 61 (Font) never idles: only the own window applies or answers either (dev/gui/gui.zig `pollFrame`), a client window never does, and a window pair's session is the tui binary beside it; core/root.zig's machine_lines counts replica.zig's new getenv (76); core-test 896/1056, shell-test 1098/1101
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.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/replica.zig b/core/replica.zig index cbb64363..817d2c19 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -3257,6 +3257,12 @@ fn takeJoined(r: *Replica, j: *Joined, have: ?*Have, t0: u64) void { // PARDES_REPLICA_STATS: its timing samples kept, for its line. r.stats.samples = std.c.getenv("PARDES_REPLICA_STATS") != null; r.gmtoff = j.gmtoff; + // PARDES_TERM_BYTES: its terminals its own emulators, fed the pty's + // bytes its units carry (a session started with it: Peers.bytes). + if (std.c.getenv("PARDES_TERM_BYTES") != null) { + r.t.screen_state = false; + r.core().echo = null; + } // On the session's machine: a file read sent by hash is read here; // far, it goes to the disk for the next join. r.t.local_files = have == null; |
