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) + 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 {