From 73faaa95e44aebfb11d340a3182e96c7c226fa9a Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Wed, 13 May 2026 18:01:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20SessionCommandHand?= =?UTF-8?q?ler=20=E7=9A=84=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0=E4=B8=BA?= =?UTF-8?q?=E5=85=AC=E6=9C=89=E5=8F=AF=E8=A7=81=E6=80=A7=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7=EF=BC=9B?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20WebSocket=20=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BB=A5=E7=AE=80=E5=8C=96=E6=A8=A1=E5=BC=8F=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/command/handlers/session.rs | 2 +- src/gateway/ws.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/handlers/session.rs b/src/command/handlers/session.rs index f8c7cc7..9a32d47 100644 --- a/src/command/handlers/session.rs +++ b/src/command/handlers/session.rs @@ -17,7 +17,7 @@ impl SessionCommandHandler { /// /// # Arguments /// * `cli_sessions` - CLI 会话服务 - pub fn new(cli_sessions: CliSessionService) -> Self { + pub(crate) fn new(cli_sessions: CliSessionService) -> Self { Self { cli_sessions } } } diff --git a/src/gateway/ws.rs b/src/gateway/ws.rs index a886ceb..8faeb70 100644 --- a/src/gateway/ws.rs +++ b/src/gateway/ws.rs @@ -224,7 +224,7 @@ async fn handle_inbound( // 处理响应 for msg in outbounds { - if let WsOutbound::SessionCreated { session_id, title } = &msg { + if let WsOutbound::SessionCreated { session_id, title: _ } = &msg { *current_session_id = session_id.clone(); state .channel_manager