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/runtime.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/terminal/runtime.rs') diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index fa81aa4a..636972a1 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -45,8 +45,11 @@ impl TerminalRuntime { } #[cfg(unix)] - pub fn handoff_pane(&self, pane_id: u32) -> crate::server::handoff::HandoffPane { - self.0.handoff_pane(pane_id) + pub fn handoff_runtime_state( + &self, + pane_id: u32, + ) -> crate::handoff_runtime::HandoffRuntimeState { + self.0.handoff_runtime_state(pane_id) } #[cfg(unix)] @@ -56,7 +59,7 @@ impl TerminalRuntime { #[cfg(unix)] pub fn from_handoff_fd( - import: crate::pane::PaneRuntimeImport, + import: crate::handoff_runtime::ImportedHandoffRuntime, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, events: mpsc::Sender, @@ -369,14 +372,14 @@ impl TerminalRuntime { pub fn cwd(&self) -> Option { self.0.cwd() } -} -#[cfg(test)] -impl TerminalRuntime { pub(crate) fn current_size(&self) -> (u16, u16) { self.0.current_size() } +} +#[cfg(test)] +impl TerminalRuntime { pub(crate) fn test_with_channel(cols: u16, rows: u16) -> (Self, mpsc::Receiver) { let (runtime, rx) = crate::pane::PaneRuntime::test_with_channel(cols, rows); (Self(runtime), rx) -- cgit v1.2.3