From ce92a8c3da84c0bc4f5f2b56acf6e09fa42990f4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 13:19:36 -0300 Subject: join: a join refused for want of a view reloads nothing: openViewInner reloaded every written terminal on every side before Views.open said no (core/Core.zig), a step of a megabyte's snapshot a terminal for nothing a session refuses 550-630 times a soak run; the view now taken first, the reloads after; FIRST the test (core/replica.zig, the earlier one turned round: every view taken, a key of the client's on top, a fifth client refused, the pump's unit, the key confirmed, more output: no reload on any side, the client the session's): on the base expected 2, found 3 (the refused join reloaded); with the change shell-test -Dtest-filter='bytes: a join' 13/13 Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- core/Core.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/Core.zig') diff --git a/core/Core.zig b/core/Core.zig index 7ebcc020..6de4f21e 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -1174,9 +1174,11 @@ fn openViewInner(p: *Pardes) ?View.Id { // tape does it here: a join dumps the session next, and a core // loaded from a dump has no queue (Replica.initDump). p.settle(); + // A join refused (every view taken) reloads nothing. + const k = Views.open(p) orelse return null; pardes.panes.reloadTerminals(p); p.needs_frame = true; - return .at(Views.open(p) orelse return null); + return .at(k); } /// The client of view `k` gone: its view goes, the others stay. The -- cgit v1.3