fix(HAI-039): eliminate duplicate description in prompts and modal heading

- Fix prompt heading to use only task ID when title is absent, preventing description duplication
- Strip leading markdown heading from TaskDetailModal since the modal has its own header
- Add store tests covering prompt generation for tasks with and without titles
- Update TaskDetailModal tests to verify heading stripping and single description rendering
This commit is contained in:
Dustin Byrne
2026-03-25 22:58:09 -04:00
parent 3c868666ab
commit 397716f370
4 changed files with 86 additions and 8 deletions

View File

@@ -154,7 +154,7 @@ export function TaskDetailModal({
{task.prompt ? (
<div className="markdown-body">
<ReactMarkdown remarkPlugins={[remarkGfm]}>
{task.prompt}
{task.prompt.replace(/^#\s+[^\n]*\n+/, "")}
</ReactMarkdown>
</div>
) : (