summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 02:20:43 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commiteece0fbe709142f6731b7dd2e84009c3a18a3806 (patch)
treeefb4ae067a9009beae607c55ae38078382c5d038 /src/ninep
parenta4a8b1874d477498fb427f8e2f63382c99f618a0 (diff)
downloadpardes-eece0fbe709142f6731b7dd2e84009c3a18a3806.tar.gz
pardes-eece0fbe709142f6731b7dd2e84009c3a18a3806.zip
A pane closed with its question standing logs answer <serial> -
A follower that saw ask never heard the question end when its pane closed first. Retiring a pane with a question still up now logs answer <serial> - before its del. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/events.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ninep/events.zig b/src/ninep/events.zig
index 2112110a..61aadae2 100644
--- a/src/ninep/events.zig
+++ b/src/ninep/events.zig
@@ -122,6 +122,12 @@ pub fn noteRetire(p: *Pardes, pane: *Pane) void {
pane.fs.unannounced = false;
return;
}
+ // 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) {
+ var rec: [32]u8 = undefined;
+ notePath(p, "answer", std.fmt.bufPrint(&rec, "{d} -", .{pane.serial}) catch "");
+ }
noteLog(p, .del, pane);
}