From 5ad6067936f306271b875aaf182d4866055da10d Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 21 Nov 2026 07:50:25 -0300 Subject: client: an Upgrade from the installed build (main 6d937cd125ca) to this one, the coordinator's release stage: a window exec'd at an Upgrade takes its size from PARDES_JOIN_SIZE (runtime/client.zig `execAgain`; dev/gui/gui.zig where `--geometry` is read), a string a test finds in the binary as PARDES_JOIN_VIEW is: test/daemon.py `knows_size`, and `pair_window_geometry` skips with a line said when the old window cannot pass its size (the installed build's: by design, its exec is the old client's); a far link cut with no last word dials again too (`replica.cutListed(why, session, far)`: the dial is the asking, the far daemon's "no session called" ends it), as near ones do since item 0: from the installed build `far_exec` lost its client before (2 of 6 runs) and still does once in five (the old far client is the installed build's code); a far client whose ssh link drops now dials again for up to 20 s before it says so Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/daemon.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/daemon.py b/test/daemon.py index 88e11062..49e9ff99 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -3277,6 +3277,12 @@ def upgrades(old, new): shutil.rmtree(root, ignore_errors=True) +def knows_size(gui_binary): + """Whether a build's window exec'd at an Upgrade comes back the size + it had (PARDES_JOIN_SIZE: client.zig `execAgain`).""" + return b'PARDES_JOIN_SIZE' in Path(gui_binary).read_bytes() + + def knows_exec(binary): """Whether a build's client execs the build at its start path at an Upgrade, for the view it is handed (PARDES_JOIN_VIEW).""" @@ -3507,7 +3513,10 @@ if __name__ == '__main__': if all(a.with_name('pardes-gui').exists() for a in (old, new)): upgrade_clients(old, new) if knows_exec(old): - pair_window_geometry(old.with_name('pardes-gui'), new.with_name('pardes-gui')) + if knows_size(old.with_name('pardes-gui')): + pair_window_geometry(old.with_name('pardes-gui'), new.with_name('pardes-gui')) + else: + print('pair window geometry: skipped: the old build\'s window passes no size at its exec (no PARDES_JOIN_SIZE)') elif sys.argv[1:2] == ['--upgrade-clients']: upgrade_clients(Path(sys.argv[2]).resolve(), Path(sys.argv[3]).resolve()) elif sys.argv[1:2] == ['--clients']: -- cgit v1.3