From b4e0f575d3c816b033d8344dc59622e4473e5399 Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Tue, 10 Mar 2026 13:01:01 -0700 Subject: [PATCH] fix: show correct hint when spawn delete filter matches nothing (#2456) The 'create a spawn first' message was shown even when active servers existed but none matched the filter. Now shows 'Run spawn delete without filters to see all servers.' for the unmatched-filter case and reserves the create hint for when no servers exist at all. Fixes #2454 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 --- packages/cli/src/commands/delete.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/delete.ts b/packages/cli/src/commands/delete.ts index e166ca65..67dbe907 100644 --- a/packages/cli/src/commands/delete.ts +++ b/packages/cli/src/commands/delete.ts @@ -231,8 +231,10 @@ export async function cmdDelete(agentFilter?: string, cloudFilter?: string): Pro `${servers.length} active server${servers.length !== 1 ? "s" : ""} found, but none matched your filters.`, ), ); + p.log.info(`Run ${pc.cyan("spawn delete")} without filters to see all servers.`); + } else { + p.log.info(`Run ${pc.cyan("spawn ")} to create a spawn first.`); } - p.log.info(`Run ${pc.cyan("spawn ")} to create a spawn first.`); return; }