summaryrefslogtreecommitdiff
path: root/runtime/session.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 12:55:20 -0300
committerGabriel Schneider <[email protected]>2026-11-21 13:08:10 -0300
commitac57f6e25b7b694374925ef42963952524804152 (patch)
tree938625cc51c66760023036d60f5fe1f44d86c0ce /runtime/session.zig
parent5a74a03fece68f6cd53ab2c8fccbd7deea345acb (diff)
parent9f4b8e83ed908c8b7a9bf979a5c9bf581e66c052 (diff)
downloadpardes-ac57f6e25b7b694374925ef42963952524804152.tar.gz
pardes-ac57f6e25b7b694374925ef42963952524804152.zip
integration: the gate's three rows and the pair's round 6 on the gathered line: pardes-rows (`xlmzqnnp`, on pardes-merge50: a view kept for a client's rejoin is let go after its 30 s in a session nobody types in: a join with every view open advances the clock on the tape before it judges, and its refusal says one is kept and for how long; the adopted shell's and the upgrade rows' tests wait for what they read) and pardes-pair-6 (`slxkptto`, on pardes-merge50: a pair's first client, and the first client of any session with no frontend, no client and no view kept, takes the session's view instead of one opened beside it; a size equal to the one held is no resize; a Restore tells its clients and they join again; a pair's client enters its terminal before its join: the process suite as pairs 1, 0, 0 of 145 with no golden changed); one textual conflict, core/replica.zig Peers.join: the rows' clock advance at the cap first, then the pair's `own` and viewFor(core, joining.view, own): both kept; core-test 894/1054 (160 skipped), shell-test 1096/1099; its gate: .scratch/sketch/reorg/merge51, the numbers in PARDES.md (2026-11-21)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/session.zig')
-rw-r--r--runtime/session.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/session.zig b/runtime/session.zig
index 5e99384e..75e8efcc 100644
--- a/runtime/session.zig
+++ b/runtime/session.zig
@@ -111,7 +111,7 @@ pub fn Loop(comptime Frontend: type) type {
// A first client on the socket it was started with, before its
// first effects: it has every terminal from its first byte, and
// no reload (Core.openView).
- if (o.pair) |fd| l.peers.join(l.core, .{ .fd = fd });
+ if (o.pair) |fd| l.peers.join(l.core, .{ .fd = fd, .own = true });
l.effects();
// ...and its shells, once a fresh session's own has a directory
// to adopt them in.
@@ -192,8 +192,12 @@ pub fn Loop(comptime Frontend: type) type {
// go, and its one could not join it again (no socket finds it):
// refused, as its Upgrade is (tui.zig `upgradeNow`).
if (l.peers.count() > 0 and daemon.link < 0) return l.core.reportFailure(l.core.view().active, "Restore: no daemon keeps this session, so its client could not join it again; this session stays as it is");
+ const watched = l.peers.count() > 0;
const nc = host_io.restoreCore(l.gpa, l.core, path, &l.peers, l.watches.fd, &l.watches.table) orelse return;
l.fe.restoring(nc);
+ // Its clients join again at once: the dump's messages are not
+ // put on the clock meanwhile (Messages.expireUnattended).
+ if (watched) nc.unattended = false;
// The old core's pipes end, and an answer to its query is
// turned away.
l.inbox.pipe_tasks.cancelAll(l.io);