From 5a2dee700eeeea68267a4d16777307632f77172f Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Wed, 2 Sep 2026 18:08:10 +0200 Subject: fix(windows): remove worktrees with active agent panes (#3532) * fix(windows): remove worktrees with active agent panes * fix(windows): defer pane restore until shutdown exits --- src/events.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/events.rs') diff --git a/src/events.rs b/src/events.rs index d17ef60b..2901e493 100644 --- a/src/events.rs +++ b/src/events.rs @@ -37,6 +37,7 @@ pub struct ApiWorktreeRemoveRequest { pub id: String, pub operation_id: u64, pub checkout_key: std::path::PathBuf, + pub shutdown_panes: Vec, pub respond_to: std::sync::mpsc::Sender, } @@ -56,6 +57,8 @@ pub struct WorktreeRemoveResult { pub enum AppEvent { /// A pane's child process exited. PaneDied { pane_id: PaneId }, + /// A worktree-removal runtime could not be restored normally. + WorktreeRuntimeRestoreFailed { pane_id: PaneId, operation_id: u64 }, /// Process detection identified an agent before its screen state was confirmed. AgentProcessDetected { pane_id: PaneId, -- cgit v1.2.3