diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 12:19:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 12:35:01 -0300 |
| commit | e0ed81fc02b7fcf9f20f9be1c0080bd1339d80fb (patch) | |
| tree | cd04bb0ab4d55cbb67f5c43b1898d640bce1fa22 /src/replica.zig | |
| parent | f922f8b5db1f3b92d954c43860c32cd251d5bc55 (diff) | |
| download | pardes-e0ed81fc02b7fcf9f20f9be1c0080bd1339d80fb.tar.gz pardes-e0ed81fc02b7fcf9f20f9be1c0080bd1339d80fb.zip | |
kinds #21, a PDF across replicas: a pane of a kind's frame crosses within the wire's bound (encodeShadow takes a budget and leaves out a raster past it, where a 17 MB page in a 110-column window ended every client's link and every join's after), a join's dump keeps a kind's tag words and selection (SlotRecord tail and selection, which only Kind.reopen made: a joiner's tag wrapped another way and it diverged on tag_rows at each join), and a speculation whose step would tick a kind waits for the session's unit (Kind.step's rule, read only) where it guessed no tick and rolled back, every visible rollback of the 30 ms soak cell
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/replica.zig')
| -rw-r--r-- | src/replica.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/replica.zig b/src/replica.zig index e5dbe310..c5e3fd34 100644 --- a/src/replica.zig +++ b/src/replica.zig @@ -446,7 +446,10 @@ pub const Screens = struct { try writeScreenHead(&x.s.out, x.s.gpa, @intCast(id), pane.serial, kind_shadow); var w: std.Io.Writer.Allocating = .fromArrayList(x.s.gpa, &x.s.out); defer x.s.out = w.toArrayList(); - if (!try screen_state.encodeShadow(x.s.gpa, &pp.shadow, &frame, k.prefix.slice(), k.placed, k.pointer, &w.writer)) continue; + // Within the wire's bound, its head (6 bytes) aside: a page of a + // PDF in a wide window is more, and a message past it ends + // the peer's link (its reader stops at it). + if (!try screen_state.encodeShadow(x.s.gpa, &pp.shadow, &frame, k.prefix.slice(), k.placed, k.pointer, wire.max_payload - 6, &w.writer)) continue; try x.out.append(x.s.gpa, try x.s.gpa.dupe(u8, w.written())); }; } |
