From 38b972f5ce6848cbb66e92846e8da8b63d731007 Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Fri, 20 Feb 2026 16:34:58 -0800 Subject: [PATCH] fix: use destroy_server for sprite delete to support org users (#1538) The sprite case in buildDeleteScript called `sprite destroy` directly, bypassing ensure_sprite_authenticated and destroy_server. This meant SPRITE_ORG was never detected, so org users got "sprite not found" errors and orphaned sprites continued incurring charges. Align with every other cloud (hetzner, digitalocean, fly, gcp, aws, daytona) by calling ensure_sprite_authenticated then destroy_server, which applies _sprite_org_flags automatically. Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 --- cli/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands.ts b/cli/src/commands.ts index 62787b11..fbc0339f 100644 --- a/cli/src/commands.ts +++ b/cli/src/commands.ts @@ -1834,7 +1834,7 @@ function buildDeleteScript(cloud: string, connection: VMConnection): string { case "daytona": return `${sourceLib}\nensure_daytona_token\ndestroy_server "${id}"`; case "sprite": - return `${sourceLib}\nensure_sprite_installed\nsprite destroy "${id}"`; + return `${sourceLib}\nensure_sprite_installed\nensure_sprite_authenticated\ndestroy_server "${id}"`; default: return ""; }