diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 05:22:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | e9eae368dbbe855ad2f409913ff0d44d5ac32bd8 (patch) | |
| tree | a72ba7ecd7051d72f7685e948205d7d60aa44b21 /src/dump.zig | |
| parent | 5002c612298fe645791218059a69d2bc80a42d2d (diff) | |
| download | pardes-e9eae368dbbe855ad2f409913ff0d44d5ac32bd8.tar.gz pardes-e9eae368dbbe855ad2f409913ff0d44d5ac32bd8.zip | |
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 <[email protected]>
Diffstat (limited to 'src/dump.zig')
| -rw-r--r-- | src/dump.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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), |
