From 17f8f2bebd95c9c19013f31940259e2f700eaca7 Mon Sep 17 00:00:00 2001 From: Solomon Date: Tue, 9 Sep 2025 16:55:13 +0100 Subject: [PATCH] Prevent opening browser attempt form blocking the server (#667) --- crates/server/src/main.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 6c6e1f81..5425d099 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs @@ -90,13 +90,15 @@ async fn main() -> Result<(), VibeKanbanError> { if !cfg!(debug_assertions) { tracing::info!("Opening browser..."); - if let Err(e) = open_browser(&format!("http://127.0.0.1:{actual_port}")).await { - tracing::warn!( - "Failed to open browser automatically: {}. Please open http://127.0.0.1:{} manually.", - e, - actual_port - ); - } + tokio::spawn(async move { + if let Err(e) = open_browser(&format!("http://127.0.0.1:{actual_port}")).await { + tracing::warn!( + "Failed to open browser automatically: {}. Please open http://127.0.0.1:{} manually.", + e, + actual_port + ); + } + }); } axum::serve(listener, app_router).await?;