From 19c83c90ebed4817acd7a12d4d225f5af0957bc1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 23 Oct 2026 17:11:12 -0300 Subject: One inbox for every host: the GUI's queue moves to host_io.Inbox, macOS and the detached server use it The inbox takes a wake callback instead of an SDL flag and owns starting a pty reader and an LSP query and delivering their answers, status and pipe results. macOS gains the GUI's rule that only a pane's current reader and the current query get in; its reap now cancels the reader on the inbox before its future, since a reader blocked on a full queue cannot be canceled. The detached server's completion mailbox goes; its socket stays the loop's wakeup. Two old macOS ABI test compile errors fixed, so its unit tests run on Linux. Co-Authored-By: Claude Opus 5.5 --- src/detached/client.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/detached/client.zig') diff --git a/src/detached/client.zig b/src/detached/client.zig index cd17871e..617ae342 100644 --- a/src/detached/client.zig +++ b/src/detached/client.zig @@ -886,7 +886,7 @@ test "detached Restore keeps attached frontends and follows queued frames with a try testing.expect(h.session.clients[c.slot].attached); try testing.expectEqualStrings("saved body\n", h.core.panes[0].?.file.?.content); try testing.expect(h.session.clients[c.slot].need_full); - var wake = [_]libc.pollfd{.{ .fd = h.session.mailbox.wake[0], .events = poll_in, .revents = 0 }}; + var wake = [_]libc.pollfd{.{ .fd = h.session.wake[0], .events = poll_in, .revents = 0 }}; try testing.expectEqual(@as(c_int, 1), libc.poll(&wake, wake.len, 0)); for (0..Harness.rounds) |_| { if ((try h.pumpUntil(&c, .frame)).frame.kind == .full) break; -- cgit v1.3