diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-28 04:11:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-28 04:12:53 +0300 |
| commit | bf9cc201244946496b4d950046bf7edcc4892994 (patch) | |
| tree | 920c866e67783cf31d2feff9642457204999c8eb /src/terminal/state.rs | |
| parent | 789738cada5afaa20bbd77a0d479fb689c455bfe (diff) | |
fix: preserve live handoff terminal state
Diffstat (limited to 'src/terminal/state.rs')
| -rw-r--r-- | src/terminal/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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<Vec<String>>, + 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, |
