mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
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>
This commit is contained in:
parent
3978ff6d4d
commit
b4e0f575d3
1 changed files with 3 additions and 1 deletions
|
|
@ -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 <agent> <cloud>")} to create a spawn first.`);
|
||||
}
|
||||
p.log.info(`Run ${pc.cyan("spawn <agent> <cloud>")} to create a spawn first.`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue