Repository navigation
Conversation
|
Codex review: needs changes before merge. What this changesThis PR adds replace-mode catalog metadata and a model-picker explanation linking to provider settings. Example: A replace-mode configuration lists only openai/gpt-5.5.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this useful PR open: current main still lacks the explanation, and the previously reported catalog-generation mismatch remains unfixed. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Gateway projects prepared model catalogs into models.list and chat.metadata responses, which the Control UI caches and renders in its model picker. flowchart LR
A[Authored configuration] --> B[Prepared catalog owner]
B --> C[Gateway model projection]
C --> D[Catalog response metadata]
D --> E[Control UI catalog state]
E --> F[Model picker and settings link]
Technical reviewBest possible solution: Carry the authored catalog-mode fact with its prepared catalog generation and expose it through the current shared catalog store and picker. Do we have a high-confidence way to reproduce the issue? Source establishes the current-main explanation gap and the PR's generation mismatch; no target code was executed during this read-only review. Is this the best way to solve the issue? The Gateway-to-picker approach is appropriate, but reading global source configuration after projection is the wrong ownership boundary; reuse main's captured runtime/source pair instead. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 32748bce75c8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +157, Tests +300. Total +457 across 26 files. Added test files: 1. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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 HistoryReview history (61 earlier review cycles; latest 8 shown)
Reviewed October 16, 2026, 4:18 AM ET / 08:18 UTC (Revision 62). |
bc19bd8 to
8cd82b6
Compare
|
Rebased onto current Desktop, 1280x900: Mobile, 393x852: The deterministic Control UI mock returned Validation on the rebased head:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Pushed Validation after the cleanup:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review exact head 18111d0498817016c65c9ac4e0c220e8b47ef90d. The disconnected catalog reset finding remains fixed, the branch is rebased onto current main 7fe75ac, and the PR body has the exact integration evidence. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head 2d4c102dd46a5c92197f3a4fc57691e2d2df1ecb resolves the P2 metadata-refresh finding at the Gateway producer: chat.metadata now propagates catalogMode, and ordinary refresh coverage proves the picker keeps the replace-mode hint from fresh server state. Validation is recorded in the PR body: Gateway 56/56, Control UI 304/304, Chromium E2E 6/6, plus protocol, i18n, type, SDK-surface, and production-build checks. GitHub currently reports MERGEABLE; the branch is BEHIND only. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head 1553ebaf33120deaf83504e82c9231055d862728 fixes the hosted check-lint failure without behavior changes: the configured catalog-mode decision was moved into a focused sibling helper so models-list-result.ts is below its max-lines threshold. CI-equivalent lint, focused Gateway/UI tests, types, formatting, and diff checks are green; exact details are in the PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This PR has been waiting on author changes since mid-August with no new commits, and the Control UI model picker has been substantially reworked since. If the replace-mode explanation is still missing, please open a fresh, smaller PR against current main. |


