From 544eee368537eea98e7552e730948c2c8fb380e9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 21 Nov 2026 21:40:19 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- runtime/session.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/session.zig') diff --git a/runtime/session.zig b/runtime/session.zig index 890302b1..d8c7cd02 100644 --- a/runtime/session.zig +++ b/runtime/session.zig @@ -136,6 +136,12 @@ pub fn Loop(comptime Frontend: type) type { l.peers.boundary(l.core); // Before a pair's end: its client's terminal put back (P48). fe.sent(); + // A pair's client stands for the frontend it was started + // for: at its focus in, a newer build said (upgrade.zig). + if (l.peers.pair_focused) { + l.peers.pair_focused = false; + upgrade.noticeNewer(l.core); + } // A pair's session with no daemon ends with its last link: // nothing could attach to it again; with one, when its last // client left with a close (not a loss) and it is not kept. -- cgit v1.3