Repository navigation
fix(ui): match live activity search against NFC queries - #189375
Conversation
Canonical NFC on jump-menu path filters so NFD Git paths (macOS) still match NFC queries, matching the already-landed tree filter. 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. |
Live activity search lowercased the filter needle and entry haystack but did not canonicalize them, so NFC query text missed NFD tool output. Normalize both sides to NFC at the comparison site only. Co-Authored-By: Claude Code <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesNormalize Live Activity search comparisons to NFC so composed and decomposed Unicode text match. Example: Search for composed
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a demonstrated search bug still present on current main, with no actionable code findings; required CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI receives authorized live session events, builds bounded browser-local Activity summaries, and filters those summaries for display without changing tool output or identifiers. flowchart LR
A[Gateway session events] --> B[Activity collector]
B --> C[Original bounded summaries]
C --> D[Local comparison copies]
E[Search input] --> D
D --> F[Filtered Activity rows]
Technical reviewBest possible solution: Merge the focused comparison-only fix after the existing required checks pass. Do we have a high-confidence way to reproduce the issue? The supplied built-Gateway and Chromium reproduction demonstrates both mismatch directions on the pinned main baseline, and source inspection confirms fetched main retains the same faulty comparison; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete fix: normalize both comparison operands in the existing filter owner, preserve original values, and extend the existing rendered-page regression instead of adding another owner or harness. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e6aa04477b30. 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 HistoryReviewed October 31, 2026, 10:39 AM ET / 14:39 UTC (Revision 3). |
Ship the Playwright control-ui e2e that types NFC and NFD queries against a live NFD tool event so ClawSweeper sees production-path behavior proof. Co-Authored-By: Claude Code <[email protected]>
|
@clawsweeper re-review Head is now Production control-ui e2e Green on head: Before/after screenshots are linked in the PR body from proof branch |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Real built Gateway + Chromium proofBaseline main: Both refs were installed and fully built inside isolated Linux ARM64 The Activity tab subscribed to the actual active session before tools ran. Provider latency held the actual run open while the operator searched; releasing it produced the normal final chat reply on both refs. Served browser asset bytes were SHA256-checked against each ref's built
An ASCII positive control was exercised before each Unicode query. Input values were checked exactly, not normalized by the driver. Initial and restored raw preview arrays were byte-identical within each ref, including the decomposed diaeresis and trailing newlines. Both refs recorded three real result IDs and zero browser page errors. The attached screenshots were inspected: main visibly shows an empty filtered feed; candidate shows the matching real read output in both directions. Full retained event captures include accepted subscription ACKs, actual tool frames, provider requests, final chat replies, screenshots, and source/asset binding. Reproduction: build each exact ref with The duplicate standalone mock-Gateway tests were consolidated into the existing Activity filter owner test, retaining both canonical directions, raw preview preservation, status/follow/expansion/tool filters, and the empty-result control. No new public SDK surface, normalization of stored values, or lifecycle owner was added. |
|
Landed in 4ba5c85. Thanks @huwei-xydt. The Live activity filter now matches text in either Unicode form. |
) fix(ui): match the Live activity filter across Unicode normalization forms The Live activity filter compared text without Unicode normalization, so tool output such as `München-Bericht` in one form (NFC or NFD) didn't match a filter typed in the other, and the page showed no matching activity. The filter now lowercases and NFC-normalizes both sides for the local comparison only. Raw previews are unchanged and come back when the filter is cleared. Evidence: built Gateway and Control UI in real Chromium with real `read` tool output. NFC-query/NFD-output and NFD-query/NFC-output failed twice each on main and matched twice each with this change. ASCII controls behaved the same on both refs. Details and screenshots: openclaw#189375 (comment). Thanks @huwei-xydt. Co-authored-by: Claude Code <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>




What Problem This Solves
Live Activity search lowercased text but compared different Unicode canonical forms literally. An accented name copied from decomposed tool output could disappear when searched with a composed query, and vice versa.
Fix and compatibility
Normalize the already-lowercased filter needle once and each lowercased entry haystack to NFC in the existing local comparison owner. Raw tool output, run and tool-call identifiers, displayed text, Gateway events, and stored data are unchanged. No public SDK or configuration changes.
The contributor's commits, including the earlier loop commit
7c5b62ac6a, remain in history. Current main was integrated to remove already-landed Activity jump-menu drift from the effective change. The duplicate mock-Gateway regressions were consolidated into the existing filter suite, preserving both normalization directions and the surrounding filter controls. Production is +2/-2; tests have no net growth against the actual merge base.Evidence
Real built Gateway and real Chromium: the same chat invokes real read tools over NFD, NFC, and ASCII workspace files. Both canonical mismatch directions fail twice on main and succeed twice on the candidate. ASCII control succeeds on both; clearing search restores byte-identical raw preview arrays. Built UI asset hashes, real subscriptions/tool events, provider requests, final chat replies, and inspected screenshots are retained. A deterministic local model provider is used; no fabricated Gateway events or direct component mounting.
Proof comment: #189375 (comment)
Focused validation: 46 Activity owner/projection/subscription tests passed; the canonical query regression fails on main (expected one row, got zero) and passes on candidate. Formatting passed. Direct Oxlint reported only the pre-existing Activity test file's max-lines violation (the final test file has zero net line growth); no product lint finding was reported.
Merge danger
Two-way door: a revert fully restores prior comparison behavior; no state migration or published contract changes. Blast radius is limited to local Live Activity text filtering. If wrong, operators could see missing or unexpected search matches; tool execution and stored output are unaffected.