From a7e065cd4f39abda178af58127ead1ab502e0f3b Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Tue, 27 Oct 2026 14:25:44 +0200 Subject: pi: no footer line for the importance it took a line of its own in pi's footer. pi says the level when it is set, and /importance alone shows it; pi clears the old line at /reload. --- crates/dinggerd/assets/pi/pi-agent-state.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/dinggerd') diff --git a/crates/dinggerd/assets/pi/pi-agent-state.ts b/crates/dinggerd/assets/pi/pi-agent-state.ts index 0719265..fd13b55 100644 --- a/crates/dinggerd/assets/pi/pi-agent-state.ts +++ b/crates/dinggerd/assets/pi/pi-agent-state.ts @@ -194,8 +194,8 @@ export default function (pi) { publishState(); }); - function showImportance(ctx: any) { - ctx?.ui?.setStatus?.("dingger-importance", importance === "normal" ? undefined : `importance: ${importance}`); + // No footer status: it would take a line of its own in pi. + function announceImportance() { pi.events.emit("dingger:importance", { level: importance }); } @@ -221,7 +221,7 @@ export default function (pi) { if (wanted !== importance) { importance = wanted as Importance; pi.appendEntry(importanceEntry, { level: importance }); - showImportance(ctx); + announceImportance(); // Without a state: the state stays as last reported. if (enabled()) { void report(undefined); @@ -263,7 +263,7 @@ export default function (pi) { updateSessionFile(ctx); // Each session has its own: /new starts at normal, /resume brings its own back. importance = savedImportance(ctx); - showImportance(ctx); + announceImportance(); publishState(true); }); -- cgit v1.2.3