Skip to content

fix(ui): keep model catalog reads in the background - #198751

Merged
vincentkoc merged 5 commits into
mainfrom
fix/models-list-background-loading-20261114
Nov 14, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
fix/models-list-background-loading-20261114

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Model catalog reads display loading indicators and shift model controls while models.list is pending, even when the user can keep working.

User Impact

Model catalog discovery and refresh stay in the background. Chat and new-session controls remain steady, cached choices stay usable, and Search results do not wait for the model catalog. Real errors, retries, authentication, and unavailable-selection safeguards remain visible.

Why This Change Was Made

Remove catalog-only skeletons, shimmer, spinners, and progress copy from chat, model setup, providers, and the command palette. Keep the existing catalog owner and request lifecycle; load Search status independently. Reserve mobile control space so catalog completion does not move the composer.

Evidence

  • Production-built UI against a synthetic Gateway with models.list held pending: the regression failed on the base and passes with the fix.

  • All seven new-session catalog E2E cases pass, including 320/400/560px layouts at 6× CPU slowdown, zero measured layout shift, draft entry, and retry recovery.

  • Catalog bootstrap, partial refresh, and selection-recovery E2E suites pass. Search browser suite: 35 tests pass, including success/error with a pending catalog.

  • Focused chat, setup, providers, palette, metadata, and account-state tests pass. UI typecheck, scoped lint, CSS lint, formatting, and diff checks pass.

  • CI exposed remaining consumer tests expecting removed loader elements or using progress as a completion signal. Their expectations now wait for catalog results or retry admission while retaining selection, focus, credentials, cancellation, and layout checks. All 173 affected unit tests, the composer-placement E2E case, and all five Models layout E2E cases pass locally. No production changes were needed for these follow-ups.

  • Two existing chat/new composer Escape-focus cases fail at 560px on both this branch and the exact base. They are recorded as inherited local failures, not claimed passing.

  • Remaining Agents, Appearance, Cron, and chat-command catalog consumers were inspected for visible loading states.

  • Final CI run: all jobs passed except the inherited new-composer Escape-focus case and its aggregate CI gate. The failing test block and its search/dismissal helpers are unchanged from both the local replay base and the exact CI merge base; landing uses the documented pre-existing-failure route.

Before — catalog RPC pending:

Before: model control shimmers while models.list is pending

After — the same pending RPC:

After: stable Default model control with no loading indicator

@vincentkoc vincentkoc self-assigned this Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 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 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 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 08:28
@vincentkoc
vincentkoc enabled auto-merge (squash) November 14, 2026 08:31
@vincentkoc
vincentkoc disabled auto-merge November 14, 2026 08:39
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. label Nov 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 55ac4467e80d45103edb87578e453091b4b0eb3a, but the PR head is now c1a863b7ab53954cf51743fd538a152905fd8c53. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T08:56:50.345Z sha 55ac446 :: needs changes before merge. :: [P2] Use the synchronous owner fact for the palette empty-result guard | [P2] Align the remaining Models-page tests with silent discovery

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 14, 2026
@vincentkoc
vincentkoc merged commit 2e2faf0 into main Nov 14, 2026
96 of 99 checks passed
@vincentkoc
vincentkoc deleted the fix/models-list-background-loading-20261114 branch November 14, 2026 13:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
* test(ui): require background-only model catalog reads

* fix(ui): keep model catalog loading in the background

* test(ui): align catalog consumers with background loading

* test(ui): wait for catalog results without progress indicators

* test(ui): observe catalog retry without a loading indicator
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 P2 Normal backlog priority with limited blast radius. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant