From bf9cc201244946496b4d950046bf7edcc4892994 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 28 May 2026 04:11:56 +0300 Subject: fix: preserve live handoff terminal state --- src/terminal/state.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/terminal/state.rs') diff --git a/src/terminal/state.rs b/src/terminal/state.rs index d713118c..f061e318 100644 --- a/src/terminal/state.rs +++ b/src/terminal/state.rs @@ -72,6 +72,7 @@ pub struct TerminalState { pub state: AgentState, pub revision: u64, pub launch_argv: Option>, + pub respawn_shell_on_exit: bool, } impl TerminalState { @@ -96,6 +97,7 @@ impl TerminalState { state: AgentState::Unknown, revision: 0, launch_argv: None, + respawn_shell_on_exit: false, } } @@ -104,6 +106,11 @@ impl TerminalState { self } + pub fn with_respawn_shell_on_exit(mut self) -> Self { + self.respawn_shell_on_exit = true; + self + } + #[cfg(test)] pub fn set_detected_state( &mut self, -- cgit v1.2.3