Repository navigation
fix: show named characters in exported session messages - #205362
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR renders named character references in exported Markdown while preserving literal spelling in code and typed URLs. Example: Export a message containing © ©
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current export-rendering bug, resolves the earlier autolink finding, and introduces no further actionable code defects found in this review. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe export command embeds transcript data, browser dependencies, and the viewer template into standalone HTML; the browser renders message cards through Marked and the existing custom renderers. flowchart LR
A[Session transcript] --> B[Export command]
B --> C[Standalone HTML]
C --> D[Marked and custom renderers]
D --> E[Browser message cards]
Technical reviewBest possible solution: Keep this focused repair in the existing renderers, using Marked for ordinary text while preserving literal raw-block text, code, and autolinks. Do we have a high-confidence way to reproduce the issue? Current-main leaf escaping and the pinned Marked contract establish the © rendering failure; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: it reuses Marked's text rendering, retains the raw-block exception, and now preserves the distinct autolink contract without new machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7d2b9c37cbd3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +25. Total +25 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 25, 2026, 9:30 AM ET / 14:30 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…irement-rule * origin/main: (172 commits) test(gateway): expect a revoked person's Goal retry to be hidden as not found (#205698) fix: keep browser disabled when only hardening relay authentication (#203137) fix: recover Linux stream automations after command-anchor crashes (#203149) fix(whatsapp): identify voice-note captions as text in delivery receipts (#205381) fix(test): unblock restart-auth plugin and worker publication qualification (#205679) chore(ui): refresh control ui locales (#205691) fix: reduce memory during SQLite usage refresh (#201064) fix(plugins): readmit native captures with a dangling host link chore(i18n): refresh native locales (#205680) fix(update): hash SQLite lock bytes as zeros so Windows exclusion cannot fail verification (#205668) fix(skill-workshop): skip the skill diet for skills with Markdown outside support directories (#204881) fix(plugins): clarify dated SDK migration notices (#200932) fix: keep the resident launcher when reinstalling Gateway (#205655) fix: show the whole reply when you reopen a TUI session (#200455) test(ui): wait for restored speech player authorization (#199502) feat: let agents post approved GitHub comments (#204301) fix(agents): honor imageMaxDimensionPx at the provider and CLI image handoffs (#205663) chore(ui): refresh control ui locales (#205664) fix(google): preserve playback when Google Live splits audio into parts (#205364) fix: show named characters in exported session messages (#205362) ...
) * fix: show named characters in exported session messages * fix: preserve typed URL labels in exported chats Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
In a standalone HTML session export, a message containing
©showed that spelling in the conversation card. The same thing happened inside emphasis. Both should display ©.User Impact
User and assistant messages now display named characters in ordinary Markdown. Inline code and typed URLs keep the original spelling. The embedded transcript retains the original message.
Why This Change Was Made
The export viewer was escaping ordinary text a second time before the browser displayed it. It now delegates ordinary text and nested inline formatting to the bundled Marked renderer. The link renderer uses Marked’s autolink flag to display a typed address literally. Explicit link labels still support inline Markdown, and raw HTML and code retain their existing handling.
Evidence
/export-sessiontranscript before and after the change. Across 22 cards per revision, paragraph and emphasized text displayed © on the fix, and inline code displayed©. Numeric references, literal HTML, HTTPS link markup and archived message content matched their controls.<https://example.test/©>, the visible link text and destination both retained©. The embedded transcript was byte-identical on the frozen source, the previous draft head, and this repair.