From 3c9a0601fa63c05c0dc3a624d8f92049cd8bbeeb Mon Sep 17 00:00:00 2001 From: HAMZA BHULLA <138264542+hamzabhulla@users.noreply.github.com> Date: Sat, 24 Oct 2026 14:58:25 +0500 Subject: [PATCH] test(cli): cover archived agents with idle status --- packages/cli/src/commands/agent/ls.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/agent/ls.test.ts b/packages/cli/src/commands/agent/ls.test.ts index 2f15be82dc..499af90e74 100644 --- a/packages/cli/src/commands/agent/ls.test.ts +++ b/packages/cli/src/commands/agent/ls.test.ts @@ -9,7 +9,7 @@ function createPagingClient(archivedAgentNumber?: number) { id: `${n}${n}${n}${n}${n}${n}${n}${n}-0000-4000-8000-000000000000`, provider: "codex", title: `agent ${n}`, - status: "closed", + status: n === archivedAgentNumber ? "idle" : "closed", archivedAt: n === archivedAgentNumber ? "2026-10-10T00:00:00.000Z" : null, cwd: "/tmp/project", createdAt: `2026-10-0${n}T00:00:00.000Z`, @@ -150,6 +150,7 @@ describe("runLsCommand", () => { if (!archivedColumn || typeof archivedColumn.field !== "function") { throw new Error("Expected the ARCHIVED column to have a display accessor"); } + expect(result.data[1]!.status).toBe("idle"); expect(archivedColumn.field(result.data[1]!)).toBe("yes"); expect(archivedColumn.field(result.data[0]!)).toBe("-"); });