diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-27 14:25:44 +0200 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-27 14:25:44 +0200 |
| commit | a7e065cd4f39abda178af58127ead1ab502e0f3b (patch) | |
| tree | 0f74bd4dcbe8482e780dd38845af856da38f50b9 /crates | |
| parent | 7455ddfcf6158ec1304d1188a9530f7973e845d5 (diff) | |
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.
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/dinggerd/assets/pi/pi-agent-state.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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); }); |
