From 598c2a58aa1a6cb00697c06bec7ebe370c12bad5 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 25 Feb 2026 21:48:49 +0100 Subject: [PATCH 1/2] refactor(terminal): add some debug logs for pty lifetime tracking --- src/tui/terminal_view.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/terminal_view.zig b/src/tui/terminal_view.zig index 89c6a2fa..a6fc4129 100644 --- a/src/tui/terminal_view.zig +++ b/src/tui/terminal_view.zig @@ -316,6 +316,7 @@ const Vt = struct { } self.vt.deinit(); self.env.deinit(); + std.log.debug("terminal: vt destroyed", .{}); } pub fn resize(self: *@This(), pos: Widget.Box) void { @@ -366,6 +367,7 @@ const pty = struct { self.parser.buf.deinit(); self.parent.deinit(); self.allocator.destroy(self); + std.log.debug("terminal: pty destroyed", .{}); } fn start(self: *@This()) tp.result { From ec8379ce5123341e0cdf35ad4f7a2477d0466092 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 25 Feb 2026 21:48:58 +0100 Subject: [PATCH 2/2] refactor(terminal): add restart keybind to terminal mode --- src/keybind/builtin/flow.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index b27c000e..d9462d42 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -603,7 +603,8 @@ ["alt+x", "open_command_palette"], ["alt+!", "run_task"], ["alt+f9", "panel_next_widget_style"], - ["ctrl+shift+q", "quit_without_saving"] + ["ctrl+shift+q", "quit_without_saving"], + ["ctrl+alt+shift+r", "restart"] ] } }