aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/state.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-11 16:26:52 +0300
committerGitHub <noreply@github.com>2026-09-11 16:26:52 +0300
commitcd7edeb06048892ce6d6bb1a9dc37b9af494e966 (patch)
tree032c89107a41a3087fa35e5f79f509b9b554a904 /src/client/shell/state.rs
parenta05c403881c5a5a6b65317d3dd349b11591fc4c6 (diff)
fix: preserve local direct kitty graphics transport (#3957)
refs #3785
Diffstat (limited to 'src/client/shell/state.rs')
-rw-r--r--src/client/shell/state.rs10
1 files changed, 5 insertions, 5 deletions
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