summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 17:58:05 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commitc5fcbc0cb9c1e76bb01283e9ccfa00ed5bc4bef8 (patch)
tree967ca08153c0385d5fc3e05a69468bee45dfa7b0 /src/fs.zig
parent08c4a01f799ae250577d99a61f23eef7d66e439a (diff)
downloadpardes-c5fcbc0cb9c1e76bb01283e9ccfa00ed5bc4bef8.tar.gz
pardes-c5fcbc0cb9c1e76bb01283e9ccfa00ed5bc4bef8.zip
What a root ctl write says is the session's in the log, msg -, not the active pane's
A session builtin written to /ctl runs at the active pane, so its messages were logged under that pane's serial, as if the pane had said them. They are now `msg -`, and still shown on the active pane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 2dc3394b..42d761ca 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -1260,6 +1260,9 @@ pub const Namespace = struct {
/// the first error one reports (`failure`) fails the write, as acme's
/// ctl answers a command's error (editors/acme/xfid.c:700).
no_prompt: bool = false,
+ /// The root ctl is running a session builtin: its messages are the
+ /// session's, logged `msg -`, though shown on the active pane.
+ session_write: bool = false,
refused: bool = false,
failure: [256]u8 = undefined,
failure_len: u16 = 0,