Repository navigation
fix(ui): clear stuck model checks after catalog publication - #173385
Conversation
|
🦞👀 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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR retains catalog publications received during loading and reconciles them once the Models loader becomes idle. Example: OpenAI catalog discovery finishes while the Models page is still awaiting its initial credential response.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a concrete dropped-publication path still present on current main, and no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI Models controller receives Gateway catalog events and uses its scoped core loader to refresh credential and catalog projections displayed by provider cards and model pickers. flowchart TD
A[Gateway catalog publication] --> B[Models page controller]
B --> C[Core loader]
C --> D[Pending publication flag]
D --> C
C --> E[Shared catalog and credential readers]
E --> F[Provider cards and model pickers]
Technical reviewBest possible solution: Retain the focused pending-publication repair within the existing loader and complete normal exact-head CI before landing. Do we have a high-confidence way to reproduce the issue? Source shows publication events being discarded while auth or discovery is pending, and the supplied regression reports the corresponding failure before the fix; no target code was executed during this review. Is this the best way to solve the issue? The change addresses the dropped event at its existing loader owner with bounded coalescing and preserves request retirement, shared catalog ownership, and independent usage loading. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 486f5b5181fb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +11, Tests +39. Total +50 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 2:39 PM ET / 18:39 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes Models remaining on “Checking models…” when a completed catalog publication arrives while the initial credential read is still pending.
User Impact
Provider cards adopt the ready catalog after the active load, without another manual refresh.
Why This Change Was Made
Keep one pending publication and consume it after the active core/catalog reads finish. A replacement read absorbs it, and scope invalidation clears it. Provider cards then adopt the ready catalog without another manual refresh.
The regression sends two catalog-invalidating events through the existing page harness while auth is pending, then verifies visible Ready, no pending provider, and one coalesced follow-up catalog read. No timers, timeout increases, weaker assertions, or production test seams.
No layout, startup import, tag, selector, or Gateway producer changes.
Evidence
model-providers-page.catalog.test.ts --maxWorkers=1pnpm tsgo:uigit diff --check366c77a50319b5a92af2ee55cfde9e1a0e4659ff: 3/3 UI unit shards, 9/9 browser shards, 2/2 real-Gateway shards pass; all other selected checks andopenclaw/ci-gatealso passBoth authored files are byte-identical after merging current main for recovery; the real PR diff remains two files, +51/−1. Reuse the focused local tests and independent review; fresh CI owns the current head. No local E2E/build was needed for this behavior-only change.
The previous head’s run 38798321191 passed all three UI unit shards, both real-Gateway shards, eight browser shards, and other selected checks. Its sole failure was the update-run success headline fixture, identical to scheduled main run 38794323475. That separate fixture repair (#173438) is now included through main. Native inherited-failure admission stopped before submission because GitHub kept reporting UNKNOWN mergeability; the documented recovery merged main and pushed once. Earlier CI remains historical, not current-head proof.
The same stuck status was seen in
quota-reset-status.real-gateway.e2e.test.tson scheduled main. Its artifacts do not establish event ordering, so this PR proves the concrete loader bug and covers the same visible symptom without claiming the historical CI cause was certain.LOC: loader 169 → 180; directly changed catalog tests 676 → 715; total 845 → 895. The extra production code is one pending flag and the idle refresh used by both existing finalizers.