Skip to content

refactor(ui): lowercase log search text only once - #207383

Merged
vyctorbrzezowski merged 613 commits into
mainfrom
openclaw/loop-ui-r2-logs-2811
Nov 29, 2026
Merged

vyctorbrzezowski merged 613 commits into
mainfrom
openclaw/loop-ui-r2-logs-2811

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

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

  • In a mounted Logs view with 2,000 synthetic rows, entering LOGPROBE 1499 returned only LogProbe 1499 on both revisions. A temporary counter on the search strings recorded 4,002 → 2,001 calls to toLowerCase. This measures local work, not elapsed time or Gateway throughput.
  • The same 27 Logs page and view tests passed on both revisions. The existing polling scenario now uses a padded query with a decomposed accent and three sigma forms: disabling Info hides its row, then a matching Error row appears on append. No production hooks or extra test cases. Production +8/−11 lines; tests +8/−7.
  • UI typecheck, formatting, and git diff --check passed. Focused lint reported four Solid reactivity warnings and no errors.
  • Local autoreview examined d79f9830c07c..609f3e09351c (P0–P3) and found no actionable issues. Local ClawSweeper was unavailable.

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR removes duplicate lowercasing from Logs searches while preserving whitespace trimming, Greek sigma folding, and NFC normalization.

Example: Search 2,000 Logs rows for LOGPROBE 1499.

  • Before: Only LogProbe 1499 matches, with 4,002 lowercase calls reported by the mounted-view counter.
  • After: The same row matches, with 2,001 lowercase calls reported.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A correct, narrowly scoped refactor supported by source inspection and reported mounted-view validation; current-head shipped-entry-point evidence is not supplied or required.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is exempt from contributor proof requirements and changes no intended user-visible result; its body reports mounted-view work counts and passing focused tests, while the four inspected screenshots demonstrate the earlier sigma repair rather than this head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Searching the retained Logs buffer performs an unnecessary second lowercase conversion for every compared string.
Reason: The maintainer-authored direction removes demonstrated redundant work with a net reduction in production code and no additional configuration or state.

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: 609f3e09351cff4a21d4ba8fd87621deb22e7469

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 16a586e adds ui/src/pages/logs/view.tsx:120 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 16a586ea9ace; files: ui/src/pages/logs/view.tsx)
  • Peter Steinberger: Raw commit ac3c0cb adds ui/src/pages/logs/view.tsx:83 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ac3c0cbaeb48; files: ui/src/pages/logs/view.tsx)

PR surface

Source -3, Tests +1. Total -2 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 11 -3
Tests 1 8 7 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 16 18 -2

Preflight source

Source 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

Metric Value Why it matters
Lowercase work per full-buffer search 4,002 → 2,001 reported calls The mounted-view experiment uses 2,000 synthetic rows; source inspection confirms one redundant conversion disappears per compared string, without establishing a latency improvement.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 3:56 AM ET / 08:56 UTC.

@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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.

vyctorbrzezowski and others added 16 commits November 29, 2026 03:22
* 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]>
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: linux app: macos App: macos app: web-ui App: web-ui channel: a2a channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: raft Channel integration: Raft channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: x channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: active-memory extensions: admin-http-rpc extensions: advisor extensions: agent-guidance extensions: autoreview AutoReview plugin and integration extensions: copilot-proxy Extension: copilot-proxy extensions: diagnostics-otel Extension: diagnostics-otel extensions: diagnostics-prometheus extensions: llama-cpp extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: oc-path extensions: policy extensions: qa-lab extensions: tokenjuice Changes to the bundled tokenjuice extension extensions: vault Extension: vault gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: azure-speech Azure Speech plugin plugin: beam Beam session sharing plugin plugin: bonjour Plugin integration: bonjour plugin: celeris plugin: code-mode-quickjs plugin: cua-computer plugin: facetime FaceTime plugin plugin: fastino plugin: file-transfer plugin: geolocation Geolocation plugin (IP to coarse city) plugin: google-meet plugin: imap plugin: knowledge plugin: levanto Levanto Sage decision provider plugin: linux-node plugin: logbook Logbook automatic work journal plugin plugin: mcp-events plugin: mcp-relay plugin: migrate-claude plugin: migrate-hermes plugin: muse plugin: mxc plugin: nace plugin: onnx plugin: openclaw-id-access plugin: pixverse plugin: session-share plugin: skill-workshop plugin: slack-huddles plugin: subq SubQ Snap decision provider plugin: team-reports plugin: teams-meetings Teams Meetings plugin plugin: typesafe plugin: visitor-access plugin: workboard plugin: zoom Zoom plugin rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security Security documentation size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.