Skip to content

perf(control-ui): reuse startup model metadata#91531

Merged
vincentkoc merged 1 commit into
mainfrom
control-ui-perf-discovery
Jun 9, 2026
Merged

perf(control-ui): reuse startup model metadata#91531
vincentkoc merged 1 commit into
mainfrom
control-ui-perf-discovery

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary:

  • reuse opportunistic model metadata from chat.startup so a clean Control UI chat boot can skip the follow-up model metadata RPC
  • keep command discovery off the startup critical path; the UI only fetches commands separately when startup metadata supplies models
  • guard startup metadata when configured model visibility requires full provider discovery, and preserve agent-scoped session metadata

Verification:

  • node scripts/run-vitest.mjs src/agents/model-catalog-browse.test.ts src/gateway/server.chat.gateway-server-chat-b.test.ts ui/src/ui/app-chat.test.ts -- --reporter=verbose
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/ui/e2e/chat-flow.e2e.test.ts -- --reporter=verbose
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main -> clean, no accepted/actionable findings
  • Blacksmith Testbox tbx_01ktmw1g1tb9g7anqzx6vvqq1m: OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed exited 0 after typecheck, lint, and import-cycle guard

@vincentkoc vincentkoc self-assigned this Jun 9, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Jun 9, 2026
@clawsweeper

clawsweeper Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: perf(control-ui): reuse startup model metadata This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc vincentkoc merged commit 2c6bdc8 into main Jun 9, 2026
193 of 197 checks passed
@vincentkoc vincentkoc deleted the control-ui-perf-discovery branch June 9, 2026 00:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 9, 2026
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: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant