summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 21:00:30 -0300
committerGabriel Schneider <[email protected]>2026-10-30 21:53:52 -0300
commitd00c40694dc239854263616f710b4a197d25d145 (patch)
tree3e7a980510e6c37507e0b60f1632cefc67d1c364 /docs
parente6a114eed043dd1ca50be1cab912662fa9150fda (diff)
downloadpardes-d00c40694dc239854263616f710b4a197d25d145.tar.gz
pardes-d00c40694dc239854263616f710b4a197d25d145.zip
views: a client that joins again has its own view back, layout, focus and the panes opened in it: an Upgrade's clients and one whose bye says it joins again (a divergence's, wire 19's `bye.again`) leave their view kept for them (`views_away`, digested and dumped, so an Upgrade's new build has it; taped `awayView`), the client names it in its next hello (`Hello.view`, handed on by the daemon with the connection) and its join takes it back (taped `rejoinView`) rather than a copy of the session's; the live view is never a kept one, `views.count` counts the others, and a join with every view taken lets one go (every Upgrade made each client's own panes leave its view: the hunt's 80 ms cell lost `+Search` and `+New`)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/next-daemon.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/next-daemon.md b/docs/next-daemon.md
index 6dfa799c..c7be4b5a 100644
--- a/docs/next-daemon.md
+++ b/docs/next-daemon.md
@@ -4375,3 +4375,51 @@ After the line, the hunt's H21 (a client's normal end aborted):
207 ms, ReleaseSafe (before, on lppumkvm, both its clients aborted):
2.5 min, both end 0; 4 min at seed 32, four clients, none aborts (its
one breach, a window's panes gone from its view, is not this one).
+
+**A rejoin's view is its own again** (2026-10-30; `src/views.zig`'s
+`away`, `Pardes.awayView`/`rejoinView`, wire 19). Every rejoin gave the
+client a new view, a copy of the session's: a divergence's, and above all
+an Upgrade's, which every client makes after each install (the hunt's
+80 ms cell: the terminal client lost `+Search` and `+New` from its view;
+likely the user's "some panes just close randomly right after I open
+them"). `leaveView` covered only a session's last client, while no one
+else watched it.
+- **A view kept for its client.** An Upgrade's clients
+ (`Peers.refuseAll`) and one whose bye says it joins again (a
+ divergence's: `bye.again`) leave their view open as it is, kept for them
+ (`views_away`, a session field: digested, and dumped, so the new build
+ has it). The client names the view it had in its next hello
+ (`Hello.view`; the daemon hands it on with the connection,
+ `replica <k>`), and its join takes that view back (`rejoinView`, settled
+ as `openView` is) rather than a new one. Both are taped inputs. Any other
+ end closes the view as before.
+- **The live view is never one.** One kept going live sends the session
+ into another, or into a copy of its own. `views.count` counts the views
+ someone looks at, so the last of those stays, a tty's Detach is "one of
+ several" only beside another, and `closeKeeping` never writes into a kept
+ one. Drawing skips them, and an Upgrade's new build opens no window for
+ one and closes none for want of a terminal (`resumeTerminals`,
+ `resumeWindows`).
+- **Bounded by room.** A kept view goes when a join finds every view taken
+ (`openView`, the lowest first): a client that never comes back (one of
+ the old build, told to upgrade too) leaves one. ponytail: no timer; until
+ then it costs a parked slot, and a terminal it sized last keeps that size
+ until another view types into it. ponytail: a divergence's redial that
+ reached the session before its old link's end takes a new view.
+- **Tests.** views.zig's: two clients' views through an Upgrade's dump,
+ each back in its own, and a join with no room lets one go. replica.zig's:
+ a divergence's rejoin, its pane in its view again, and the other client
+ agrees. `test/daemon.py --upgrade`: two replica clients each open a pane
+ in their own view, and after the Upgrade's rejoin each one's `/layout`
+ holds its own pane and not the other's; and the plain run's client D,
+ put off now at its 100th unit, opens a pane in its own view first, and
+ after its divergence's rejoin its view holds it and its keys go into it.
+ main's binaries fail both (`('its own view again', 4, 5, ...)`, `('client
+ D in its own view again', 2, ...)`).
+- **Not this one:** the H21 soak's "panes [...] left its view while still
+ open, with no rejoin since the last quiet point" (local 207 ms, seed 32,
+ a window client with one link all through) is no rejoin's.
+- **Gates** (on zponxort): Debug `core-test` tty, `replicas`, `replay`,
+ `test/daemon.py` 20 cycles, `--upgrade` (against a `-Dstamp-commit`
+ build), `--window-clients` and `--gui`; ReleaseSafe `--upgrade` (from
+ the Debug build) and `--window-clients`: all pass.