From ef0fb2f9614bd6ad35991022d7be1cb40ca156ae Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 18:11:57 -0300 Subject: terminal: an authority with screen-state replicas sizes a terminal after the step's unit, not inside it (resize_to, made by Peers.unit, null from `create` on): a client typing at another size than the last typist read history rows its replay held as holes, and the rows the session sent for them came in the new grid's numbering, which the replica cannot take, so its replay read blank text (the soak's local80 cell: jumps, njumps, jcur, pane 1.body at a b; fixer 2's H18, pane N.ovl); test/replicas.zig sizes them after its fill too; an in-process test reads the history in the step that resizes, with the session's order of flush, fill and unit, and another makes a terminal from 0xAA memory and finds no size waiting Co-Authored-By: Claude Opus 5.5 --- test/replicas.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/replicas.zig') diff --git a/test/replicas.zig b/test/replicas.zig index b1ceffab..18060763 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -502,6 +502,8 @@ fn sendUnit(q: *std.PriorityQueue(Msg, void, Msg.order), n: *u64, unit: []const } } screens.filled(core); + // The sizes its steps gave terminals, after their rows (Peers.unit). + pardes.panes.terminal.resizeDeferred(core); totals.unit_bytes += unit.len * down.len; if (flooding) totals.flood_unit_bytes += unit.len * down.len; for (down, 1..) |*l, who| { -- cgit v1.3