From 600753b47b75898c311ecfb625bd1887031b3475 Mon Sep 17 00:00:00 2001 From: akbash Date: Wed, 15 Jul 2026 23:43:21 +0300 Subject: fix: guard cli requests against protocol mismatches (#1453) refs #1435 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik --- src/cli/server.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cli/server.rs') diff --git a/src/cli/server.rs b/src/cli/server.rs index 29775999..ff87cab1 100644 --- a/src/cli/server.rs +++ b/src/cli/server.rs @@ -201,7 +201,9 @@ fn server_live_handoff(args: &[String]) -> std::io::Result { return Ok(2); }; - let response = super::send_request(&Request { + // Live handoff is itself a protocol-mismatch recovery path, so it must + // reach the running server without the normal CLI compatibility guard. + let response = super::send_request_unchecked(&Request { id: "cli:server:live-handoff".into(), method: Method::ServerLiveHandoff(params), })?; -- cgit v1.2.3