From 75ed6abc6258f09af5d4fc995a5004c1abf14fc2 Mon Sep 17 00:00:00 2001 From: akbash Date: Mon, 13 Jul 2026 17:25:52 +0300 Subject: fix: reap detached custom command children (#1384) * fix: reap detached custom command children refs #1360 * test: harden child cleanup and sidebar metrics refs #1360 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/app/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/app/mod.rs') diff --git a/src/app/mod.rs b/src/app/mod.rs index bff04c44..16cfeafb 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -130,6 +130,7 @@ pub struct App { pub(crate) selection_highlight_clear_deadline: Option, pub(crate) session_save_deadline: Option, pub(crate) session_save_thread: Option>, + pub(crate) detached_custom_command_children: Vec, pub(crate) persist_pane_history: bool, pub(crate) last_render_at: Option, pub(crate) suppressed_repeat_keys: @@ -725,6 +726,7 @@ impl App { pending_agent_resume_deadline: None, session_save_deadline: None, session_save_thread: None, + detached_custom_command_children: Vec::new(), selection_autoscroll_deadline: None, selection_highlight_clear_deadline: None, persist_pane_history: config.experimental.pane_history, @@ -879,6 +881,7 @@ impl App { let mut host_mouse_capture_active = self.state.mouse_capture; while !self.state.should_quit { + self.reap_finished_custom_commands(); if self.render_dirty.load(Ordering::Acquire) { needs_render = true; } -- cgit v1.2.3