From 22653c0e27778382e42df32f1b168f56f5f2370b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 1 Mar 2026 11:59:26 -0800 Subject: [PATCH] Status scan: skip channel table work in JSON mode --- src/commands/status.scan.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/commands/status.scan.ts b/src/commands/status.scan.ts index 2321843445d..0456c26345c 100644 --- a/src/commands/status.scan.ts +++ b/src/commands/status.scan.ts @@ -141,11 +141,13 @@ export async function scanStatus( progress.tick(); progress.setLabel("Summarizing channels…"); - 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", - }); + 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", + }); progress.tick(); progress.setLabel("Checking memory…");