Repository navigation
fix(ui): dashboard author search bolds the wrong text for Korean and accented names - #196639
Conversation
…accented names AuthorName found the match in the folded name, then sliced the original name with those offsets. NFD folding changes length (Hangul splits into jamo, decomposed accents drop), so the bold landed on the wrong letters or disappeared. matchFoldedQuery keeps each folded unit's source span.
|
🦞👀 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 maintainer review before merge. What this changesThis PR maps accent-insensitive author-search matches back to the original name before bolding them. Example: Search for lee in the Dashboards author filter containing Kim 민수 Lee.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; reproduction). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this PR: it fixes a verified highlighting bug that remains on current main, with inspected before/after screenshots and no actionable correctness findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI derives author options from dashboard session rows, filters names using folded search text, and renders the matching span within each original name. flowchart LR
A[Dashboard session rows] --> B[Author options]
C[Author search query] --> D[Shared text folding]
B --> D
D --> E[Matching authors]
E --> F[Original source span]
F --> G[Bold author text]
Technical reviewBest possible solution: Keep one shared folding function and map its match back to original-name offsets within the existing text-matching owner. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the offset mismatch, and supplied real-Gateway screenshots independently show the reported failures; this read-only review ran no target code. Is this the best way to solve the issue? The repair preserves filtering semantics and contextual lowercasing while correcting source spans without introducing state or a competing renderer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d290127ec675. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +26, Tests -8. Total +18 across 4 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 (3 earlier review cycles)
Reviewed November 10, 2026, 9:37 AM ET / 14:37 UTC (Revision 4). |
Per-character lowercasing turned the final sigma in ΝΙΚΟΣ into σ, so a query with ς matched in the filter but lost its highlight. Strip marks per character, lowercase the whole string like the filter, and share one foldSearchText between filter and highlight.
|
Addressed the final-sigma finding in 69f4fa1: the highlight now uses the same whole-string @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Added before/after Control UI screenshots for all four queries to the PR body (Vite dev server, Chromium, mocked Gateway). @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
Removed the Korean, mixed-script, NFD-accent and final-sigma rows from @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
# Conflicts: # ui/src/lib/text-match.test.ts
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Proof on a real Gateway with the built Control UI, in Chromium (Playwright), node 24.22.1 in Docker. Ten dashboards, each created by its own user profile. Author names include
Controls, the same on all four runs:
Control UI gzip, PR vs main: chat boot JS +40 B, startup JS +0 B. |
|
Landed in 426c1d6. Thanks @Mahdi-Hasan. Author search now bolds the right letters for Korean and accented names. |
…accented names (openclaw#196639) fix(ui): dashboard author search bolds the wrong text for Korean and accented names In the Dashboards author filter, the bolded part of a name was cut from the original name using positions found in a folded copy (accents stripped, Hangul split into parts) and the raw query length. For Korean names and decomposed accented names, the wrong letters were bolded or nothing was. The match is now mapped back to the original name, so the bold covers exactly the matching letters. The same fold is used for matching, so which authors match does not change, and no text is new. Evidence: a real Gateway in secretless Docker on node:24.22.1 serving the built Control UI to Playwright Chromium, with 10 dashboards by different authors including 김민수, Kim 민수 Lee, a decomposed García and ΝΙΚΟΣ, two runs each. On main, searching 민 bolded nothing in 김민수, lee bolded nothing, and garcia left the final a plain. With this change 민, Lee and García are bolded exactly. The matching author list is identical for every query, ada bolds Ada, νικος and ΝΙΚΟΣ both match, and an empty query shows no bold. Control UI gzip: +40 B. Details and screenshots: openclaw#196639 (comment). Thanks @Mahdi-Hasan. Co-authored-by: Ayaan Zaidi <[email protected]>


What Problem This Solves
Fixes: in the Dashboards author filter search, the bolded part of an author name is missing or on the wrong letters for Korean names and for accented names stored in decomposed form.
User Impact
When you search the author list (shown once there are more than 8 authors), the matched part of each name is bolded correctly, for example
민in김민수,LeeinKim 민수 Lee, andGarcíafor the searchgarcia. Which authors match does not change.Why This Change Was Made
AuthorNamefound the match position in the folded name (NFD, accents removed, lowercased), then used that position and the raw query length to slice the original name. Folding changes string length: Hangul syllables split into 2–3 jamo, and decomposed accents are dropped. So the offsets did not line up.matchFoldedQueryinui/src/lib/text-match.tsfinds the match in the folded name, then maps it back to the original name by folding each prefix of the name and comparing lengths. Combining marks right after the match stay with the last matched letter. The filter and the highlight share onefoldSearchText, the same fold the filter used before, so which authors match does not change, and Greek final sigma (ΝΙΚΟΣvsνικος) still matches.Evidence
Real Gateway with the built Control UI, in Chromium (Playwright), node 24.22.1 in Docker. Ten dashboards, each created by its own user profile, including
김민수,Kim 민수 Lee,Garcíastored decomposed andΝΙΚΟΣ. Two runs on main and two on this PR: proof comment.민김민수: nothing bold민in both namesleeLeegarciaGarcíbold, finalaplainGarcíaThe list of matching authors is the same on main and this PR for every search.
ada,νικος,ΝΙΚΟΣand an empty search behave the same on both.ui/src/lib/text-match.test.tscovers the mapping for Hangul (partial syllable), mixed scripts, a decomposed accent at the end of the match, Greek final sigma and an empty search.Merge risk
Two-way door: UI display only, no stored data or contracts. If it is wrong, only the bold span in the Dashboards author search is affected.