Skip to content

fix: avoid duplicate loading for dynamic Control UI links - #116197

Merged
shakkernerd merged 6 commits into
mainfrom
workloop/load-dynamic-control-ui-deep-lin-e52cc98b
Jul 30, 2026
Merged

shakkernerd merged 6 commits into
mainfrom
workloop/load-dynamic-control-ui-deep-lin-e52cc98b

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Closes #116193

What Problem This Solves

Fixes an issue where opening a dynamic Control UI link directly would execute the same route loader twice during startup.

This affected Agent, Chat, Dashboard, Workboard, Memory, and Plugins links, adding redundant work and potential Gateway traffic before the requested page became usable.

Why This Change Was Made

The initial loader result is now reused when the application replaces its temporary exact-match location with the real browser URL. Route identity remains owned by each page descriptor, and the generic router remains unchanged.

Later navigation to a different dynamic resource still receives a distinct loader identity and loads normally.

User Impact

Dynamic Control UI links now perform one initial route load. Reconnects do not rerun the active loader, and invalid paths continue to normalize correctly.

There are no visual changes.

Evidence

  • ui/src/app-route-paths.test.ts: 35/35 passed across all six dynamic route families, later history navigation, and invalid-path normalization.
  • Chromium mocked-Gateway E2E: direct Plugins Discover navigation and WebSocket reconnect passed with route fetchCount remaining at one.
  • pnpm check:changed: passed formatting, dead-export checks, i18n verification, core-test and UI typechecks, and lint.
  • Fresh autoreview: no accepted or actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 30, 2026
@shakkernerd shakkernerd self-assigned this Jul 30, 2026
@shakkernerd
shakkernerd force-pushed the workloop/load-dynamic-control-ui-deep-lin-e52cc98b branch from 0e998fe to ce4c24e Compare July 30, 2026 03:03
@shakkernerd
shakkernerd merged commit e7d01b5 into main Jul 30, 2026
18 checks passed
@shakkernerd
shakkernerd deleted the workloop/load-dynamic-control-ui-deep-lin-e52cc98b branch July 30, 2026 03:04
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Merged using rebase.

What changed after review:

  • Kept dynamic route identity in the owning page descriptors and left the generic router unchanged.
  • Added six-surface startup coverage plus Chromium reconnect proof.
  • Preserved the Control UI changelog entry.

Verification:

  • Rebased/refreshed onto current origin/main before pushing.
  • Blacksmith Testbox tbx_01kyrdc2p3qb1p62xwt9hkn1sj (run 30508349145): focused route tests, Chromium E2E, and pnpm check:changed passed.
  • Real behavior proof: Plugins Discover loaded with route fetchCount one before and after WebSocket reconnect.
  • Auto-review: clean with no accepted or actionable findings.
  • GitHub checks: no required checks configured.

Landed on main:

Thanks @shakkernerd!

vincentkoc added a commit to zhangguiping-xydt/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  style: format dynamic route coverage (openclaw#116197)
  docs: clarify dynamic deep link loading
  test: cover dynamic route startup reconnect
  refactor: keep dynamic route identity page-owned
  docs: note dynamic deep link loading
  fix: load dynamic deep links once
  fix(e2e): use default state for daemon switch (openclaw#116190)
  docs: clarify Buzz typing cadence (openclaw#116194)
  docs: document Buzz typing indicators
  feat: add Buzz typing indicators
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
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 maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI dynamic deep links run route loaders twice on startup

1 participant