Repository navigation
fix(ui): normalize canonical Unicode in local search comparisons - #189874
Conversation
Lowercase then NFC-normalize both comparison operands in the default config search text matcher and tag matcher so composed queries find decomposed field text and tags. Co-Authored-By: Claude Code <[email protected]>
Lowercase then NFC-normalize the usage details query and clean log content on the comparison side so composed searches find decomposed messages. Co-Authored-By: Claude Code <[email protected]>
Lowercase then NFC-normalize the dashboards query and row text on the comparison side so composed searches find decomposed session titles, authors, previews, and keys. Co-Authored-By: Claude Code <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Built-Gateway / real-Chromium evidenceHead: The candidate's production tree was built in secretless Each surface ran in two fresh Chromium contexts per revision. Results below occurred twice each:
Configuration fields and metadata came from a disk-loaded synthetic plugin through the normal settings editor. Dashboards were created through real Raw configuration values and plugin metadata were compared before/after filtering. Gallery titles and session keys, conversation text, and persisted values were checked unchanged after the candidate run. All three predicates retain their existing lowercase operation and apply NFC afterward, only to comparison copies. The gallery diff changes two comparison expressions only: no agent scoping, author filter, permission, roster query or #188486 changes. Focused checks: 35/35 passed across config search, Usage details and dashboard view owners; oxlint 0 warnings/errors; oxfmt all eight changed files formatted. Hosted CI then caught an owned test-table inference error, TS2322 at Retained local screenshotsAll 36 canonical captures, including both directions, both repetitions and ASCII controls, are listed with exact local paths and observed counts in:
Under that same parent:
Raw RPC receipts, model requests, resolved profile/config/state paths, per-case browser results and final raw-value receipts are retained alongside the harness. An early search-selector discovery used the wrong input role; initial Usage captures were reframed to show the query and result together. Those setup/capture attempts are retained but are not the canonical screenshots above. Representative paired captures |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR makes configuration, Usage conversation, and dashboard searches match canonically equivalent Unicode text. Example: Search configuration metadata containing decomposed München with the composed query MÜNCHEN.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: it fixes a current search defect with sufficient browser evidence and no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThree browser-local filters consume queries and existing configuration metadata, conversation messages, or dashboard rows, then select visible results without rewriting their sources. flowchart LR
A[Search query] --> C[Existing local filter]
B[Gateway supplied source text] --> C
C --> D[Lowercase comparison copies]
D --> E[NFC normalization]
E --> F[Existing matching predicates]
F --> G[Visible original results]
Technical reviewBest possible solution: Land the existing comparison-only repair once the normal exact-head CI gates pass. Do we have a high-confidence way to reproduce the issue? Current-main source shows the unequal canonical comparison operands, and supplied paired browser captures demonstrate the failure; this read-only review ran no target code. Is this the best way to solve the issue? The patch is the smallest complete repair at the existing comparison owners, preserving lowercase behavior, filter conjunctions, source bytes, and the separate Settings navigation matcher. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6296100c8d0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +8, Tests 0, Docs +8. Total +16 across 8 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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, 8:08 PM ET / November 1, 2026, 00:08 UTC (Revision 2). |
|
Initial pushed head e4fbc58 failed one substantive CI job: check-test-types-core-5, https://github.com/openclaw/openclaw/actions/runs/41254217699/job/124694616136 . Exact error: ui/src/pages/usage/view-details.test.ts(439,27), TS2322, string is not assignable to the supported message-role union. The retained parameterized fixture widened its role table. The repair makes that existing table a readonly literal tuple with |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Exact head |
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
…nclaw#189874) fix(ui): match config, Usage and dashboard searches across Unicode normalization forms Three more Control UI searches compared text without Unicode normalization, so a name stored in one form (NFC or NFD, for example `Café` saved on macOS) didn't match a query typed in the other: - the config editor form search; - Usage conversation search; - the dashboards gallery search. Each now lowercases and NFC-normalizes both sides for the local comparison only. Raw values are unchanged, and dashboard agent scoping is untouched. Evidence: built Gateway and Control UI in real Chromium. Each surface missed both directions twice on main and found the expected result twice with this change. ASCII controls behaved the same on both refs. Details and screenshots: openclaw#189874 (comment). Includes the fixes from openclaw#189829, openclaw#189834 and openclaw#189853, with their commits kept. Co-authored-by: 胡伟0668000622 <[email protected]> Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>






What Problem This Solves
Three Control UI searches can hide existing results when query and source text use canonically equivalent Unicode forms:
tag:filters.User Impact
A composed accented query now finds decomposed text, and a decomposed query finds composed text. Case-insensitive and ASCII matching keep working. Displayed text, configuration values, transcript content, tags and session keys are not rewritten.
Why This Change Was Made
Each owning browser-local comparison lowercases its operands but previously left canonical forms unequal. Apply NFC after the existing lowercase operation on both query and candidate copies. Keep the existing predicates, tag conjunctions, role/tool filters, sort behavior and data ownership; no shared normalization policy or new helper API is introduced.
The dashboard change touches only query/candidate normalization. It does not change agent scoping or incorporate #188486. Logs normalization is already on main and is not duplicated here.
Includes @huwei-xydt's fixes from #189829, #189834 and #189853, cherry-picked with contributor authorship retained.
Evidence
Built Gateway and matching built Control UI served in secretless
node:24.22.1Docker, driven by real Chromium. On each of the three surfaces, two fresh browser contexts per revision exercised NFC-query/NFD-source and NFD-query/NFC-source, plus an ASCII control:Configuration metadata came from a real disk-loaded fixture plugin. Dashboards were created through
sessions.createandboard.widget.put. Usage data came from real agent turns against the maintained deterministic local QA provider, with a decomposed assistant message appended through the supportedchat.injectRPC. No browser Gateway mock or database edits were used. Persisted raw values were checked after filtering.The three focused owner files pass 35/35 tests; focused lint and formatting pass. Bidirectional authored tags share the existing conjunction case, and Usage's retained stale-count fixture now also exercises canonical filtering. New duplicate fixture blocks were removed. Production +15/-7 (net +8), tests +10/-10 (net 0), docs +8; no SDK exports, schema, index or permission changes.
See the paired screenshots and detailed receipts.
Merge Danger
Two-way door: reverting restores the previous local matching behavior, with no persistent migration to undo. Blast radius is these three browser-local filters; an incorrect comparison could hide or overmatch visible results, but does not change server authorization or stored data.