diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 21:40:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 22:26:19 -0300 |
| commit | 544eee368537eea98e7552e730948c2c8fb380e9 (patch) | |
| tree | 409cb230e4fbfd95e33bf722454bf58eb504904b /core/replica.zig | |
| parent | 752cd81c1c5e1e91e1429cefc1c4651647981f88 (diff) | |
| download | pardes-544eee368537eea98e7552e730948c2c8fb380e9.tar.gz pardes-544eee368537eea98e7552e730948c2c8fb380e9.zip | |
pair: a pair's user is told a newer build is installed: the words were set only by a session's own frontend at its focus in (upgrade.noticeNewer), which a pair's session has not, and its client never asks: `Peers.input` marks a focus in from the pair's first client (`Peers.pair_focused`) and the session loop asks `noticeNewer` for it between steps (runtime/session.zig), the session's binary being the one an Upgrade replaces; attach clients as on the own path; daemon.py --upgrade with the variable now passes 'the newer build said' both ways and stops later, at 'the word said' (the upgraded session's 'Upgrade: now' on /screen: not chased)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/replica.zig')
| -rw-r--r-- | core/replica.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/replica.zig b/core/replica.zig index 49dc7f7b..70335cfd 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -2141,6 +2141,10 @@ pub const Peers = struct { /// true; its session's frontend puts the user's terminal back then, /// and lets it go either way (tui.zig `Own.sent`), and clears this. pair_left: ?bool = null, + /// Its pair's first client's terminal or window found again (a focus + /// in): the session asks whether a newer build is installed, as its own + /// frontend asks at its own (runtime/session.zig), and clears this. + pair_focused: bool = false, /// An Upgrade told its clients so (`refuseAll`): a connection handed /// over before its exec is told the same, never closed by the exec /// unanswered. Its exec failed: the next boundary takes joins again. @@ -2296,6 +2300,7 @@ pub const Peers = struct { // it read, its unit (part B terminal notes' order). ps.screensOut(core, .flush); core.toView(peer.view); + if (peer.pair and in.event == .focus and in.event.focus) ps.pair_focused = true; ps.t.stamp = stampOf(in); core.update(in.event); core.step(); |
