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 --- src/tape.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tape.zig') diff --git a/src/tape.zig b/src/tape.zig index 9152bcb0..1ca064bc 100644 --- a/src/tape.zig +++ b/src/tape.zig @@ -990,6 +990,11 @@ pub fn screenReplica() bool { return if (on) |t| t.screen_state and (t.replay or t.speculating) else false; } +/// An authority recording for screen-state replicas. +pub fn screenAuthority() bool { + return if (on) |t| t.screen_state and !t.replay and !t.speculating else false; +} + /// What a speculation reached is the authority's: the input is undone and /// waits for the authority's order. pub fn poison() void { -- cgit v1.3