From a6e6b500fcb9db605f70265c6640d6f64c7d6a86 Mon Sep 17 00:00:00 2001 From: HAMZA BHULLA <138264542+hamzabhulla@users.noreply.github.com> Date: Sat, 24 Oct 2026 13:26:06 +0500 Subject: [PATCH] fix(cli): mark archived agents in list output --- packages/cli/src/commands/agent/ls.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/cli/src/commands/agent/ls.ts b/packages/cli/src/commands/agent/ls.ts index e0b6358a38..60c6686ac0 100644 --- a/packages/cli/src/commands/agent/ls.ts +++ b/packages/cli/src/commands/agent/ls.ts @@ -33,6 +33,8 @@ export interface AgentListItem { provider: string; thinking: string; status: string; + archived: boolean; + archivedAt: string | null; cwd: string; created: string; } @@ -84,6 +86,11 @@ export const agentLsSchema: OutputSchema = { return undefined; }, }, + { + header: "ARCHIVED", + field: (item) => (item.archived ? "yes" : "-"), + width: 8, + }, { header: "CWD", field: "cwd", width: 30 }, { header: "CREATED", field: "created", width: 15 }, ], @@ -99,6 +106,8 @@ function toListItem(agent: AgentSnapshotPayload): AgentListItem { provider: model ? `${agent.provider}/${model}` : agent.provider, thinking: agent.effectiveThinkingOptionId ?? "auto", status: agent.status, + archived: agent.archivedAt != null, + archivedAt: agent.archivedAt ?? null, cwd: shortenPath(agent.cwd), created: relativeTime(agent.createdAt), };