Skip to content

fix: Models page stays on checking after catalog publication - #177667

Merged
steipete merged 1 commit into
mainfrom
fix/model-provider-publication-catchup
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/model-provider-publication-catchup

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the Models settings page staying on “Checking models…” when a completed catalog is published while the initial auth read is still pending.

User Impact

The provider card reaches Ready after discovery completes, without a manual refresh. Agent changes still retire work belonging to the previous agent.

Why This Change Was Made

Restore the core loader’s coalesced publication catch-up: an overlapping notification schedules one read after the active operation settles. Both core and catalog completion drain it; invalidation clears it. This restores the behavior and regression test from #173385 that were removed in #177437.

The extra state records an actual missed notification, so it cannot be derived from the current loading flag. Production code grows from 168 to 179 lines (+11); the restored regression adds 39 test lines. This is a separate bug fix and does not count toward the chat reduction campaign.

Evidence

Before/after native real-Gateway screenshots: inspected visual proof.

Check Result
Restored regression on the broken base Fails: provider remains Checking models
Complete catalog test file, default pinned Bun, one worker 14 tests passed
UI typecheck (tsrs) Passed
Targeted lint Passed
Formatting and diff checks Passed
Independent review (P0–P2) No actionable findings
Full CI, run 39314156542 Passed, including all UI, browser E2E and real-Gateway shards
Solid refactor checklist Controllers, effects, untrack, listeners, DOM queries, flush, and owner captures all remain 0 in the changed production file

The restored test holds auth pending, publishes the ready catalog twice, and checks the displayed status, settled catalog, and one coalesced follow-up read. Existing tests cover agent changes and retired retries. No rendering, CSS, or startup-import changes; no build or visual capture was needed. Full ci:full regression proof passed on this exact head.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T19:52:18.311763Z 45518cd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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 Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR coalesces catalog publications received during active Models-page reads into one follow-up refresh.

Example: The openai catalog becomes ready while agent main’s initial authentication read is pending.

  • Before: The provider card can remain on “Checking models…” until another refresh.
  • After: The loader reads the completed publication after the active operation settles and displays Ready.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-consistent restoration with a meaningful regression; behavioral evidence is limited to the in-process page harness.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises the real page and loader through mocked Gateway requests, without a current-head shipped-entry-point artifact.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A completed provider discovery can leave the Models page displaying “Checking models…” until another refresh.
Reason: Automatic status convergence has clear user value, and the maintainer-authored restoration supplies the direction decision despite the earlier accepted best-effort tradeoff.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR restores catalog catch-up behavior that current main lacks, and source review found no actionable introduced defect.

Priority: P2
Reviewed head: 45518cd8bbdaa68cc215540417092583b3e48b11

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not demonstrate this head’s delayed-authentication publication scenario through a running Gateway and browser.
Agent review details

How this fits together

The Control UI’s Models loader consumes Gateway authentication and catalog results, handles publication notifications, and supplies scoped provider status to the Solid page.

flowchart TD
  Gateway[Gateway catalog events] --> Page[Models page owner]
  Page --> Loader[Core loader]
  Loader --> Reads[Authentication and catalog reads]
  Reads --> Cache[Shared catalog cache]
  Loader --> Page
  Cache --> View[Solid provider cards]
  Page --> View
Loading

Technical review

Best possible solution:

Retain one missed-publication flag in the existing core loader, consume it when reads settle, and clear it when their scope is retired.

Do we have a high-confidence way to reproduce the issue?

Source establishes the missed-event path, and the author reports the restored rendered-page regression failing on the base and passing on this head; no runtime reproduction was performed during this read-only review.

Is this the best way to solve the issue?

The restoration is the smallest complete fix within the existing owner: it remembers actual missed notifications without adding timers, competing caches, or another refresh mechanism.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2cd23b665868.

Provenance checked

  • Overlapping Models catalog publication changes intended behavior with a stated reason (b6666b7: The earlier maintainer refactor accepted stale checking metadata until ordinary or manual refresh to remove trailing-refresh bookkeeping.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced hunks add one pending-publication flag, drain it from both existing finalizers, and clear it on replacement or invalidation; all changes serve the stated status-refresh problem. (ui/src/pages/model-providers/core-load.ts:123, 45518cd8bbda)
  • Current-main behavior: Fetched main retains the early return that discards overlapping publications; the affected files match the pinned base, so this restoration remains necessary. (ui/src/pages/model-providers/core-load.ts:121, 2cd23b665868)
  • Historical intent and owner direction: fix(ui): clear stuck model checks after catalog publication #173385 introduced this catch-up behavior; refactor(ui): reuse presentation lifetime owners #177437 deliberately removed it as an accepted best-effort tradeoff. This maintainer-authored PR explicitly chooses to restore it and explains why the missed-notification state is necessary. (ui/src/pages/model-providers/core-load.ts:124, b6666b7eabb9)
  • Meaningful regression and lifecycle coverage: The restored test delays authentication, sends two publication events, and checks visible Ready, cleared pending status, and one follow-up catalog read; existing cases cover agent replacement and retired retries. (ui/src/pages/model-providers/model-providers-page.catalog.test.ts:79, 45518cd8bbda)
  • Discussion and exact-head validation: The complete live body and comments contain reported red/green regression results and focused checks, with no changed-path runtime artifact. The head remains 45518cd; remaining browser/Gateway checks and the combined CI gate are pending, with no observed failed test check. Body identity supplied by the host: 7a9e0c05acca1e65ee4909fd4ac04df589a34a9639133c7fcd8d3dc0c33e5e51. (45518cd8bbda)
  • Repository policy and inspection limits: Read the complete root and UI AGENTS.md files and applied Solid, test-audit, and pr-simplify guidance; no deeper UI policy or maintainer-notes directory was present. The installed Solid cheatsheet was unavailable, and historical traversal reached an unavailable old object after the relevant history was inspected. No target code or second reviewer was run; final status was clean. (ui/AGENTS.md:14, 45518cd8bbda)

PR surface

Source +11, Tests +39. Total +50 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 12 1 +11
Tests 1 39 0 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 51 1 +50

Review metrics

Metric Value Why it matters
Production versus test changes Production +12/-1; tests +39/-0 The small production increase records a missed event that loading state cannot represent; the test protects the resulting visible status and coalescing behavior.

Root-cause cluster

Relationship: canonical
Canonical: #177667
Summary: This PR restores the same publication catch-up behavior previously implemented and then deliberately removed.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: The Models page can retain stale checking status, but its existing Refresh control provides in-product recovery.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The Models page can retain stale checking status, but its existing Refresh control provides in-product recovery.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 4:04 PM ET / 20:04 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Before/after: automatic catalog publication

Captured with the native real-Gateway UI E2E harness and synthetic quota fixtures. Both runs use a 1280×900 viewport; the identical main-pane crop removes the local diagnostic sidebar/footer. The full uploaded images were inspected for secrets, personal data, internal identifiers, and unrelated content.

The harness holds the first real browser auth reply while a real catalog publication completes, then releases that reply unchanged. No catalog or auth payload is substituted, and neither run clicks Refresh. Before uses main at 153d9f080ffc; after applies only this PR's core-load.ts change from 45518cd8bbda to that same base.

Before remains Checking models… through the existing 60-second Ready assertion. After reaches Ready automatically; the focused native case passes (26.8 seconds). The account remains signed in in both frames.

Before

Before: signed-in synthetic account remains on Checking models after catalog publication

After

After: the same synthetic account automatically reaches Ready

The capture-only scheduling instrumentation received P0–P2 review with no actionable findings. No PR code, assertion, or timeout was changed for this media follow-up.

vincentkoc added a commit that referenced this pull request Oct 19, 2026
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...
vincentkoc added a commit that referenced this pull request Oct 19, 2026
#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
openclaw#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (openclaw#177614)
  fix(release): tag restart plugin cohorts consistently (openclaw#177725)
  refactor(ui): inline single-caller detail requests (openclaw#177705)
  chore(i18n): refresh native locales (openclaw#177721)
  refactor(codex): drop unread private runtime reports (openclaw#177689)
  refactor(ui): consolidate static artwork registries (openclaw#177692)
  refactor(ui): derive settings schema analysis in the view (openclaw#177624)
  refactor(media): consolidate capability defaults and compression grids (openclaw#177665)
  refactor(auth): bind OAuth managers to native provider operations (openclaw#177676)
  refactor(ui): remove redundant component rendering layers (openclaw#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082)
  fix(agents): report failed secret input prompt delivery (openclaw#177688)
  refactor(ui): share chat message render contracts (openclaw#177668)
  fix(ui): settle model status after overlapping publication (openclaw#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670)
  refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635)
  refactor: fold private operation helpers into their callers (openclaw#177655)
  refactor(ui): remove unused chat leaf element adapters (openclaw#177582)
  perf(talk): use published authority for foreign voice writes (openclaw#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant