summaryrefslogtreecommitdiff
path: root/runtime/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 16:34:45 -0300
committerGabriel Schneider <[email protected]>2026-11-23 18:01:40 -0300
commitda4256d4bf8938d38daa1349e9b51f403bf7a937 (patch)
treed93bf2c3faebb7a61a64dddadecffb7ac54c6184 /runtime/main.zig
parentb58b6e6e8e67e256be7de879a212da1de699253e (diff)
downloadpardes-da4256d4bf8938d38daa1349e9b51f403bf7a937.tar.gz
pardes-da4256d4bf8938d38daa1349e9b51f403bf7a937.zip
messages: what a view kept for its client's return shows at its keyboard's pane waits for that client (the coordinator's rule for an Upgrade's outcome: kept for each view until its client is back and drawn, until its kept time for a view whose client never comes, as now for the session's own frontend): pair-10's rule "a message waits for someone to see it", which a session-wide `unattended = false` keeps for a pair's one client (dev/tui/tui.zig `Own.start`, `rec.state == .pair`), made per view for every client: `Messages.awaited(p, pane)`: a pane that the keyboard of a view kept for its client (views.away: an Upgrade's clients, a divergence's) is on, within the view's kept time (views.away_kept_ns); neither another view's key or click (`dismissMessage`) nor the unattended clock (`expireUnattended`) takes its message; the client back for its view (`rejoinView`) gets it in its join's dump; pair-10's line stays: deleted, the `--with-pair --upgrade` rows failed 3 of 3 at "brings the rest back" (a pair's session no build could load starts afresh with no view kept, its message on the unattended clock at once): that case has no view to hold it; what failed the merged gate (pardes-merge63, its row "each client's own screen saying the Upgrade's outcome" 3 of 3) was NOT a race but the test's first needle, `Upgrade: the new build`, which a message longer than its pane never shows (it shows its end: round 1's five kept runs, both clients, 0 head and 1 end each): pardes-merge63 stands on `ulztktwm` without `mntzqroy` (its needle `it goes on as`); on this tree (with `mntzqroy`) the row passed before this change 3 of 3 each way (dbg->rel, rel->dbg, a message trace in every process: every client back within 3 ms of the outcome, nothing between); the race this closes is a user's: a key in the session's own terminal, or a detached session's clock, before a client is back; TEST FIRST: runtime/upgrade.zig "an upgrade's outcome waits in each view kept for its client until that client is back for it: no other view's key and no clock take it" (two client views kept as an Upgrade keeps them, the dump loaded by `load`, MessageLinger 0: a key in the own view takes its pane's outcome and not theirs; unattended, a tick takes none; a client back has it and the next key takes it; the other's goes past its kept time): fails on the base at the first kept view (upgrade.zig:534), passes with it; the two upgrade tests share `upgradedForTest` (the dump and `load`) and `saysOutcome`
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/main.zig')
0 files changed, 0 insertions, 0 deletions