Repository navigation
fix(ui): match dashboard gallery search against NFC queries - #189853
huwei-xydt wants to merge 6 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 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. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesNormalize both search operands to NFC in Dashboard, Usage conversation, and Logs filters. Example: Search the Dashboard gallery for composed “münchen” when a card title contains decomposed “München Monitor”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: current main still misses canonically equivalent Dashboard searches, and the comparison fix introduces no identified correctness or security defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI filters Gateway-provided session rows locally before rendering Dashboard cards; search normalization changes comparison copies without changing session records. flowchart LR
A[Gateway session rows] --> B[Dashboard gallery filter]
C[Search input] --> B
B --> D[NFC comparison copies]
D --> E[Matching original rows]
E --> F[Dashboard cards]
Technical reviewBest possible solution: Keep NFC normalization in the existing comparison owners while preserving original session and message text. Do we have a high-confidence way to reproduce the issue? Current-main comparison code directly exposes the Unicode mismatch, and the contributor reports a failing base regression; this read-only review ran no target code. Is this the best way to solve the issue? Normalizing both comparison operands is the smallest complete repair using existing owners, with no new state, helpers, settings, or persistence changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 43a3abe0595f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +6, Tests +71, Docs +4. Total +81 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed October 31, 2026, 7:26 PM ET / 23:26 UTC. |
…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 dashboards gallery search hid matching cards when the query and session text used different Unicode canonical forms. A composed
münchenquery did not find a dashboard titled with decomposed text, and the reverse mismatch also failed for titles, authors, previews, and keys.User Impact
Users typing normal composed text in the dashboards search box can miss sessions whose display names, author labels, previews, or keys came from decomposed sources. ASCII queries were unaffected.
Why This Change Was Made
The gallery filter lowercased both operands for case-insensitivity but left Unicode canonical forms unequal. Local comparison copies need NFC on the query and every matched row field, matching the Logs, activity, chat, skills, and Usage filters already fixed on main.
Evidence
Red/green unit tests in
ui/src/pages/dashboards/view.test.tsx:münchenagainst an NFD title yields no[data-dashboard-session].test/vitest/vitest.ui.config.ts.dashboards-page.test.tsxstays 5/5 green.visibleDashboardRows. No Gateway, export, or persistence changes.Merge danger
Two-way door: a revert restores earlier lowercase-only matching. Blast radius is local dashboards gallery filtering. Faulty comparison could hide or show unexpected cards; it cannot alter stored sessions or Gateway writes.