From cd7edeb06048892ce6d6bb1a9dc37b9af494e966 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Fri, 11 Sep 2026 16:26:52 +0300 Subject: fix: preserve local direct kitty graphics transport (#3957) refs #3785 --- src/client/shell/state.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/shell/state.rs') diff --git a/src/client/shell/state.rs b/src/client/shell/state.rs index 60afc3df..9507797d 100644 --- a/src/client/shell/state.rs +++ b/src/client/shell/state.rs @@ -1304,11 +1304,11 @@ impl ClientShellState { snapshot .commands .retain(|command| command.action != crate::protocol::ClientShellCommandAction::Unknown); - let graphics_scope = format!( - "{}:{}", - self.active_endpoint_id.storage_key(), - snapshot.boot_id - ); + let graphics_scope = match &self.active_endpoint_id { + // Local direct uploads use image IDs authored by the server from its boot ID. + ClientEndpointId::Local => snapshot.boot_id.clone(), + endpoint_id => format!("{}:{}", endpoint_id.storage_key(), snapshot.boot_id), + }; let endpoint_boot_changed = self.snapshot.is_some() && self.graphics.scope() != graphics_scope; if !endpoint_boot_changed -- cgit v1.2.3