From f090ce95d05d2e7811869be93f9a23bf4ac2c3af Mon Sep 17 00:00:00 2001 From: Eric Yue Date: Mon, 21 Sep 2026 01:33:11 +0800 Subject: fix: confirm closing the last tab in the tui (#4409) * fix: confirm closing the last tab in the tui refs #4379 * docs: clarify last-tab worktree confirmation in translations refs #4379 --------- Co-authored-by: JJ Liebig --- src/client/shell/state.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/client/shell/state.rs') diff --git a/src/client/shell/state.rs b/src/client/shell/state.rs index 55a065d5..2eaf18bf 100644 --- a/src/client/shell/state.rs +++ b/src/client/shell/state.rs @@ -562,9 +562,16 @@ pub(super) struct ClientContextMenuItem { pub(super) action: ClientContextMenuAction, } +#[derive(Debug)] +pub(super) struct ClientTabCloseConfirmation { + pub(super) tab_id: String, + pub(super) workspace: WorkspaceNavigationTarget, +} + #[derive(Debug)] pub(super) struct ClientConfirmCloseOverlay { pub(super) workspace_id: String, + pub(super) tab_target: Option, pub(super) title: String, pub(super) detail: String, } -- cgit v1.2.3