Closes #104545
What Problem This Solves
When
models.modeisreplace, the configured model catalog is intentionally filtered, but the Control UI model picker did not explain why models were missing or provide a direct path to manage provider models. The hint must also disappear when the catalog is cleared or the Gateway disconnects.What Changed
catalogMode: "replace"metadata to configuredmodels.listresponses.Manage modelslink to/settings/model-providers.Current Head
18111d0498817016c65c9ac4e0c220e8b47ef90d.main7fe75acb5f4.Sami Rusani <[email protected]>.models.listpicker inventory and agent-scoped model-cache behavior are preserved.Evidence
The source-equivalent post-integration head passed 30 Gateway model tests and 292 Control UI tests. The final rebase conflicted only in generated Plugin SDK contract hashes; the exact-head SDK API and diff checks passed after canonical regeneration.
Exact-head Gateway model-list suite: 1 file, 30 tests passed.
Exact-head Control UI model/state/view suites: 3 files, 292 tests passed.
Exact-head protocol registry/generation/Swift/Kotlin checks passed.
Exact-head Plugin SDK API baseline and
git diff --checkpassed.Production-built browser proof: 1 file, 6 tests passed on source-equivalent head
b3ceb5d3a0e580e65b9dfbe47be5ab1d1c32405f.Isolated real-Gateway RPC proof: 1 file, 1 test passed on source-equivalent head
b3ceb5d3a0e580e65b9dfbe47be5ab1d1c32405f.UI build, i18n baseline/verify, test types, max-lines, format, and changed-file repository guards passed on source-equivalent head
b3ceb5d3a0e580e65b9dfbe47be5ab1d1c32405f.Repository-pinned SwiftLint 0.65.0 reported zero violations across all app lanes; no system install or keychain access was used.
The final rebase changed only generated SDK contract hashes; the affected exact-head API, protocol, Gateway, UI, and diff checks were rerun.
Behavior Proof
The proof uses an isolated Gateway RPC for metadata plus the production-built Control UI browser test for rendering, navigation, and disconnected cleanup. No external credentials or provider calls were used.
{ "proofHead": "b3ceb5d3a0e580e65b9dfbe47be5ab1d1c32405f", "currentHead": "18111d0498817016c65c9ac4e0c220e8b47ef90d", "behaviorPatchEquivalent": true, "surface": "isolated configured Gateway RPC plus production-built Control UI", "observed": { "modelsListCatalogMode": "replace", "providerInternalsRedacted": true, "controlUiHintVisible": true, "manageModelsHref": "/settings/model-providers", "disconnectedCatalogModeCleared": true, "sourceEmptyRuntimeHydratedCatalogModeOmitted": true }, "externalCredentialsOrProvider": false, "result": "pass" }AI Assistance
AI-assisted: yes. Codex was used to inspect contributor rules and review feedback, implement and rebase the patch, run focused and repository validation, and produce isolated Gateway and production-built browser proof. No agent transcript is attached.
Latest exact-head repair evidence (2026-08-13)
This update supersedes earlier head and validation identifiers above.
CI lint repair (2026-08-13)
Latest Exact-Head Production Control UI Proof (2026-08-14)
This block supersedes only the earlier source-equivalent runtime proof above.
b0d3ec0b17d0f12338464e2fa75324e5497ca693(author and committer:Sami Rusani <[email protected]>). No rebase was introduced for this proof; GitHub currently reports the PR asBEHINDbut mergeable.pnpm ui:buildpassed at that exact head. The Gateway served production assetassets/index-DWxTtIgT.jswith SHA-2568de8b200f44479f91943e15718d15d7e65935952b398f7a7c4b5a06b3fe77250.proof-provider/replace-model. The mounted production Control UI connected to it through a native authenticated browser WebSocket.chat.metadataover that WebSocket. Its real Gateway response reportedcatalogMode: "replace"and modelreplace-model; the normal pane refresh then completed and the picker was rechecked. No browser route, fulfill, interception, response stub, or external provider call was used.Replace mode filters models according to your model settings. Manage modelsbefore and after the real metadata request.Manage modelsnavigated to/__openclaw__/settings/model-providers, whereopenclaw-model-providers-pagerendered.pnpm exec vitest run ui/src/e2e/chat-model-replace-mode.e2e.test.ts src/gateway/server-methods/chat-metadata-runtime.test.ts(24/24).summary.jsonSHA-2560ff267e3e4aedae80a1c3e8d671487eaff4e03377a272f7c217fdfbb04fe6afa; picker-before SHA-2567c64c27b2f9b37d4faf95a0aeda64bc11fba11efbea06b0379d715a6207146c0; provider-route SHA-256783fe8218a3e37ed808306792ac08c82b8a9c47aa938775b2da370d375840de6; picker-after SHA-256f54f304e04d8aa74a4a64fd9d7e99c0f58383f23c5bd955b65292fe953884396. Gateway token and provider key were not present in retained text artifacts; the isolated process exited.