Repository navigation
fix(ui): keep adjacent chat Markdown blocks on a consistent rhythm - #122289
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pre-merge review complete for
Ready for the native landing flow. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 6:54 PM ET / 22:54 UTC. ClawSweeper reviewWhat this changesThis PR replaces partial chat Markdown sibling spacing rules with one shared rule and adds browser assertions for four previously unspaced block transitions. Merge readinessNo actionable patch defect was found. Keep this maintainer-owned PR open for the native landing flow; a fresh structured autoreview still needs a host with TruffleHog available. Priority: P3 Review scores
Verification
How this fits togetherControl UI turns assistant Markdown into transcript HTML, then applies the chat text stylesheet before the browser renders it. This PR changes the shared styling boundary that controls spacing between adjacent rendered blocks. flowchart LR
A[Assistant Markdown] --> B[Chat transcript HTML]
B --> C[Chat text stylesheet]
C --> D[Adjacent block spacing]
D --> E[Rendered chat transcript]
F[Route CSS browser test] --> D
Decision needed
Why: The patch is correct on source review, but the protected maintainer label and unavailable local autoreview dependency require explicit maintainer handling. Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +46. Total +48 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared adjacent-block rule in the chat stylesheet and complete the native exact-head review gate before landing. Do we have a high-confidence way to reproduce the issue? Yes: current source omits the reported adjacent-block selector combinations, and the route CSS browser fixture directly measures the resulting gaps. Is this the best way to solve the issue? Yes: consolidating the spacing policy at the chat stylesheet owner is narrower and more maintainable than changing the Markdown parser or chat component. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3851849eead6. LabelsLabel changes:
Label 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
|
|
Merged via squash.
|
|
ClawSweeper follow-up reconciled after its late publication:
Therefore the sole Rank-up move and both native-review items were satisfied before landing. |
* origin/main: (1725 commits) fix(agents): preserve reply cleanup when cancellation throws (#122252) fix(ui): render disallowed link schemes as plain text (#122311) fix(test): isolate gateway helper env stubs (#122319) fix(ui): keep chat Markdown block rhythm consistent (#122289) test(cli): trim duplicate Hooks process cases (#122278) fix(ui): retain identity while agent roster loads fix(ui): preserve configured agent labels fix(plugins): keep startup convergence read-only (#122330) fix: preserve WebChat reply context after reloads (#122169) fix(ui): make DONE moves visibly reversible (#122303) fix(ui): keep inline-code punctuation attached (#122291) fix(google-meet): publish exports atomically (#122306) fix(channels): preserve failed agent run reactions (#122009) fix(ui): label patch file operations accurately (#122287) fix(windows): preserve Unicode LAN route aliases (#122263) test(media): synchronize transcode pool completion (#122279) fix(android): keep completed subagent activity visible for sixty seconds (#122089) fix(ui): humanize bare GitHub item links (#122285) refactor(qqbot): install plugin from Tencent package (#107295) chore: scope SQLite session lifecycle CI (#121917) ...
What Problem This Solves
Adjacent Markdown blocks in the Control UI chat transcript could touch when the preceding or following block was a list, blockquote, table, or native details block. The affected cases were list → blockquote, table → prose, task-list → details, and unordered-list → ordered-list.
Fixes #122269
Why This Change Was Made
The chat text stylesheet reset the relevant block margins and had a partial sibling-spacing rule. The missing combinations bypassed the existing
0.75emrhythm. This patch replaces that partial list with one canonical adjacent-block rule covering the Markdown block types used by the transcript, while preserving the intentional table card styling and nested blockquote behavior.The change is CSS-only in production. The existing route CSS E2E test gains focused browser assertions for all four gaps.
User Impact
Markdown-rich assistant responses are easier to scan: adjacent special blocks now have consistent separation in both light and dark themes.
Validation
origin/main:edb7a1692e58d78ff7e196db39ea8eff297b2e190.75emat the fixture's 16px root size.node scripts/run-vitest.mjs ui/src/e2e/route-css.e2e.test.ts— passed.ui/src/styles/chat/text.css— passed.Before / After
Light theme
Before:
After:
Dark theme
Before:
After: