fix(desktop): kill zombie server process on startup timeout (#11602)

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
pull/11734/head
mohammad 2026-02-02 11:00:46 +05:30 committed by Dax Raad
parent 14dc940aac
commit 2d99b33466
1 changed files with 1 additions and 0 deletions

View File

@ -526,6 +526,7 @@ async fn spawn_local_server(
let timestamp = Instant::now();
loop {
if timestamp.elapsed() > Duration::from_secs(30) {
let _ = child.kill();
break Err(format!(
"Failed to spawn OpenCode Server. Logs:\n{}",
get_logs(app.clone()).await.unwrap()