diff --git a/src/session/session.rs b/src/session/session.rs index f336ca1..a7d9ec7 100644 --- a/src/session/session.rs +++ b/src/session/session.rs @@ -1087,15 +1087,6 @@ impl SessionManager { Some(&unified_id), ).await?; - // If a new session was created (e.g., /new, /delete), update the session binding - if let Some(new_id) = new_session_id { - // Update the session in the map with the new ID - let mut inner = self.inner.lock().await; - if let Some(old_session) = inner.sessions.remove(&unified_id.to_string()) { - inner.sessions.insert(new_id.to_string(), old_session); - } - } - return Ok(HandleResult::CommandOutput(response)); }