mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:48:24 +01:00
Dispatches can capture the fully-assembled prompt — context tiers plus harness envelopes — so activity feeds rendered noise like "<task-notification><task-id>…" as the title of every run. promptDisplayBody now runs a pure sanitizer that drops <task-notification>/<system-reminder>/<command-*> blocks and stray harness tags, falling through to the next source (resolved prompt → intent label) when a value is all scaffolding. It only rewrites when a harness tag is actually present, so clean prompts — and their whitespace — pass through verbatim. Fixes the titles on both the /control Activity panel and the project-profile feed (PR #7). Pure function, covered by 3 new prompt-history test cases (now 7/7). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>