Repository navigation
fix(ui): Templates links redirect to chat and details load slowly - #196451
Merged
Merged
Conversation
Co-authored-by: Patrick-Erichsen <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
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]>
Co-authored-by: Patrick-Erichsen <[email protected]>
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
Contributor
|
🦞👀 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. |
Collaborator
Author
First connection to enabled TemplatesThe same BeforeEnabled Templates entry redirects to chat. AfterThe direct entry stays on Templates and renders catalog contents without a Settings/Refresh detour. |
Resolve the generated predicate conflict by canonical regeneration; retain the reviewed Templates runtime changes unchanged. Co-authored-by: Patrick-Erichsen <[email protected]>
roboclaw-bot
marked this pull request as ready for review
November 10, 2026 05:19
roboclaw-bot
enabled auto-merge (squash)
November 10, 2026 05:22
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]>
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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
8bb413e6a3bbeeab7210587f2c16efd7476fa34eby 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 isd36a46456b5fe2221a55866a9af049d72041063a; broad CI remains required.Raw visible timings and phase means
All values below are milliseconds, in sample order.
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:
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
/templatesentry 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.
After
The direct entry stays on Templates and renders catalog contents without a Settings/Refresh detour.
Contributor credit
Requested and reported by @Patrick-Erichsen.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by