Repository navigation
refactor(ui): lowercase log search text only once - #207383
Conversation
|
🦞👀 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: passed. What this changesThis PR removes duplicate lowercasing from Logs searches while preserving whitespace trimming, Greek sigma folding, and NFC normalization. Example: Search 2,000 Logs rows for
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, behavior-preserving reduction in Logs search work with no actionable defects found; it remains a maintainer-authored draft. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Logs page polls logs.tail, retains parsed records, and applies local text and level filters before rendering rows or exporting original records. flowchart LR
A[Gateway logs.tail] --> B[Retained parsed rows]
B --> D[Logs filtering]
C[Search text and levels] --> D
D --> E[Windowed display]
D --> F[Original record export]
Technical reviewBest possible solution: Retain the local shared comparison helper and existing polling coverage, removing the redundant conversion without adding state or changing stored records. Do we have a high-confidence way to reproduce the issue? Current-main source directly establishes duplicate lowercasing through the normalizer followed by foldSearchCase; no target code was executed during this review. Is this the best way to solve the issue? This is a small complete refactor using the existing case-folding owner, with a twice-used local helper that keeps query and candidate normalization aligned. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 51213399d001. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3, Tests +1. Total -2 across 2 files. Added test files: 0. 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. Review metrics
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 Reviewed November 28, 2026, 3:56 AM ET / 08:56 UTC. |
|
ClawSweeper status: applying reviewed decision. I am applying the reviewed decision for this pull request: refactor(ui): lowercase log search text only once This is item 1/1 in the current shard. Shard 1/1. This transient lease prevents a newer review from overlapping label, comment, or close mutations. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
* fix(ui): remove Open PR from the session menu Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): remove Open PR from the session menu Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 19ab49eb-2fdb-4e2a-ba0e-3fcf8de38db9 * fix(ui): preserve shared session menu copy --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: remove dismissed chat suggestions without waiting Co-authored-by: vyctorbrzezowski <[email protected]> * fix: remove dismissed chat suggestions without waiting Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: a7065126-58f4-41f4-ab35-887c77e05eac * refactor: keep suggestion dismissal focus with the pane keyboard helpers Co-authored-by: vyctorbrzezowski <[email protected]> * fix: remove dismissed chat suggestions without waiting Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 362ae3c3-16c8-4016-8f59-dc477414e07a --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
…207809) * fix(ui): show a subtle placeholder while a new chat gets its title Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): show a subtle placeholder while a new chat gets its title Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 5a8d6d8e-7c91-4b07-9467-ff499cf2786a --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: keep skill highlights in sent chat messages Co-authored-by: vyctorbrzezowski <[email protected]> * fix: keep skill highlights in sent chat messages Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 303c108c-485c-4ee9-bcdc-b6845d507543 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
) * improve: keep Workboard editing and Save within reach on phones Co-authored-by: vyctorbrzezowski <[email protected]> * improve: keep Workboard editing and Save within reach on phones Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 41fdebe7-35c4-435a-8128-eb9f12e2fabf --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix(ui): highlight skills and mentions in queued messages Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): highlight skills and mentions in queued messages Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d26fee27-de6c-4b5f-8264-da07de4df6f9 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
…07748) * fix(ui): even the gap below a lone tool row in chat * fix(ui): center a lone tool row on the agent avatar
Move project selection and its New worktree switch into the visible project field. Keep agent selection and Remember settings in their original menu. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: stop warning about unsaved drafts when opening a chat Keep failed background recovery reads distinct from failed edits in the composer and Side chat. Keep one access notice when browser storage is unavailable without consuming the warning for a later failed save. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: stop warning about unsaved drafts when opening a chat Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 227e24ff-2a24-4a82-a325-e7787c443eed --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix(ui): keep the flat session list collapsed Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): keep the sidebar session list collapsed Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d5d9e6c3-ba53-4dec-9efe-a5a9c5c29445 * fix(ui): page the sidebar only when it scrolls to the end Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: stop treating limited access as an inbox alert Co-authored-by: vyctorbrzezowski <[email protected]> * fix: stop treating limited access as an Inbox alert Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: a014cab4-b01d-458b-aa67-ec83ad3a2a99 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: child session activity ring freezes during startup Project accepted preparation as running without starting the execution clock. Reserve queued presentation for actual mailbox/global-lane waits and preserve recorded capacity waits. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: child session activity ring freezes during startup Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2bf26c5b-2410-44b2-9915-d2289a90f388 * fix: align Gateway consumers with active session startup Expect active accepted chat preparation, record a real lane wait in metrics, and distinguish preparation from actual queued input in describe/list coverage. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/plaid-crayfish Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 29690b6c-a214-45c1-9591-fd19b1d51336 * test(gateway): cover child startup in the current session checks --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Searching a full Logs buffer lowercases the query and each of up to 2,000 candidate lines twice. The second pass does not change which lines match.
User Impact
The same search and level selections show the same lines, in the same order, including when new lines arrive. The displayed text is unchanged.
Why This Change Was Made
Both the query and the joined message, subsystem, and raw text now use the same comparison rule: trim whitespace, fold case (including Greek sigma), then normalize to NFC. The existing case-folding helper already lowercases its input; removing the earlier conversion needs no cache or extra state.
Related: #189473 and #189518 established the Unicode matching behavior preserved here.
Evidence
LOGPROBE 1499returned onlyLogProbe 1499on both revisions. A temporary counter on the search strings recorded 4,002 → 2,001 calls totoLowerCase. This measures local work, not elapsed time or Gateway throughput.git diff --checkpassed. Focused lint reported four Solid reactivity warnings and no errors.d79f9830c07c..609f3e09351c(P0–P3) and found no actionable issues. Local ClawSweeper was unavailable.🦞 Made with OpenClaw