a73x

fa7b59b5

Add --hidden-freeze-regression manual test mode

a73x   2026-04-16 18:57

Commit message
Add --hidden-freeze-regression manual test mode

Prints operator instructions and spawns a normal waystty session. The
freeze fix is validated by moving the window to another workspace and
back; the mode is purely for documentation and repeatable manual QA.

src/main.zig
Old New
@@ -91,6 +91,10 @@ pub fn main() !void {
91 return runTextCoverageCompare(alloc); 91 return runTextCoverageCompare(alloc);
92 } 92 }
93 93
94 if (args.len >= 2 and std.mem.eql(u8, args[1], "--hidden-freeze-regression")) {
95 return runHiddenFreezeRegression(alloc);
96 }
97
94 return runTerminal(alloc); 98 return runTerminal(alloc);
95 } 99 }
96 100
@@ -3366,3 +3370,22 @@ fn runHeadless(alloc: std.mem.Allocator) !void {
3366 3370
3367 try w.flush(); 3371 try w.flush();
3368 } 3372 }
3373
3374 fn runHiddenFreezeRegression(alloc: std.mem.Allocator) !void {
3375 const stdout = std.fs.File.stdout();
3376 try stdout.writeAll(
3377 \\
3378 \\hidden-freeze regression mode
3379 \\-----------------------------
3380 \\1. This process will spawn waystty and start writing to its pty.
3381 \\2. Move the window to a different workspace.
3382 \\3. Wait 5 seconds.
3383 \\4. Move the window back.
3384 \\5. The window should be responsive and show fresh output.
3385 \\
3386 \\Press enter to start, Ctrl-C to abort.
3387 \\
3388 );
3389
3390 return runTerminal(alloc);
3391 }