pub async fn spawn_background( command: &str, cwd: Option<&Path>, ) -> Result<Arc<ShellSession>, String>