Skip to content

Commit b4e0f57

Browse files
la14-1louisgvclaude
authored
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 <noreply@anthropic.com>
1 parent 3978ff6 commit b4e0f57

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/src/commands/delete.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ export async function cmdDelete(agentFilter?: string, cloudFilter?: string): Pro
231231
`${servers.length} active server${servers.length !== 1 ? "s" : ""} found, but none matched your filters.`,
232232
),
233233
);
234+
p.log.info(`Run ${pc.cyan("spawn delete")} without filters to see all servers.`);
235+
} else {
236+
p.log.info(`Run ${pc.cyan("spawn <agent> <cloud>")} to create a spawn first.`);
234237
}
235-
p.log.info(`Run ${pc.cyan("spawn <agent> <cloud>")} to create a spawn first.`);
236238
return;
237239
}
238240

0 commit comments

Comments
 (0)