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/server/handoff.rs | |
| parent | 789738cada5afaa20bbd77a0d479fb689c455bfe (diff) | |
fix: preserve live handoff terminal state
Diffstat (limited to 'src/server/handoff.rs')
| -rw-r--r-- | src/server/handoff.rs | 17 |
1 files changed, 2 insertions, 15 deletions
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<String>, pub expected_protocol: Option<u32>, pub snapshot: crate::persist::SessionSnapshot, - pub panes: Vec<HandoffPane>, -} - -#[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<String>, + pub panes: Vec<crate::handoff_runtime::HandoffRuntimeState>, } #[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<HandoffPane>, + panes: Vec<crate::handoff_runtime::HandoffRuntimeState>, expected_protocol: Option<u32>, expected_version: Option<String>, ) -> HandoffManifest { |
