Repository navigation
fix(web): render right-aligned Markdown correctly - #135
Conversation
f79dfd4 to
4d833d9
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4d833d93aa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: found issues before merge. Reviewed August 2, 2026, 3:04 AM ET / 07:04 UTC. ClawSweeper reviewWhat this changesThe PR keeps Markdown list markers and blockquote rails beside text in non-outlined right-aligned web-chat messages, adds browser geometry coverage, and regenerates embedded web assets. Merge readinessThis PR is still necessary: current Priority: P2 Review scores
Verification
How this fits togetherThe web chat stores separate alignment preferences for the local user and other participants, then applies them as document attributes that control message-bubble CSS. Markdown is rendered inside those bubbles, so list and blockquote layout must follow the selected message side without changing outlined-message behavior. flowchart LR
A[Alignment preferences] --> B[Document alignment attributes]
B --> C[Message bubble layout]
C --> D[Markdown renderer]
D --> E[List and blockquote CSS]
E --> F[Right-aligned chat message]
G[Browser geometry regression] --> E
Decision needed
Why: The implementation fixes the observable left-side mismatch, but it deliberately changes the presentation of existing right-aligned content; only maintainers can confirm that this is the intended compatibility contract. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Mantis proof suggestionA short before-and-after web-chat transcript or screenshot sequence would provide independent visual confirmation of the compatibility decision for right-aligned Markdown. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm the non-outlined right-aligned Markdown contract, remove the release-owned changelog entry, and merge the CSS, browser regression, and matching generated web assets if the new visual behavior is accepted. Do we have a high-confidence way to reproduce the issue? Yes. Current Is this the best way to solve the issue? Yes, conditionally. The scoped non-outlined CSS plus a browser geometry regression is the narrowest maintainable repair, provided maintainers approve the intentional visual compatibility change and remove the unrelated release-owned changelog edit. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d6ab40057386. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (29 earlier review cycles; latest 8 shown)
|
What changed
Why
Right-aligned messages applied
text-align: rightto the Markdown container but left native list and blockquote structure unchanged. Nativeoutsidelist markers therefore stayed at the far left of the message while the list text moved right, as shown in the reported screenshot.The fix uses inside list markers for the standard right-aligned layout, preserves nested list hierarchy, keeps loose-list markers attached to their first paragraph, and mirrors blockquote structure. Outlined message layout is excluded so its existing start-aligned Markdown behavior remains unchanged.
Browser proof
The proof run used a rebuilt local ClickClack server and generated right-aligned Markdown containing nested unordered and ordered lists, a loose list with multiple paragraphs, and a blockquote. Browser-observed geometry showed:
The screenshot above is attached directly to this PR description; the proof image is not part of the feature branch.
right0pxon both sides22pxinline3pxon the right and0pxon the left12pxon the right and0pxon the leftValidation
pnpm exec oxfmt --check apps/web/src/styles/messages.css tests/e2e/chat.spec.tspnpm exec oxlint apps/web/src tests/e2e/chat.spec.tspnpm typecheckpnpm --filter @clickclack/web testgit diff --checkThe focused standalone Playwright test could not launch because the local Chromium executable is not installed in the Playwright cache.