(state: State<'_, AppState>, id: String)
| 82 | |
| 83 | #[tauri::command] |
| 84 | pub async fn cancel_agent(state: State<'_, AppState>, id: String) -> AppResult<()> { |
| 85 | // Cancel via the real cancellation token |
| 86 | state.cancellations.cancel(&format!("agent:{id}")); |
| 87 | // Also update DB status |
| 88 | let _ = agent_service::update_agent_run_status(state.pool(), &id, "cancelled").await; |
| 89 | Ok(()) |
| 90 | } |
| 91 | |
| 92 | #[tauri::command] |
| 93 | pub async fn get_agent_config( |
nothing calls this directly
no test coverage detected