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/app/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app/mod.rs') diff --git a/src/app/mod.rs b/src/app/mod.rs index 90ee33b8..131b9729 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -124,6 +124,8 @@ pub struct App { pub(crate) pending_api_worktree_creates: HashMap, pub(crate) pending_api_worktree_removes: HashMap, pub(crate) pending_api_worktree_remove_paths: HashMap, + pub(crate) pending_worktree_remove_runtime_exits: HashMap, + pub(crate) pending_worktree_remove_runtime_restores: HashMap, pub(crate) next_api_worktree_operation_id: u64, pub(crate) next_auto_update_check: Option, pub(crate) next_agent_manifest_update_check: Option, @@ -580,6 +582,8 @@ impl App { pending_api_worktree_creates: HashMap::new(), pending_api_worktree_removes: HashMap::new(), pending_api_worktree_remove_paths: HashMap::new(), + pending_worktree_remove_runtime_exits: HashMap::new(), + pending_worktree_remove_runtime_restores: HashMap::new(), next_api_worktree_operation_id: 1, next_auto_update_check: version_check_enabled .then_some(Instant::now() + AUTO_UPDATE_CHECK_INTERVAL), -- cgit v1.2.3