summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/next-daemon.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/next-daemon.md b/docs/next-daemon.md
index 434e1da4..ef1b868d 100644
--- a/docs/next-daemon.md
+++ b/docs/next-daemon.md
@@ -4467,3 +4467,45 @@ After the line, the box soak's divergences and its clean quit:
`--window-clients`, cross_replay.py with tty and window recorders, and
the FreeBSD tape replayed by Debug tty, ReleaseSafe tty and Debug gui;
ReleaseSafe `test/daemon.py` 20 cycles: all pass.
+
+After the line, a window that joined late:
+- **It diverged at the next key that moved a pane of another view**
+ (`pane 23.file.scroll`, the box soak's seed 7: win207-3 at its join
+ 466 s in; the same field in the two windows that joined at 16 and 17
+ min of an earlier run, not kept). A pane's `view` (`Pane.SessionView`: Wrap, the context rows'
+ style, the body's and the tag's row heights, its rect's height) is
+ written by `sync`, and was derived: never dumped. A key's move reads it
+ before its step syncs (`halfPageMove`, `ensureCursorVisible`, through
+ `File.geometry`), and a core loaded from a dump had the default, Wrap
+ on and no row heights. The tty had typed `SPC t w` at 243 s, so the
+ session's lines no longer wrapped and the joiner's did; its first
+ stepped unit after the dump was the tty's Ctrl-D (1/2018, after
+ `open_view` and a pump), and it scrolled further. A window there all
+ along had made `view` in its own steps and agreed. A parked view's
+ share (`PaneView.view`) was read the same way at a `to_view`, before
+ the step syncs. Window row heights with TreeContext's context rows
+ diverged it too, with Wrap on.
+ - Fix: `view` is digested and dumped, in a pane and in a parked view's
+ share. A dump of an older build has none and takes the default, as
+ before.
+ - Test: replica.zig's "a client joined from a dump moves through another
+ view's pane as the session does, its lines not wrapped" (Wrap off, the
+ cursor near the view's bottom, a join, Ctrl-D). Main fails it at
+ `pane 0.file.scroll`. A throwaway exploration (120 seeds: two views,
+ window row heights, TreeContext, Wrap, keys from either view after a
+ join) diverged 20 times on main (`file.scroll`, `hscroll`), none with
+ the fix.
+ - ponytail: `notices` and `pan` stay derived. `unpark` makes `pan`
+ again; a pane's notices are read by a click on its bands.
+- **Not this one:** the box run with the fix (seed 7, 21 min, seven
+ clients) showed no `scroll` divergence in the four windows that joined
+ late and no `view` difference anywhere, but win207-4 diverged once at its
+ own key in a query pane (`pane 21.file.location_rows`, unit 4/447: the
+ session's tape had the same host answers), and after its rejoin a
+ speculated Enter panicked in `Query.land` (`f.location_rows[c + 1]`,
+ len 0). Both left open.
+- **Gates** (on vtoozmwn): Debug `core-test` tty, `replay`, `replicas`
+ (none diverged or unequal), `test/daemon.py` 20 cycles and
+ `--window-clients`; ReleaseSafe `test/daemon.py` 20 cycles and
+ `--window-clients`: all pass. The box soak, ReleaseSafe at both ends:
+ 0 rejoins in six of seven clients, the seventh's the query pane's above.