repos / zmx

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

commit
770481a
parent
08b33dc
author
L.B.R.
date
2026-02-20 07:29:42 -0500 EST
fix: add missing fields to writeSessionLine test (#56)

1 files changed,  +6, -3
M src/main.zig
+6, -3
 1@@ -1780,6 +1780,9 @@ test "writeSessionLine formats output for current session and short output" {
 2         .error_name = null,
 3         .cmd = null,
 4         .cwd = null,
 5+        .created_at = 0,
 6+        .task_ended_at = null,
 7+        .task_exit_code = null,
 8     };
 9 
10     const cases = [_]Case{
11@@ -1787,19 +1790,19 @@ test "writeSessionLine formats output for current session and short output" {
12             .session = session,
13             .short = false,
14             .current_session = "dev",
15-            .expected = "→ session_name=dev\tpid=123\tclients=2\n",
16+            .expected = "→ session_name=dev\tpid=123\tclients=2\tcreated_at=0\n",
17         },
18         .{
19             .session = session,
20             .short = false,
21             .current_session = "other",
22-            .expected = "  session_name=dev\tpid=123\tclients=2\n",
23+            .expected = "  session_name=dev\tpid=123\tclients=2\tcreated_at=0\n",
24         },
25         .{
26             .session = session,
27             .short = false,
28             .current_session = null,
29-            .expected = "session_name=dev\tpid=123\tclients=2\n",
30+            .expected = "session_name=dev\tpid=123\tclients=2\tcreated_at=0\n",
31         },
32         .{
33             .session = session,