Skip to content

fix(ui): Templates links redirect to chat and details load slowly - #196451

Merged
roboclaw-bot merged 9 commits into
mainfrom
openclaw/templates-page-latency
Nov 10, 2026
Merged

roboclaw-bot merged 9 commits into
mainfrom
openclaw/templates-page-latency

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #196449

What Problem This Solves

Fixes: enabled Templates links can redirect to chat on first connection, and Template details keep loading while waiting for an unnecessary catalog search.

User Impact

Enabled direct links stay on Templates, and selecting a release opens its full contents without a search prerequisite. No configuration migration or operator action is required; archive integrity, current visibility, and installation trust/consent checks remain unchanged.

Why This Change Was Made

Use the existing authenticated display-config owner for the Templates availability fact, and load detail directly through the existing Gateway owner. Catalog selections carry their exact release into the route; unversioned detail links let the Gateway resolve the current public release. Add and file preview remain pinned to the accepted immutable version. This removes the duplicate search request lifecycle rather than adding a cache.

Evidence

  • Public-handler regression failed before the optional-version correction, then 12 tests passed; protocol contracts: 4 passed, including rejection of unversioned preview/Add coordinates. Consumer UI: 33 focused unit and 13 bundled browser tests passed. Bootstrap/route checks: 36 passed; an independent bootstrap review additionally ran 106 checks. Targeted type/lint/format, production UI build, generated validators, and complete protocol generation checks passed.

  • Actual isolated Gateways reproduced the original fresh-link redirect to /chat/main. The fixed UI supports fresh unversioned entry, normal navigation, warm reload, actionable errors/recovery, and real transport-loss reconnect with complete contents. Inspected before/after screenshots are attached below and were also delivered in the implementation chat.

  • Combined-system controlled verification, including the separately prepared ClawHub narrow reader: ten rotated original/candidate pairs per surface, 40/40 successful samples, zero recorded browser errors, full returned payload/excerpt parity. Listing mean 306.78 → 105.61 ms (65.57% lower); detail 769.77 → 292.64 ms (61.98% lower). Every individual pair exceeded 50%; no best-five selection or outlier removal. These percentages are not a consumer-only or deployed production-registry claim.

  • The visible metric is the trusted target click to complete contents, zero actual skeletons, and two animation frames. Same frozen captured-public native Convex fixtures, fresh Chromium contexts, resident Gateways, alternating arms; equal warmup excluded. Connected-app setup/handshake is excluded identically, with no Refresh workaround.

  • Local autoreview (Codex GPT-6.1 Sol, P0–P3), full committed range 5d89656a2bdcf34 → c9f8d791c5490e5: scoped-clean, no actionable findings. Separate independent UI, bootstrap, workload, and wire reviews also completed. Local ClawSweeper was unavailable; the selected fallback includes one hosted review when ready.

  • Resolved the actual current-main conflict at 8bb413e6a3bbeeab7210587f2c16efd7476fa34e by canonical validator regeneration. All non-generated reviewed paths and supplied source-context files are byte-identical to the reviewed candidate. Fresh affected checks passed: 12 Gateway tests, 4 protocol tests, generated-validator parity, and full protocol generation checks. The signed prepared head is d36a46456b5fe2221a55866a9af049d72041063a; broad CI remains required.

Raw visible timings and phase means

All values below are milliseconds, in sample order.

  • Listing original: 330.2, 297.0, 296.9, 296.8, 313.1, 314.0, 297.0, 312.9, 296.4, 313.5
  • Listing candidate: 113.5, 97.4, 114.2, 114.2, 97.3, 96.8, 114.1, 97.3, 97.4, 113.9
  • Detail original: 796.6, 746.4, 763.6, 746.8, 762.9, 763.5, 745.8, 811.6, 797.0, 763.5
  • Detail candidate: 329.7, 296.1, 312.6, 296.0, 296.5, 294.8, 279.6, 279.1, 279.1, 262.9

Medians: listing 304.95 → 105.45; detail 763.50 → 295.40. Nearest-rank p95/max at n=10: listing 330.20 → 114.20; detail 811.60 → 329.70.

