(
state: State<'_, AppState>,
request: ReloadSubagentsRequest,
)
| 373 | |
| 374 | #[tauri::command] |
| 375 | pub async fn reload_subagents( |
| 376 | state: State<'_, AppState>, |
| 377 | request: ReloadSubagentsRequest, |
| 378 | ) -> Result<(), String> { |
| 379 | let workspace_root = workspace_root_from_request(request.workspace_path.as_deref()) |
| 380 | .ok_or_else(|| "workspacePath is required to reload project subagents".to_string())?; |
| 381 | state |
| 382 | .agent_registry |
| 383 | .load_custom_subagents(workspace_root.as_path()) |
| 384 | .await; |
| 385 | Ok(()) |
| 386 | } |
| 387 | |
| 388 | #[tauri::command] |
| 389 | pub async fn list_agent_tool_names(state: State<'_, AppState>) -> Result<Vec<String>, String> { |
nothing calls this directly
no test coverage detected