summaryrefslogtreecommitdiff
path: root/test/replicas.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 19:55:02 -0300
committerGabriel Schneider <[email protected]>2026-11-19 19:55:02 -0300
commit2ab05b536bc3b063666b5aaab497157adc2a9120 (patch)
tree4b796e6abaf7658294d2b6cbb5d35e0210b88b40 /test/replicas.zig
parente4f99d2370c8b44e76b541826d91356d86090f53 (diff)
parent786cddd24e2be36d30847300075cec8c45d1b0ca (diff)
downloadpardes-2ab05b536bc3b063666b5aaab497157adc2a9120.tar.gz
pardes-2ab05b536bc3b063666b5aaab497157adc2a9120.zip
integration: the regular-expression fixes with the fixes the real loops asked for: pardes-regex-2 (mvzr's reads past a pattern cut short patched as it is fetched; the leak of a pattern that does not compile; the soak's corpus check comparing what is visible) and pardes-draw-2 (a step's notice bands and a markdown text's tables made from the step's own state, never from the last frame; a load under way in another live process no crash; an idle pair silent), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/replicas.zig')
-rw-r--r--test/replicas.zig15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/replicas.zig b/test/replicas.zig
index 6fd65bbe..f1c4ff60 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -792,19 +792,16 @@ const Soak = struct {
/// A Peer's queue, swapped out as its writer swaps it (the Peers'
/// allocator's).
sending: std.ArrayListUnmanaged(u8) = .empty,
- /// This wait ended at its frame's tick: its pump draws.
- at_frame: bool = false,
fn of(ctx: ?*anyopaque) *Soak {
return @ptrCast(@alignCast(ctx.?));
}
- /// Its own view drawn at its frame's tick (`.frame`), as the soak's
- /// session always drew it; not after every pump, as a terminal's is:
- /// drawn so, the soak finds a client's step replayed with a kind's call
- /// more than the session's (reports/pardes-runners-d.md).
- fn watchedHost(ctx: ?*anyopaque) bool {
- return of(ctx).at_frame;
+ /// Its own view drawn after every pump, as a terminal's session draws
+ /// its own (Core.render: drawn whenever a frame is owed and someone
+ /// sees it, and a terminal is always seen).
+ fn watchedHost(_: ?*anyopaque) bool {
+ return true;
}
fn ptyWrite(ctx: ?*anyopaque, pane: u8, bytes: []const u8) void {
@@ -1124,7 +1121,6 @@ const Soak = struct {
return false;
}
var took_output = false;
- s.at_frame = false;
// What its boundary took is old news.
_ = s.l.peers.urgent.swap(false, .acq_rel);
while (true) {
@@ -1219,7 +1215,6 @@ const Soak = struct {
s.frames_left = if (busy) 120 else s.frames_left -| 1;
if (s.frames_left > 0) try net.send(.{ .at = m.at + frame_us, .n = 0, .kind = .frame, .who = 0, .bytes = &.{} });
if (took_output or core.needs_frame or (core.nextWake() orelse std.math.maxInt(u64)) <= s.now_ns) {
- s.at_frame = true;
s.framed = true;
s.encode_ns = s.l.peers.screens.encode_ns;
return false;