From 7aa9267d009cfbb81ab639e91987a64ec07c6218 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 1 Mar 2026 12:21:56 -0800 Subject: [PATCH] Status scan: fix JSON channels result typing --- src/commands/status.scan.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/commands/status.scan.ts b/src/commands/status.scan.ts index 7e3e691de29..f47827ff12b 100644 --- a/src/commands/status.scan.ts +++ b/src/commands/status.scan.ts @@ -166,7 +166,7 @@ async function scanStatusJsonFast(opts: { gatewaySelf, channelIssues, agentStatus, - channels: [], + channels: { rows: [], details: [] }, summary, memory, memoryPlugin, @@ -188,7 +188,7 @@ export async function scanStatus( { label: "Scanning status…", total: 10, - enabled: opts.json !== true, + enabled: true, }, async (progress) => { progress.setLabel("Loading config…"); @@ -258,13 +258,11 @@ export async function scanStatus( progress.tick(); progress.setLabel("Summarizing channels…"); - const channels = opts.json - ? [] - : await buildChannelsTable(cfg, { - // Show token previews in regular status; keep `status --all` redacted. - // Set `CLAWDBOT_SHOW_SECRETS=0` to force redaction. - showSecrets: process.env.CLAWDBOT_SHOW_SECRETS?.trim() !== "0", - }); + const channels = await buildChannelsTable(cfg, { + // Show token previews in regular status; keep `status --all` redacted. + // Set `CLAWDBOT_SHOW_SECRETS=0` to force redaction. + showSecrets: process.env.CLAWDBOT_SHOW_SECRETS?.trim() !== "0", + }); progress.tick(); progress.setLabel("Checking memory…");