chore(status): clarify bootstrap file semantics

This commit is contained in:
HeMuling
2026-02-23 14:42:31 +08:00
committed by Peter Steinberger
parent c3b3065cc9
commit d0e008d460
5 changed files with 82 additions and 7 deletions

View File

@@ -265,8 +265,8 @@ export async function statusCommand(
const agentsValue = (() => {
const pending =
agentStatus.bootstrapPendingCount > 0
? `${agentStatus.bootstrapPendingCount} bootstrapping`
: "no bootstraps";
? `${agentStatus.bootstrapPendingCount} bootstrap file${agentStatus.bootstrapPendingCount === 1 ? "" : "s"} present`
: "no bootstrap files";
const def = agentStatus.agents.find((a) => a.id === agentStatus.defaultId);
const defActive = def?.lastActiveAgeMs != null ? formatTimeAgo(def.lastActiveAgeMs) : "unknown";
const defSuffix = def ? ` · default ${def.id} active ${defActive}` : "";