From c411883ec639c9893ed9c33021c890485e91727b Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 24 Sep 2026 20:59:48 +0300 Subject: feat!: replace the custom graphics api with optimized native kitty rendering (#4561) * feat!: replace the custom graphics api with optimized native kitty rendering * fix: enable safe kitty optimizations automatically --------- Co-authored-by: JJ Liebig --- src/client/tests/mod.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/client/tests') diff --git a/src/client/tests/mod.rs b/src/client/tests/mod.rs index 2665e7fd..8519ea07 100644 --- a/src/client/tests/mod.rs +++ b/src/client/tests/mod.rs @@ -69,6 +69,21 @@ fn direct_graphics_profile_is_narrow_and_transport_safe() { )); } +#[test] +fn server_graphics_files_require_local_filesystem_not_just_local_terminal() { + let local = endpoint::ClientEndpointId::Local; + let ssh = endpoint::ClientEndpointId::Ssh( + endpoint::ProfileId::parse("0123456789abcdef0123456789abcdef").unwrap(), + ); + // Keep old local peers working without requiring a negotiated capability. + assert!(server_graphics_files_allowed(&local, false)); + // Saved SSH endpoints run in the normal local client process. + assert!(!server_graphics_files_allowed(&ssh, false)); + // A standalone --remote bridge can retain the Local endpoint identity. + assert!(!server_graphics_files_allowed(&local, true)); + assert!(!server_graphics_files_allowed(&ssh, true)); +} + fn restore_env_var(key: &str, value: Option) { if let Some(value) = value { std::env::set_var(key, value); -- cgit v1.2.3