Mean pre-RPC / catalog request span / response-to-verified-ready:

  • Listing: 32.34 / 231.84 / 42.60 → 31.73 / 26.24 / 47.64.
  • Detail: 11.20 / 720.71 / 37.86 → 7.13 / 246.12 / 39.39.

Post-RPC includes verification overhead, not isolated rendering CPU. Full payload parity covers 86 shelf cards and the verified detail inventory (10 instruction entries, 2 skills, 1 automation). Earlier hypotheses that missed the target remain recorded in the work session.

Simplification removes the duplicate search state/cancellation/retry path. The one-off timing runner is retained with task proof rather than shipped as a maintained CLI. Production code and affected regressions remain focused; generated validator renumbering is mechanical.

First connection to enabled Templates

The same /templates entry in fresh browser contexts, dark theme, 1440×1000; actual isolated Gateways and real public catalog. These screenshots demonstrate routing/content readiness, not the separate controlled performance percentages.

Before

Enabled Templates entry redirects to chat.

Before: enabled Templates link redirects to chat

After

The direct entry stays on Templates and renders catalog contents without a Settings/Refresh detour.

After: enabled Templates link renders its real catalog

Contributor credit

Requested and reported by @Patrick-Erichsen.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 8 commits November 10, 2026 02:24
Carry the existing authoritative Labs display fact through the scoped bootstrap projection and avoid activating the configuration editor for a known display setting. Regression coverage adds five test lines; credential redaction and read-scope checks remain intact.

Co-authored-by: Patrick-Erichsen <[email protected]>
Keep the exact measured workload in retained proof artifacts rather than adding a maintained one-off CLI to the latency fix.

Co-authored-by: Patrick-Erichsen <[email protected]>
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 6cd30b9d-d983-4536-b3a0-96120d63f55f
@clawsweeper

clawsweeper Bot commented Nov 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XL labels Nov 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

First connection to enabled Templates

The same /templates entry in fresh browser contexts, dark theme, 1440×1000; actual isolated Gateways and real public catalog. These screenshots demonstrate routing/content readiness, not the separate controlled performance percentages.

Before

Enabled Templates entry redirects to chat.

Before: enabled Templates link redirects to chat

After

The direct entry stays on Templates and renders catalog contents without a Settings/Refresh detour.

After: enabled Templates link renders its real catalog

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
Resolve the generated predicate conflict by canonical regeneration; retain the reviewed Templates runtime changes unchanged.

Co-authored-by: Patrick-Erichsen <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 10, 2026 05:19
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 10, 2026 05:22
@roboclaw-bot
roboclaw-bot merged commit 082c379 into main Nov 10, 2026
199 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/templates-page-latency branch November 10, 2026 05:33
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…enclaw#196451)

* improve(templates): open selected releases without waiting for search

Co-authored-by: Patrick-Erichsen <[email protected]>

* test(templates): measure native catalog content readiness

Co-authored-by: Patrick-Erichsen <[email protected]>

* test(templates): keep the content-readiness comparison consistent

Co-authored-by: Patrick-Erichsen <[email protected]>

* fix(templates): load enabled pages on first connection

Carry the existing authoritative Labs display fact through the scoped bootstrap projection and avoid activating the configuration editor for a known display setting. Regression coverage adds five test lines; credential redaction and read-scope checks remain intact.

Co-authored-by: Patrick-Erichsen <[email protected]>

* fix(templates): resolve unversioned detail at the catalog owner

Co-authored-by: Patrick-Erichsen <[email protected]>

* test(templates): time visible contents from native activation

Co-authored-by: Patrick-Erichsen <[email protected]>

* chore: keep catalog timing experiments with task evidence

Keep the exact measured workload in retained proof artifacts rather than adding a maintained one-off CLI to the latency fix.

Co-authored-by: Patrick-Erichsen <[email protected]>

* fix(ui): Templates links redirect to chat and details load slowly

Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 6cd30b9d-d983-4536-b3a0-96120d63f55f

---------

Co-authored-by: Patrick-Erichsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Templates load slowly and enabled direct links can redirect to chat

1 participant