Files
loki/scripts/test
GandClaude Opus 4.8 0780f4d99c fix(activity): strip harness scaffolding from prompt display titles (#10)
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>
2026-06-19 11:30:34 +02:00
..