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 /runtime | |
| 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 'runtime')
| -rw-r--r-- | runtime/session.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/session.zig b/runtime/session.zig index 75e8efcc..65432d97 100644 --- a/runtime/session.zig +++ b/runtime/session.zig @@ -86,7 +86,10 @@ pub fn Loop(comptime Frontend: type) type { defer l.prompt_rcs.deinit(); l.fs = ninep_io.start(l.io, l.gpa, l.core); defer if (l.fs) |f| f.deinit(l.gpa); - l.peers = .{ .gpa = l.gpa, .io = l.io, .name = daemon.name() }; + // PARDES_TERM_BYTES (a working name, the pair's corpus runs): its + // clients' terminals by the pty's bytes (Peers.bytes), as the + // soak's `--bytes`; its clients must be started with it too. + l.peers = .{ .gpa = l.gpa, .io = l.io, .name = daemon.name(), .bytes = std.c.getenv("PARDES_TERM_BYTES") != null }; l.inbox = .{ .io = l.io, .gpa = l.gpa, .lsp_allocator = l.allocs.lsp }; defer l.inbox.deinit(); // A search's worker may be waiting on the queue for room. |
