Repository navigation
fix(knowledge): page prose and claims render too light on macOS - #197479
Conversation
Knowledge pages forced antialiased font smoothing on the whole page, which disables macOS stem darkening for long-form reading text. Page prose and claim text now use auto smoothing; Knowledge controls keep the app's antialiased chrome. The plugin-view benchmark Knowledge fixture now answers record_detail, the operation the record page reads since #196767, so the new e2e can open a page. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9356479c-aae4-4ebf-ab82-9d479b40f44c
|
🦞👀 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 restores automatic font smoothing for Knowledge prose and claims and repairs the browser fixture used to verify it. Example: Read Knowledge record page-0 and Recent-feed claims in Chrome on macOS.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is maintainer-authored and provides a focused, useful readability fix that current main still needs; no introduced correctness defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Knowledge plugin renders records and claims inside the Control UI; its stylesheet combines host typography defaults with reading-specific overrides. flowchart TD
A[Knowledge records and claims] --> B[Knowledge renderers]
B --> C[Control UI document]
D[Host body styles] --> C
E[Knowledge reading styles] --> C
C --> F[macOS browser text]
Technical reviewBest possible solution: Keep the focused stylesheet fix and existing fixture repair, with Knowledge-specific rendering evidence before landing. Do we have a high-confidence way to reproduce the issue? Source confirms that Knowledge reading text inherits antialiased smoothing on main; the PR reports a failing-before, passing-after browser assertion, but this review ran no target code. Is this the best way to solve the issue? The existing Knowledge stylesheet is the correct owner: reading text should use automatic smoothing while surrounding chrome inherits the host default, and the small fixture repair enables the regression without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4092d358a35a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +51, Other +2. Total +58 across 4 files. Added test files: 1. 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:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed November 11, 2026, 9:49 PM ET / November 12, 2026, 02:49 UTC. |
|
Merged via squash.
|
…claw#197479) * fix(knowledge): page prose and claims render too light on macOS Knowledge pages forced antialiased font smoothing on the whole page, which disables macOS stem darkening for long-form reading text. Page prose and claim text now use auto smoothing; Knowledge controls keep the app's antialiased chrome. The plugin-view benchmark Knowledge fixture now answers record_detail, the operation the record page reads since openclaw#196767, so the new e2e can open a page. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(knowledge): page prose and claims render too light on macOS Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9356479c-aae4-4ebf-ab82-9d479b40f44c * test(ui): retain behavior coverage for reading fonts --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Related: #197458
What Problem This Solves
Fixes: Knowledge page prose and claim text render too light on macOS, because the Knowledge page forced antialiased font smoothing on the whole page.
User Impact
User impact: on macOS, Knowledge page notes and claims render with normal text weight again. Knowledge controls and the rest of the app keep their current antialiased look.
Why This Change Was Made
The Control UI body sets antialiased smoothing for app chrome, which turns off macOS stem darkening.
.knowledge-pagerepeated that declaration for the whole page. This removes the redundant page-wide declaration and setsautosmoothing only on the reading text (.knowledge-markdownpage prose and.knowledge-claim-copyclaims), matching what #197458 does for chat message prose. The change stays inside the Knowledge plugin stylesheet.The plugin-view benchmark Knowledge fixture answered
record, but the record page has readrecord_detailsince #196767, so a record page never finished loading against it. The fixture now answersrecord_detailso record-page verification can reach the loaded view.Evidence
macOS before/after
Captured on macOS 27.0.1 in headful Chrome 157.0.8103.39 at device scale 2, using the actual Knowledge plugin renderer and application styles in an isolated component fixture with synthetic workspace records. Both the claims feed and a Markdown page are shown in Claw light and dark. Content, fonts, and element bounds match between each pair. The record_detail fixture correction is retained in both states; only the production font-smoothing CSS differs. This is a rendering comparison, not an end-to-end Gateway test.
Before: the pinned PR source with only this PR’s production CSS changes reversed on disk. After: published head
5dca06a821ca2c8fe2308f5ba514890541d68c4b. The same synthetic content and layout are used in each pair; no runtime CSS override or image recompression. The screenshots show local browser rendering, not a live Gateway deployment.Dark Knowledge Claims
Full context: before · after. Crops come from these same frames.
Dark Knowledge Page
Full context: before · after. Crops come from these same frames.
Light Knowledge Claims
Full context: before · after. Crops come from these same frames.
Light Knowledge Page
Full context: before · after. Crops come from these same frames.
Reported by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by