fix(console): render thinking traces as markdown - #847
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdates the ChangesChat thinking-markdown rendering updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
6f814d9 to
1b800e1
Compare
|
Looks good - probably could relabel it to just "thinking". Dont need to mention trace as extra jargon in gui? |
Original problem
Thinking trace content in the React chat UI rendered as pre-wrapped plain text, so markdown markers like
**bold**, ordered steps, nested bullets, inline code, and emphasis appeared raw inside reasoning traces. Final assistant responses already rendered through markdown, so the trace panel looked inconsistent and harder to scan.Diagnostics
The issue was isolated to
MessageRow.tsx: normal assistant segments usedAssistantMarkdown, while thinking segments used a rawspanwithwhitespace-pre-wrap.Screenshot of the fixed thinking trace:
Fix
No protocol or compatibility impact; this is UI-only rendering behavior.
Validation
pnpm prettier --check src/features/chat/components/MessageRow.tsx src/features/chat/components/MessageRow.test.tsxpnpm vitest run src/features/chat/components/MessageRow.test.tsxjust buildstrong,code,em,ol, andulnodes, with no raw**visible.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes