Skip to content

Commit 5db9cc2

Browse files
la14-1louisgvclaude
authored
fix: show history table directly when no active servers found in spawn list (#2451)
Instead of telling users to pipe through `spawn list | cat` to view their spawn history, render the history table inline when no active connections exist. The | cat workaround was needed because non-interactive mode skips the picker; now interactive mode falls through to renderListTable directly, consistent with what `spawn list | cat` was already doing. Agent: ux-engineer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c77ca10 commit 5db9cc2

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/spawn",
3-
"version": "0.15.39",
3+
"version": "0.15.40",
44
"type": "module",
55
"bin": {
66
"spawn": "cli.js"

packages/cli/src/commands/list.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,9 @@ export async function cmdList(agentFilter?: string, cloudFilter?: string): Promi
499499
if (filtered.length === 0) {
500500
const historyRecords = filterHistory(agentFilter, cloudFilter);
501501
if (historyRecords.length > 0) {
502-
p.log.info("No active servers found.");
503-
p.log.info(
504-
pc.dim(
505-
`${historyRecords.length} spawn${historyRecords.length !== 1 ? "s" : ""} in history but without active connections.`,
506-
),
507-
);
508-
p.log.info(
509-
`Re-launch with ${pc.cyan("spawn <agent> <cloud>")} or view full history with ${pc.cyan("spawn list | cat")}`,
510-
);
502+
p.log.info("No active servers found. Showing spawn history:");
503+
renderListTable(historyRecords, manifest);
504+
showListFooter(historyRecords, agentFilter, cloudFilter);
511505
} else {
512506
await showEmptyListMessage(agentFilter, cloudFilter);
513507
}

0 commit comments

Comments
 (0)