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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/ui/src/stores/instances.ts b/packages/ui/src/stores/instances.ts index e3bada698..0b1c5d2d0 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) + removeInstance(id) - try { - await serverApi.deleteWorkspace(id) - } catch (error) { + serverApi.deleteWorkspace(id).catch((error) => { log.error("Failed to stop workspace", error) - } - - removeInstance(id) + }) } async function fetchLspStatus(instanceId: string): Promise {