From 637ab988f0922173055ea98b1f76916e42f4222a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 05:24:25 -0300 Subject: A prompt a 9P request opens is an ask, answered with answer, never stacked Save through exec on a terminal (or a scratch) opened its path prompt on screen, where no script could see or answer it, and a second Save stacked another. Opened while a 9P request is served, it now logs ask save path; answer on the pane's ctl saves there and closes it, answer - closes it; asked again, the open one stands. A pane closed with it open logs answer -. Co-Authored-By: Claude Opus 5.5 --- src/ninep/events.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ninep/events.zig') diff --git a/src/ninep/events.zig b/src/ninep/events.zig index d2beecd1..105397f3 100644 --- a/src/ninep/events.zig +++ b/src/ninep/events.zig @@ -124,7 +124,7 @@ pub fn noteRetire(p: *Pardes, pane: *Pane) void { } // A question still standing ends with it, so a follower of its `ask` // hears the end. - if (pane.prompt == .repl_choice or pane.prompt == .del_side) { + if (pane.prompt == .repl_choice or pane.prompt == .del_side or pane.prompt == .save) { var rec: [32]u8 = undefined; notePath(p, "answer", std.fmt.bufPrint(&rec, "{d} -", .{pane.serial}) catch ""); } -- cgit v1.3