Repository navigation
fix(ui): match logs filter against NFC queries - #189473
Conversation
LogsView compared lowercase filter text without Unicode normalization, so NFC queries missed NFD log lines. Co-Authored-By: Claude Code <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-Authored-By: Claude Code <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesNormalize Logs filter queries and searchable text to NFC while preserving original displayed and exported records. Example: Search for composed
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a verified Logs search defect with a focused patch and convincing browser evidence; no actionable code findings remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI receives Gateway file records through logs.tail, parses them into retained rows, and filters those rows for display and raw-record export. flowchart LR
A[Gateway file logs] --> B[logs.tail]
B --> C[Retained parsed rows]
D[Filter input] --> E[NFC comparison]
C --> E
E --> F[Windowed display]
E --> G[Original record export]
Technical reviewBest possible solution: Land the existing local comparison fix once the outstanding context check is reconciled. Do we have a high-confidence way to reproduce the issue? Current-main source retains lowercase-only comparison, and the supplied real Gateway/Chromium evidence demonstrates both canonical mismatch directions failing before the fix; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete fix: normalize temporary operands in the existing comparison owner, reuse its regression suite, and leave original records intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f1c935770852. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests 0, Docs +4. Total +8 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed October 31, 2026, 11:21 AM ET / 15:21 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Real Gateway log producer + Chromium proofBaseline main: Both refs were installed and fully built inside an isolated Linux ARM64 The Gateway produced the log lines itself. The normal built
The authorized
An ASCII positive control was exercised before every Unicode query. Keyboard input was checked exactly, without normalization by the driver. Candidate screenshots visibly retain the original label text. Each of the four successful Unicode searches downloaded Export filtered through the real browser, and each export contained the exact original JSON log line from the real Four inspected screenshots are attached. Retained evidence includes actual tail responses, device-list and rename CLI receipts, original log JSON, downloaded exports, per-ref results, source/asset hashes, screenshots, and cleanup receipts. Focused validation: 29 tests passed across the existing Logs view/page/parser owners; the canonical mismatch regression failed on main (expected two timestamped rows, received none) and passed on the candidate. Final regression and formatting passed. Oxlint: zero errors, four existing Solid reactivity warnings in the unchanged capture/virtualizer ownership paths. Simplification retained the existing comparison owner and removed the duplicate standalone mock suites. Canonical cases now extend the existing filtering/locale/timezone regression without adding test lines. No stored/display/export text, public SDK, authorization, or lifecycle semantics changed. |
|
Landed in c34246e. Thanks @huwei-xydt. The Logs filter now matches text in either Unicode form. |
fix(ui): match the Logs filter across Unicode normalization forms The Settings Logs filter compared text without Unicode normalization, so a log line containing `Café` in one form (NFC or NFD) didn't match a filter typed in the other, and the page showed no log entries. The filter now lowercases and NFC-normalizes both sides for the local comparison only. Raw log lines are unchanged, and filtered exports keep the exact original JSON lines. Evidence: a built Gateway produced real log records from normal `devices rename` commands, and real Chromium received them through `logs.tail`. Both mismatch directions failed twice on main and matched twice with this change. ASCII controls behaved the same on both refs, and filtered exports kept the exact original lines. Details and screenshots: openclaw/openclaw#189473 (comment). Thanks @huwei-xydt. Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
fix(ui): match the Logs filter across Unicode normalization forms The Settings Logs filter compared text without Unicode normalization, so a log line containing `Café` in one form (NFC or NFD) didn't match a filter typed in the other, and the page showed no log entries. The filter now lowercases and NFC-normalizes both sides for the local comparison only. Raw log lines are unchanged, and filtered exports keep the exact original JSON lines. Evidence: a built Gateway produced real log records from normal `devices rename` commands, and real Chromium received them through `logs.tail`. Both mismatch directions failed twice on main and matched twice with this change. ASCII controls behaved the same on both refs, and filtered exports kept the exact original lines. Details and screenshots: openclaw/openclaw#189473 (comment). Thanks @huwei-xydt. Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
fix(ui): match the Logs filter across Unicode normalization forms The Settings Logs filter compared text without Unicode normalization, so a log line containing `Café` in one form (NFC or NFD) didn't match a filter typed in the other, and the page showed no log entries. The filter now lowercases and NFC-normalizes both sides for the local comparison only. Raw log lines are unchanged, and filtered exports keep the exact original JSON lines. Evidence: a built Gateway produced real log records from normal `devices rename` commands, and real Chromium received them through `logs.tail`. Both mismatch directions failed twice on main and matched twice with this change. ASCII controls behaved the same on both refs, and filtered exports kept the exact original lines. Details and screenshots: openclaw#189473 (comment). Thanks @huwei-xydt. Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>




What Problem This Solves
The Logs filter hid existing lines when a query and log text used different Unicode canonical forms. For example, a composed
münchen-logproofquery could not find a Gateway log containing decomposedMu\u0308nchen-Logproof, despite looking equivalent. The reverse mismatch also failed.Fix
Lowercase then NFC-normalize both local comparison operands in the existing Logs view. Normalize the query once per change, not once per log record. Displayed text, raw records, filtered exports, identities, Gateway messages, authorization, and persistence remain unchanged. No SDK or configuration changes.
Preserved the contributor's original commits and latest viewport-helper repair. Consolidated the duplicate standalone mock suites into the existing filter/locale/timezone regression. Whole-change delta against merge base: production +6/-2; tests +5/-5 (zero growth); docs +4.
Evidence
Real built Gateway + Chromium evidence and inspected screenshots.
Normal built
devices renamecommands generated real Gateway log records with NFC, NFD, and ASCII labels. The real Logs page received them throughlogs.tail. Both Unicode mismatch directions failed twice on main and succeeded twice on candidate, with ASCII controls before every query. Real browser filtered exports retained the exact original JSON records. No synthetic log tail responses, direct log writes, fabricated events, or component mounting.29 focused Logs view/page/parser tests passed. The canonical regression failed on main and passed on candidate. Final regression and formatting passed; Oxlint reported zero errors and four existing Solid reactivity warnings. The published production source hash matches the built/proven container source.
Merge danger
Two-way door: a revert fully restores earlier filter behavior; no state migration or published contract changes. Blast radius is local Logs text filtering: a faulty comparison could hide or include unexpected lines, but cannot alter log production, stored records, or actions being logged.