fix: simplify verbose/elevated status labels

This commit is contained in:
Peter Steinberger
2026-01-09 23:41:52 +00:00
parent eea686c81e
commit e18080163f
2 changed files with 11 additions and 9 deletions

View File

@@ -69,8 +69,8 @@ describe("buildStatusMessage", () => {
expect(normalized).toContain("updated 10m ago"); expect(normalized).toContain("updated 10m ago");
expect(normalized).toContain("Runtime: direct"); expect(normalized).toContain("Runtime: direct");
expect(normalized).toContain("Think: medium"); expect(normalized).toContain("Think: medium");
expect(normalized).toContain("Verbose: off"); expect(normalized).not.toContain("verbose");
expect(normalized).toContain("Elevated: on"); expect(normalized).toContain("elevated");
expect(normalized).toContain("Queue: collect"); expect(normalized).toContain("Queue: collect");
}); });
@@ -82,12 +82,12 @@ describe("buildStatusMessage", () => {
sessionScope: "per-sender", sessionScope: "per-sender",
resolvedThink: "low", resolvedThink: "low",
resolvedVerbose: "on", resolvedVerbose: "on",
resolvedElevated: "on", resolvedElevated: "on",
queue: { mode: "collect", depth: 0 }, queue: { mode: "collect", depth: 0 },
}); });
expect(text).toContain("Verbose: on"); expect(text).toContain("verbose");
expect(text).toContain("Elevated: on"); expect(text).toContain("elevated");
}); });
it("prefers model overrides over last-run model", () => { it("prefers model overrides over last-run model", () => {

View File

@@ -288,12 +288,14 @@ export function buildStatusMessage(args: StatusArgs): string {
const queueMode = args.queue?.mode ?? "unknown"; const queueMode = args.queue?.mode ?? "unknown";
const queueDetails = formatQueueDetails(args.queue); const queueDetails = formatQueueDetails(args.queue);
const verboseLabel = verboseLevel === "on" ? "verbose" : null;
const elevatedLabel = elevatedLevel === "on" ? "elevated" : null;
const optionParts = [ const optionParts = [
`Runtime: ${runtime.label}`, `Runtime: ${runtime.label}`,
`Think: ${thinkLevel}`, `Think: ${thinkLevel}`,
`Verbose: ${verboseLevel}`, verboseLabel,
reasoningLevel !== "off" ? `Reasoning: ${reasoningLevel}` : null, reasoningLevel !== "off" ? `Reasoning: ${reasoningLevel}` : null,
`Elevated: ${elevatedLevel}`, elevatedLabel,
]; ];
const optionsLine = optionParts.filter(Boolean).join(" · "); const optionsLine = optionParts.filter(Boolean).join(" · ");
const activationParts = [ const activationParts = [