fix(status): show token previews

This commit is contained in:
Peter Steinberger
2026-01-11 01:11:46 +01:00
parent 57dafec0ec
commit 318f59ec3e
5 changed files with 60 additions and 8 deletions

View File

@@ -578,7 +578,11 @@ export async function statusCommand(
progress.tick();
progress.setLabel("Summarizing providers…");
const providers = await buildProvidersTable(cfg);
const providers = await buildProvidersTable(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("Reading sessions…");