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/server/handoff.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/server/handoff.rs') diff --git a/src/server/handoff.rs b/src/server/handoff.rs index 6dadfdf4..22d1f902 100644 --- a/src/server/handoff.rs +++ b/src/server/handoff.rs @@ -38,20 +38,7 @@ pub(crate) struct HandoffManifest { pub expected_version: Option, pub expected_protocol: Option, pub snapshot: crate::persist::SessionSnapshot, - pub panes: Vec, -} - -#[cfg(unix)] -#[derive(Debug, Serialize, Deserialize)] -pub(crate) struct HandoffPane { - pub pane_id: u32, - pub child_pid: u32, - pub rows: u16, - pub cols: u16, - pub cell_width_px: u32, - pub cell_height_px: u32, - #[serde(default, skip_serializing_if = "Option::is_none")] - pub initial_history_ansi: Option, + pub panes: Vec, } #[cfg(unix)] @@ -307,7 +294,7 @@ pub(crate) fn report_owned(stream: &mut UnixStream) -> io::Result<()> { #[cfg(unix)] pub(crate) fn manifest_for( snapshot: crate::persist::SessionSnapshot, - panes: Vec, + panes: Vec, expected_protocol: Option, expected_version: Option, ) -> HandoffManifest { -- cgit v1.2.3