Skip to content

fix(ui): match logs filter against NFC queries - #189473

Merged
obviyus merged 4 commits into
openclaw:mainfrom
huwei-xydt:fix/logs-filter-nfc
Oct 31, 2026
Merged

obviyus merged 4 commits into
openclaw:mainfrom
huwei-xydt:fix/logs-filter-nfc

Conversation

@huwei-xydt

@huwei-xydt huwei-xydt commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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-logproof query could not find a Gateway log containing decomposed Mu\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 rename commands generated real Gateway log records with NFC, NFD, and ASCII labels. The real Logs page received them through logs.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.

LogsView compared lowercase filter text without Unicode normalization, so
NFC queries missed NFD log lines.

Co-Authored-By: Claude Code <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 31, 2026
@obviyus

obviyus commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. labels Oct 31, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 31, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Normalize Logs filter queries and searchable text to NFC while preserving original displayed and exported records.

Example: Search for composed münchen-logproof when a Gateway record contains decomposed München-Logproof.

  • Before: The Logs page shows no matching entries.
  • After: The matching entry appears and exports with its original text.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A small, complete repair with inspected shipped-entry-point proof, consolidated regression coverage, and no code findings; the context-check failure remains a landing gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The collaborator's real built Gateway and Chromium run exercises /logs through actual logs.tail records produced by device renames, with both NFC/NFD directions, ASCII controls, and original-record exports; all four before/after screenshots were inspected and the proven production source matches the reviewed head.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Visibly matching accented log records disappear when pasted search text uses a different canonical Unicode form.
Reason: The patch repairs a demonstrated search failure without adding configuration, changing stored text, or expanding architecture.

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
Reviewed head: 811c82866b2f9fbc1d38fbd300dd9a13f334b8b0

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Logs comparison changes intended behavior with a stated reason (7dd5b52: The Solid migration carried forward existing routes, controls, and Gateway behavior; this commit establishes the current memo's lineage, not the original introduction of lowercase matching.)
  • Single-pass filtering and row indexing keeps the original intent (6027cb9: Reduce repeated preparation while preserving filtering, export order, keys, and scrolling contracts.)
  • Existing locale and timezone regression keeps the original intent (7a8f6d7: Consolidate repetitive tests while retaining distinct boundary assertions; this PR extends the consolidated case rather than restoring duplicate suites.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 212c35b adds ui/src/pages/logs/view.tsx:66 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 212c35bc374d; files: ui/src/pages/logs/view.tsx)
  • RoboClaw: Raw commit 6027cb9 adds ui/src/pages/logs/view.tsx:89 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6027cb90e588; files: ui/src/pages/logs/view.tsx)

PR surface

Source +4, Tests 0, Docs +4. Total +8 across 3 files. Added test files: 0.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Canonical Unicode mismatches hide matching diagnostic records, with impact limited to local Logs filtering.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-31T15:02:34.278Z sha 22ba8f0 :: needs maintainer review before merge. :: none

Reviewed October 31, 2026, 11:21 AM ET / 15:21 UTC (Revision 2).

@obviyus

obviyus commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Real Gateway log producer + Chromium proof

Baseline main: 09530a1eb38b822d66bf3daa5e12eaafdea852a7. Candidate production source: contributor head 5e8341eda6166742bb56d0fe2078cfc9f68d6639, unchanged by the repair.

Both refs were installed and fully built inside an isolated Linux ARM64 node:24.22.1 container. Real Chromium opened the built Gateway's normal /logs page with its normal authenticated handshake. Served JavaScript asset bytes were SHA256-checked against each ref's coupled dist/control-ui build.

The Gateway produced the log lines itself. The normal built devices list --json command identified a task-owned paired device. Three normal devices rename --device <owned-id> --name <label> --json commands used these labels:

  • NFD Mu\u0308nchen-Logproof
  • NFC Caf\u00e9-Logproof
  • ASCII ascii-logproof

The authorized device.pair.rename owner successfully performed each rename and naturally logged device pairing renamed device=… label=…. The UI received those real file-log records through real logs.tail responses. No log file writes, synthetic logs.tail responses, fabricated Gateway frames, custom plugin, provider fixture, or direct component mounting were used.

Browser Filter Main attempt 1 / 2 Candidate attempt 1 / 2
NFC lowercase münchen-logproof against NFD log line 0 / 0 rows 1 / 1 rows
NFD lowercase cafe\u0301-logproof against NFC log line 0 / 0 rows 1 / 1 rows
ASCII ascii-logproof 1 row 1 row

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 logs.tail response. After clearing, the three original lines remained byte-for-byte in the Gateway file log. Both refs recorded zero browser page errors and cleanly stopped their owned Gateways.

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.

Main composed query misses real decomposed Gateway log

Candidate composed query matches real decomposed Gateway log

Main decomposed query misses real composed Gateway log

Candidate decomposed query matches real composed Gateway log

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 31, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 Oct 31, 2026
@obviyus
obviyus merged commit c34246e into openclaw:main Oct 31, 2026
125 of 130 checks passed
@obviyus

obviyus commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Landed in c34246e. Thanks @huwei-xydt. The Logs filter now matches text in either Unicode form.

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

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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