Skip to content

fix(knowledge): page prose and claims render too light on macOS - #197479

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/smooth-knowledge-pages
Nov 12, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/smooth-knowledge-pages

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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-page repeated that declaration for the whole page. This removes the redundant page-wide declaration and sets auto smoothing only on the reading text (.knowledge-markdown page prose and .knowledge-claim-copy claims), 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 read record_detail since #196767, so a record page never finished loading against it. The fixture now answers record_detail so record-page verification can reach the loaded view.

Evidence

  • 22 retained focused tests passed after cleanup. Removed the new font-value-only E2E and its allocation. Existing Knowledge control, claim-card and Markdown-link tests remain; the benchmark fixture RPC correction is preserved.
  • Formatting, whitespace and pre-commit checks passed. Current-head CI and security checks passed.
  • Production remains byte-identical to the approved macOS captures below. The original production review remains applicable; no runtime behavior, dimensions or stored settings changed.

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

Before After
Dark Knowledge Claims before Dark Knowledge Claims after

Full context: before · after. Crops come from these same frames.

Dark Knowledge Page

Before After
Dark Knowledge Page before Dark Knowledge Page after

Full context: before · after. Crops come from these same frames.

Light Knowledge Claims

Before After
Light Knowledge Claims before Light Knowledge Claims after

Full context: before · after. Crops come from these same frames.

Light Knowledge Page

Before After
Light Knowledge Page before Light Knowledge Page after

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

roboclaw-bot and others added 2 commits November 12, 2026 02:33
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
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts plugin: knowledge labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Reading text inherits antialiased smoothing, producing lighter strokes.
  • After: Reading text uses auto smoothing while the Knowledge header retains antialiased smoothing.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and source-consistent, but supplied visual evidence does not cover the changed Knowledge surfaces.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Knowledge prose and claims appear too light on macOS.
Reason: The maintainer-authored direction matches the merged chat readability repair and confines the behavior change to the plugin's reading surfaces.

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
Reviewed head: 5dca06a821ca2c8fe2308f5ba514890541d68c4b

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide macOS before/after screenshots of the actual Knowledge Recent claims and record prose; the reported red/green computed-style test does not demonstrate their visual weight.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Knowledge font smoothing changes intended behavior with a stated reason (65ad180: The bundling PR imported Knowledge's host-token-based stylesheet; it records no specific requirement for page-wide antialiasing.)
  • Knowledge browser fixture operation keeps the original intent (fe5dc44: The benchmark fixture provided record reads for real plugin renderers; the subsequent UI operation rename made its record handler stale.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit 65ad180 adds extensions/knowledge/src/control-ui.css:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 65ad18005286; files: extensions/knowledge/src/control-ui.css)
  • RoboClaw: Raw commit c37e389 adds extensions/knowledge/src/control-ui.css:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c37e3897be60; files: extensions/knowledge/src/control-ui.css)

PR surface

Source +5, Tests +51, Other +2. Total +58 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 6 1 +5
Tests 1 51 0 +51
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 1 +2
Total 4 60 2 +58

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a narrowly scoped macOS readability improvement without blocked navigation, lost data, or a broken core workflow.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add macOS before/after captures showing Knowledge claims and prose with unchanged surrounding chrome.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 9:49 PM ET / November 12, 2026, 02:49 UTC.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed app: web-ui App: web-ui size: S labels Nov 12, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit d6e445f into main Nov 12, 2026
125 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/smooth-knowledge-pages branch November 12, 2026 07:32
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: knowledge rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants