summaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-08-25 23:44:56 +0300
committerGitHub <noreply@github.com>2026-08-25 23:44:56 +0300
commitd79fd746a96ddb5642939c9727baefce642d78e6 (patch)
treef6ca7416b082168db6607952d5fb6672f5173826 /src/app/state.rs
parentda5357d23f8450d4609f72d079876d7d439ef5a0 (diff)
fix: require explicit workspace group close (#3206)
refs #2874 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 21ee8899..782b8ae5 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -1445,6 +1445,8 @@ pub struct AppState {
pub(crate) previous_pane_focus: Option<PaneFocusTarget>,
pub selected: usize,
pub mode: Mode,
+ /// Stable workspace identity captured when the close confirmation opens.
+ pub(crate) confirm_close_workspace_id: Option<String>,
pub should_quit: bool,
/// In monolithic --no-session mode, detach exits the app because there is no server to detach from.
pub detach_exits: bool,
@@ -1836,6 +1838,7 @@ impl AppState {
previous_pane_focus: None,
selected: 0,
mode: Mode::Navigate,
+ confirm_close_workspace_id: None,
should_quit: false,
detach_exits: false,
detach_requested: false,