From 8cf6b03761e503cdc4a2da435b434afef138b136 Mon Sep 17 00:00:00 2001 From: aayurt Date: Sat, 13 Jun 2026 23:09:09 +0545 Subject: [PATCH] fix(instances): streamline instance stopping process and error handling --- packages/ui/src/stores/instances.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/stores/instances.ts b/packages/ui/src/stores/instances.ts index e3bada69..0b1c5d2d 100644 --- a/packages/ui/src/stores/instances.ts +++ b/packages/ui/src/stores/instances.ts @@ -720,14 +720,11 @@ async function stopInstance(id: string) { if (!instance) return releaseInstanceResources(id) - - try { - await serverApi.deleteWorkspace(id) - } catch (error) { - log.error("Failed to stop workspace", error) - } - removeInstance(id) + + serverApi.deleteWorkspace(id).catch((error) => { + log.error("Failed to stop workspace", error) + }) } async function fetchLspStatus(instanceId: string): Promise {