Repository navigation
fix(ui): match mobile group searches across NFC and NFD forms - #191945
Conversation
The move-to-group filter in the mobile session menu compared raw lowercased strings, so an NFC query missed group labels stored in NFD form (and vice versa). Normalize both sides to NFC before the substring test, matching the model picker search fix. 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 maintainer review before merge. What this changesNormalize mobile group-search comparison strings to NFC while preserving original group names and selection values. Example: Search for NFC München when the existing group is stored as NFD München.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current mobile search defect with a narrow change and directly relevant browser evidence; no actionable defects were found, and exact-head CI remains in progress. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe mobile session menu filters group entries supplied by the shared session-menu owner and forwards the selected entry to the existing action handler. flowchart LR
A[Original group entries] --> C[Mobile group filter]
B[Search query] --> C
C --> D[Lowercase and NFC comparison]
D --> E[Original matching entries]
E --> F[Existing selection action]
Technical reviewBest possible solution: Retain the local NFC comparison fix and original group identities, then complete the normal exact-head CI gates. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the exact lowercase-only comparison, and the supplied built-browser evidence demonstrates both cross-form misses against an earlier main revision with the same comparison; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: normalize temporary comparison strings at the existing filter owner, preserve raw entries and actions, and extend the existing controlled-picker test table. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ce6257dd8bb6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests 0, Docs +2. Total +2 across 3 files. Added test files: 0. View PR surface stats
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 (1 earlier review cycle)
Reviewed November 3, 2026, 9:36 AM ET / 14:36 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Built Control UI proof for Real Chromium, 390 × 844 mobile viewport, normal built Control UI and the repository's mocked Gateway transport. Baseline: main
After each search, selected the original group and observed the real Focused browser unit file: candidate 17 passed, main with the same consolidated cases 2 failed / 15 passed (only the two Unicode rows fail because no selectable result exists). The earlier hosted copy-menu failure did not reproduce in either focused file run; it is not being classified as inherited from those passing runs. The normal UI build produced/reused verified finalized artifact sidecars but returned performance-budget failures on both refs: main total CSS gzip/raw exceeded its caps; candidate chat-boot gzip was 1,280,994 B against 1,280,674 B. No budget/checker was changed or bypassed; the browser proof served those built artifacts, with matching build identities and captured asset SHA-256 values. These are build-budget failures, not passing build claims. Consolidated the duplicated Unicode setup into the existing controlled-picker table while retaining ASCII, focus, sort, original-action, close and retired-page assertions. Whole-change production +2/−2, tests +15/−15 (net 0), docs +2; no allocation file. |
|
Exact-head CI for
Causal comparison used GitHub's exact merge tree The PR changes only a local mobile group-label comparison, its table-driven coverage and documentation. That comparison is not imported by the config runtime/test/mock checker or the composer fixture; restoring it does not change those outcomes. These four failures are unrelated to the repair, so this is a pause for the maintainer, not a merge-ready/green-CI claim. The exact-head review is 4/6 overall, 5/6 proof, 4/6 patch; no findings. Hosted Control UI performance, UI E2E, changed tests, production/test types, changed lint and docs passed. Observed native mobile proof and inspected screenshots remain valid. |
|
Maintainer override: the only reds are the known config-page |
|
Landed in 4824c14. Thanks @huwei-xydt. Mobile Move to group search now matches across Unicode forms. |
…aw#191945) fix(ui): match group names across Unicode forms in mobile Move to group The mobile "Move to group" search compared text byte for byte, so a search typed in one Unicode form (for example composed "é", NFC) did not find a group whose name used the other form (decomposed, NFD), and the reverse. The local comparison now lowercases and then applies NFC to both sides. Stored labels, actions and the selected group are unchanged, and there is no accent folding. Evidence: built Control UI in a mobile Chromium viewport. Both Unicode directions missed on main twice and matched with this change twice, and selecting the result moved the item to the original group. ASCII and accent-stripped controls were unchanged. Details and screenshots: openclaw#191945 (comment). Thanks @huwei-xydt. Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>




What problem this solves
The mobile Move to group → Search groups filter misses canonically equivalent Unicode names: an NFC
Münchenquery cannot find an NFDMünchengroup, or vice versa. The operator sees no matching group even though it exists.What changed
Normalize both comparison strings locally with lowercase followed by NFC. Original group labels, selection payloads, sorting, non-group rows, shared search helpers and Gateway contracts remain unchanged. The fix by @huwei-xydt is preserved in its original commit.
Consolidated both Unicode directions into the existing controlled-picker test table, retaining ASCII filtering, no autofocus, sorted groups, original action payload, closing and retired-page behavior. Production +2/−2; tests +15/−15 (net 0); documentation +2. No test allocation or checker changes.
Evidence
Built mobile Chromium proof, controls and before/after screenshots.
4285c6ced4216d72266c370455bc6f491ac65687: both Unicode directions miss twice each.alpand accent-strippedMunchencontrols are unchanged on both refs.Merge danger
Two-way door: revert fully restores the old local comparison; no persisted state, config, schema, protocol or dependency changes. Blast radius is limited to local filtering in the mobile group picker. Accents are not stripped, and stored group names are never normalized.