Give Recommendation lines their own bullet point in feedback report

Recommendation lines were rendered as continuation text within the same
bullet as their Issue, appearing without a bullet marker. Now lines
starting with "Recommendation:" are treated as new bullet groups so they
each get their own bullet point in the list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
michael 2026-02-25 13:16:52 -06:00
parent c8f473d9b7
commit a906b093d1

View file

@ -74,6 +74,9 @@ const formatFeedbackText = (text: string): React.ReactNode => {
if (bulletGroups.length === 0) {
// Haven't started bullets yet — it's intro text
introLines.push(trimmed);
} else if (/^\*{0,2}Recommendation:/.test(trimmed)) {
// Recommendation line gets its own bullet
bulletGroups.push([trimmed]);
} else {
// Continuation line within the current bullet
bulletGroups[bulletGroups.length - 1].push(trimmed);