repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
49b126a
parent
d0683a3
author
Eric Bower
date
2026-03-11 10:13:49 -0400 EDT
fix(attach): type error
1 files changed,  +2, -1
M src/main.zig
+2, -1
 1@@ -968,7 +968,8 @@ fn history(cfg: *Cfg, session_name: []const u8, format: util.HistoryFormat) !voi
 2 }
 3 
 4 fn attach(daemon: *Daemon) !void {
 5-    if (socket.getSeshNameFromEnv()) |_| {
 6+    const sesh = socket.getSeshNameFromEnv();
 7+    if (sesh.len > 0) {
 8         return error.CannotAttachToSessionInSession;
 9     }
10