Repository navigation
fix(ui): keep model catalog reads in the background - #198751
Merged
Merged
Conversation
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. |
vincentkoc
marked this pull request as ready for review
November 14, 2026 08:28
vincentkoc
enabled auto-merge (squash)
November 14, 2026 08:31
vincentkoc
disabled auto-merge
November 14, 2026 08:39
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
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
This was referenced Nov 17, 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.
What Problem This Solves
Model catalog reads display loading indicators and shift model controls while
models.listis 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.listheld 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:
After — the same pending RPC: