diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-02 18:08:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 18:08:10 +0200 |
| commit | 5a2dee700eeeea68267a4d16777307632f77172f (patch) | |
| tree | 3a7b2b0ead7af9cb1bfc069e5f61ce56a5f4909f /src/app/mod.rs | |
| parent | 987b070fbfa187e85009b45cd7e208fc6175ff6a (diff) | |
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
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<std::path::PathBuf, u64>, pub(crate) pending_api_worktree_removes: HashMap<String, u64>, pub(crate) pending_api_worktree_remove_paths: HashMap<std::path::PathBuf, u64>, + pub(crate) pending_worktree_remove_runtime_exits: HashMap<crate::layout::PaneId, usize>, + pub(crate) pending_worktree_remove_runtime_restores: HashMap<crate::layout::PaneId, u64>, pub(crate) next_api_worktree_operation_id: u64, pub(crate) next_auto_update_check: Option<Instant>, pub(crate) next_agent_manifest_update_check: Option<Instant>, @@ -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), |
