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("Runtime: direct");
expect(normalized).toContain("Think: medium");
expect(normalized).toContain("Verbose: off");
expect(normalized).toContain("Elevated: on");
expect(normalized).not.toContain("verbose");
expect(normalized).toContain("elevated");
expect(normalized).toContain("Queue: collect");
});
@@ -82,12 +82,12 @@ describe("buildStatusMessage", () => {
sessionScope: "per-sender",
resolvedThink: "low",
resolvedVerbose: "on",
resolvedElevated: "on",
queue: { mode: "collect", depth: 0 },
});
resolvedElevated: "on",
queue: { mode: "collect", depth: 0 },
});
expect(text).toContain("Verbose: on");
expect(text).toContain("Elevated: on");
expect(text).toContain("verbose");
expect(text).toContain("elevated");
});
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 queueDetails = formatQueueDetails(args.queue);
const verboseLabel = verboseLevel === "on" ? "verbose" : null;
const elevatedLabel = elevatedLevel === "on" ? "elevated" : null;
const optionParts = [
`Runtime: ${runtime.label}`,
`Think: ${thinkLevel}`,
`Verbose: ${verboseLevel}`,
verboseLabel,
reasoningLevel !== "off" ? `Reasoning: ${reasoningLevel}` : null,
`Elevated: ${elevatedLevel}`,
elevatedLabel,
];
const optionsLine = optionParts.filter(Boolean).join(" · ");
const activationParts = [