From 78ee8672307adbdf30a2afffc38efb70217dc212 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 20:35:50 -0300 Subject: pty/status reads the pty's size as winsize set it, on a line of its own A dogfood agent wrote winsize 100 30 to pty/ctl and pty/status went on reporting the pane's grid, and the status line had no newline to end it. The size winsize sets is kept until the pane resizes and gives the pty its grid again; ctl's winsize read back and status both report it, and status ends with a newline. Co-Authored-By: Claude Opus 5.5 --- src/pardes.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pardes.zig') diff --git a/src/pardes.zig b/src/pardes.zig index 992311a2..a3436870 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -6186,6 +6186,7 @@ pub const Pardes = struct { panes.Terminal.resizeGrid(pane, p.gpa, cols, rows); p.shell_rows.markStale(pane); // reflow moved every row p.emit(.{ .resize_pty = .{ .pane = @intCast(id), .cols = cols, .rows = rows } }); + pane.fs.winsize = null; } pane.cols = cols; pane.rows = rows; -- cgit v1.3