()
| 554 | |
| 555 | #[tauri::command] |
| 556 | pub async fn remote_connect_stop_bot() -> Result<(), String> { |
| 557 | let holder = get_service_holder(); |
| 558 | let guard = holder.read().await; |
| 559 | if let Some(service) = guard.as_ref() { |
| 560 | service.stop_bots().await; |
| 561 | } |
| 562 | // Remove persistence so the bot is not auto-restored |
| 563 | let mut data = bot::load_bot_persistence(); |
| 564 | data.connections.clear(); |
| 565 | bot::save_bot_persistence(&data); |
| 566 | Ok(()) |
| 567 | } |
| 568 | |
| 569 | #[tauri::command] |
| 570 | pub async fn remote_connect_status() -> Result<RemoteConnectStatusResponse, String> { |
nothing calls this directly
no test coverage detected