From e9eae368dbbe855ad2f409913ff0d44d5ac32bd8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 05:22:35 -0300 Subject: Tty takes a directory as long as a path may be A terminal's directory rode inline in the spawn effect, capped at 256 bytes, so Tty in a directory of about 377 bytes said path too long. A directory past the inline buffer now goes out of line (Pardes.spawn_dirs, given to the host when the spawn is performed), up to the host's path limit (4095); past that, Tty says its directory is longer than a path may be. The effect queue stays its size. Co-Authored-By: Claude Opus 5.5 --- src/dump.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dump.zig') diff --git a/src/dump.zig b/src/dump.zig index 54b77451..7b27876e 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -848,7 +848,7 @@ fn initDump(gpa: std.mem.Allocator, opts: Options, zon_bytes: []const u8, previo restored.command_status = t.status; } if (std.mem.startsWith(u8, src.tag, "TTY ")) restored.body.mode = .tty; - if (revive) p.emit(.{ .spawn = .{ .pane = @intCast(i), .serial = restored.serial, .cwd = .from(t.cwd) } }); + if (revive) p.emitSpawn(i, restored.serial, t.cwd); break :terminal restored; }, .file => try pardes.panes.File.restore(p, i, src), -- cgit v1.3