Repository navigation
fix(ui): match config form search against NFC queries - #189829
huwei-xydt wants to merge 5 commits into
Conversation
LogsView compared lowercase filter text without Unicode normalization, so NFC queries missed NFD log lines. Co-Authored-By: Claude Code <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesThis PR makes config-form text and tag searches match canonically equivalent Unicode strings. Example: Search for composed “münchen” when a field description contains decomposed “München credential”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it fixes a concrete config-search defect still present on current main, with no actionable correctness or security findings. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI config-search owner receives queries, schema metadata, and field hints, then determines which configuration sections and fields remain visible. flowchart TD
A[Config search input] --> B[Query parser]
C[Schema and field hints] --> D[Recursive config matcher]
B --> D
D --> E[Text and tag comparisons]
E --> F[Visible sections and fields]
Technical reviewBest possible solution: Keep canonical normalization in the existing comparison functions while preserving original metadata and saved values. Do we have a high-confidence way to reproduce the issue? Current-main source directly explains why composed queries miss decomposed descriptions and tags; the contributor reports failing-base and passing-head regressions, but this read-only review executed no target code. Is this the best way to solve the issue? This is the smallest complete repair at the existing owner: normalize comparison copies on both sides without adding state, wrappers, or another search path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4120fe0aacb1. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +38, Docs +4. Total +52 across 5 files. Added test files: 0. View PR surface stats
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 HistoryReviewed October 31, 2026, 7:15 PM ET / 23:15 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…9874) 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: #189874 (comment). Includes the fixes from #189829, #189834 and #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]>
|
Thanks @huwei-xydt. Your fix landed in #189874 (f121a7f), which keeps your commit. I'm closing this one as included. |
…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
The Settings config form search hid matching fields when the query and field text used different Unicode canonical forms. A composed
münchenquery did not match a field description stored with decomposed text, andtag:filters with diacritics failed the same way against NFD field tags.User Impact
Users typing normal composed text into config search could not find fields whose labels, help, enum text, or tags came from decomposed sources. Tag filters failed the same way against NFD field tags.
Why This Change Was Made
The default text matcher and tag matcher lowercased operands for ASCII case-insensitivity but left Unicode canonical forms unequal. Local comparison copies need NFC on both sides so search behaves like the existing Logs, skills, activity, and chat filters.
Evidence
Red/green node unit tests in
ui/src/components/config-form.search.node.test.ts:tag:criteria vs NFD field tags.test/vitest/vitest.ui.config.ts.defaultTextMatcherandmatchesTagsNFC both operands after lowercase. No schema, hint, Gateway, or persistence changes.Merge danger
Two-way door: a revert restores earlier lowercase-only matching. Blast radius is local Settings config search visibility. Faulty comparison could hide or show unexpected fields in the form filter; it cannot change saved config values, authorization, or Gateway writes.