pub fn run_command(state: &Arc<AppState>, args: &Value) -> Result<Value, String>Expand description
Dispatch a command palette ID to the frontend of the target window.
Args:
id — stable command ID (e.g. "open:terminal")
windowLabel — (optional) which window to target; defaults to "main"