Skip to content

feat: add markdown rendering and fix synthesis repetition#8

Merged
bjeans merged 2 commits intomainfrom
claude/markdown-rendering-synthesis-fix-rnH4p
Dec 18, 2025
Merged

feat: add markdown rendering and fix synthesis repetition#8
bjeans merged 2 commits intomainfrom
claude/markdown-rendering-synthesis-fix-rnH4p

Conversation

@bjeans
Copy link
Copy Markdown
Owner

@bjeans bjeans commented Dec 18, 2025

  • Add react-markdown library to frontend for proper markdown rendering
  • Update CouncilMemberCard to render model responses as markdown
  • Update SynthesisPanel to render consensus, debates, and synthesis as markdown
  • Fix backend synthesis parsing to extract only SYNTHESIS section text
  • Remove repetition of consensus/debates in chairman's synthesis display
  • Preserve markdown formatting in all council member responses

This improves the UI by properly formatting model responses that include
markdown (lists, bold, code blocks, etc.) and eliminates the redundancy
where the synthesis section was displaying consensus and debates twice.

- Add react-markdown library to frontend for proper markdown rendering
- Update CouncilMemberCard to render model responses as markdown
- Update SynthesisPanel to render consensus, debates, and synthesis as markdown
- Fix backend synthesis parsing to extract only SYNTHESIS section text
- Remove repetition of consensus/debates in chairman's synthesis display
- Preserve markdown formatting in all council member responses

This improves the UI by properly formatting model responses that include
markdown (lists, bold, code blocks, etc.) and eliminates the redundancy
where the synthesis section was displaying consensus and debates twice.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 18, 2025

🔍 Vulnerabilities of bjeans/multi-ai-chat:pr-8

📦 Image Reference bjeans/multi-ai-chat:pr-8
digestsha256:13a706cc22dee7424691038d2b16e7f463a92e6b52f6d89beacfb1e9645b55b4
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0
size48 MB
packages74
📦 Base Image python:3-alpine
also known as
  • 3.14-alpine3.23
  • 3.14.2-alpine
  • 3.14.2-alpine3.23
  • 809ce71ca47273538dfc34c84273512111ef0b4c89f7ab57d562af1e811dfdcd
  • alpine
  • alpine3.23
digestsha256:446aab684f155302457b9d13d6d9ede16ea6a987232a0ffe05237acb233500b7
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds markdown rendering support to the frontend and fixes synthesis repetition by extracting only the SYNTHESIS section text in the backend. The changes improve UI formatting for model responses that include markdown elements while eliminating redundant display of consensus and debates in the chairman's synthesis.

Key Changes:

  • Added react-markdown library (v10.1.0) for proper markdown rendering
  • Updated frontend components to render all text content as markdown with appropriate styling
  • Modified backend parsing to extract and return only the SYNTHESIS section text, not the full response

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/src/components/SynthesisPanel.jsx Wrapped consensus items, debate topics/positions, and synthesis text in ReactMarkdown components with prose styling
frontend/src/components/CouncilMemberCard.jsx Wrapped model response text in ReactMarkdown component with prose styling
frontend/package.json Added react-markdown v10.1.0 dependency
frontend/package-lock.json Lockfile updated with react-markdown and its transitive dependencies
backend/services/synthesis.py Updated parsing logic to extract only SYNTHESIS section, renamed variables for clarity, and return synthesis-only text instead of full response
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/services/synthesis.py Outdated
…rmatting

Remove the line_stripped check when collecting synthesis section lines
to ensure blank lines are preserved. This is critical for markdown
paragraph separation in the chairman's synthesis output.

Addresses Copilot review suggestion.
@bjeans bjeans merged commit 152a2d6 into main Dec 18, 2025
2 checks passed
@bjeans bjeans deleted the claude/markdown-rendering-synthesis-fix-rnH4p branch December 18, 2025 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants