Repository navigation
refactor(chat): share math label configuration - #148073
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 4:12 AM ET / 08:12 UTC. ClawSweeper reviewWhat this changesShare native chat’s math-label styling setup between macOS and iOS while preserving platform-specific sizing and LaTeX updates. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, behavior-preserving cleanup that current main has not adopted. No actionable correctness or security defect was found, and the maintainer-authored PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s native chat renderer sends completed math blocks, font size, and text color to SwiftMath labels. The platform adapters configure those labels for display in macOS and iOS conversations. flowchart TD
A[Chat Markdown] --> B{Complete valid math?}
B -->|No| C[Code fallback]
B -->|Yes| D[Native platform adapter]
E[Font size and text color] --> D
D --> F[Shared label configuration]
F --> G[Rendered math in chat]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther -5. Total -5 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one private configuration helper for both native adapters while retaining their existing sizing and rendering contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a refactor and reports no broken user behavior; source inspection supports equivalent configuration on both platforms. Is this the best way to solve the issue? Yes: the existing helper and SwiftMath’s verified platform color alias remove duplication without introducing another abstraction or changing update ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 47060d1cef27. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit 'a08cdc50bc049074ed7ad2db9e18e0ed3f5415ec': (81 commits) perf: reuse stateless plugin scope defaults (#148080) fix(gateway): flush slow-consumer 1008 close frame before terminating socket (#147707) fix: keep model catalogs loading during other session updates (#147878) fix: show queued external chat messages and their source (#147848) refactor(chat): share math label configuration (#148073) perf(ui): trim eager debug overlay icon payload (#147954) improve(logbook): sample batch frame metadata in SQLite (#147999) fix(ui): dismiss suggested task cards without waiting (#148021) fix(maturity): cover governance, interoperability, fleet, and state (#143528) chore(ui): restore core lint and startup budget checks (#148010) fix: chat startup loads unnecessary session setup text (#147973) perf: speed up fresh cloud worker activation (#147945) fix: recover PR preparation after committed merge conflicts (#148063) test(plugins): isolate ClawHub Docker fixture identity (#148074) fix(release): acknowledge ClawHub risk on moving installs (#148041) fix: restore context reads for installed official Discord and Slack plugins (#143341) fix: identify source capsule filesystem failures (#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (#146049) refactor(infra): consolidate update campaign reset ownership (#146555) refactor: simplify Gateway health response parsing (#147834) ...
* commit '7d485aa2e89af7fdbd09e8ed0489b06d250b07e3': test(scripts): check the configurable ClawHub sweep spec fix: show queued external chat messages and their source (openclaw#147848) refactor(chat): share math label configuration (openclaw#148073) perf(ui): trim eager debug overlay icon payload (openclaw#147954) improve(logbook): sample batch frame metadata in SQLite (openclaw#147999) fix(ui): dismiss suggested task cards without waiting (openclaw#148021) fix(maturity): cover governance, interoperability, fleet, and state (openclaw#143528) chore(ui): restore core lint and startup budget checks (openclaw#148010) fix: chat startup loads unnecessary session setup text (openclaw#147973) perf: speed up fresh cloud worker activation (openclaw#147945) fix: recover PR preparation after committed merge conflicts (openclaw#148063) test(plugins): isolate ClawHub Docker fixture identity (openclaw#148074) fix(release): acknowledge ClawHub risk on moving installs (openclaw#148041) fix: restore context reads for installed official Discord and Slack plugins (openclaw#143341) fix: identify source capsule filesystem failures (openclaw#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (openclaw#146049) refactor(infra): consolidate update campaign reset ownership (openclaw#146555) refactor: simplify Gateway health response parsing (openclaw#147834)
What Problem This Solves
Keep chat math-label configuration consistent across macOS and iOS without maintaining duplicate setup.
User Impact
No user-visible behavior change. Math styling, parsing, fallback behavior, accessibility, and platform-specific sizing remain unchanged.
Why This Change Was Made
Both platform update methods use the existing configuration routine through a shared private method and SwiftMath's platform color alias. Presentation updates still occur before the unchanged-LaTeX check; macOS fitting-size handling is untouched.
Evidence
bf650a8025ec18244a712077c599fd3773a5dbac, with matching relevant baseline inputs, not the task's base commit.2595e8528c2cb62ea23483205d88aeec8f617902contains PR head70a46a366a700ad975b91eb44566e956ea5354e0; its owner and test blobs match the reviewed candidate. The executed test source exercises widths 960/620/960.70a46a366a700ad975b91eb44566e956ea5354e0. The earlier watcher timeout is retained as an observation failure, not a test failure. No local AppKit window execution, full iOS suite, live Gateway, or whole-current-main qualification is claimed.