Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 25, 2026, 3:45 PM ET / 19:45 UTC. ClawSweeper reviewWhat this changesThis PR publishes dynamically discovered provider models after Gateway startup and makes the Control UI’s New Session picker wait for the published catalog while preserving static choices. Merge readiness⛔ Blocked by patch quality or review findings - 8 items remain Needs changes before merge: the branch’s embedded provider-scope logic can run authenticated discovery for an unreferenced global provider, contradicting its stated isolation goal and the linked prerequisite’s intended contract. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherGateway startup prepares static model facts, then a post-ready worker can discover provider-specific models and publish them. New Session reads the prepared catalog first, waits for runtime publication, and sends its selected model and thinking level to session creation. flowchart LR
A[Agent model references] --> B[Prepared static catalog]
B --> C[Post-ready provider discovery]
C --> D[Published runtime catalog]
B --> E[New Session initial choices]
D --> F[Readiness-confirmed model list]
F --> G[Session creation]
G --> H[Model and thinking level]
Decision needed
Why: The checked-out branch preserves that activation, while the linked prerequisite describes configuration-only providers as inactive; this compatibility and privacy boundary requires maintainer intent. Before merge
Findings
Agent review detailsSecurityNeeds attention: The provider-selection defect can initiate authenticated catalog I/O outside the selected agent scope. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one provider-scope rule across the prerequisite and this consumer: only effective agent references or explicit authenticated selection may trigger runtime discovery, with a regression proving an unreferenced configured provider receives zero I/O. Do we have a high-confidence way to reproduce the issue? Yes, from source: an allow-any agent with an unreferenced runtime provider under models.providers selects that provider at src/agents/prepared-model-runtime.configured.ts:110, then reaches its catalog hook. Is this the best way to solve the issue? No; the New Session readiness flow is plausible, but the embedded prerequisite’s global-provider selection contradicts the stated agent-scoped discovery contract and must be resolved first. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against edd7b25e47b6. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (32 earlier review cycles; latest 8 shown)
|
Real behavior evidenceValidated in an isolated
The head also repairs the stale retry assertions called out in the review: reopening the picker now proves two configured @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
After-fix Gateway + New Session evidenceThe earlier exact-level mismatch is fixed in An isolated packaged Gateway and source Control UI ran against a disposable loopback state directory. The model configuration was derived from the OmniRoute production catalog normalizer's output for The actual browser New Session path then selected that model, asserted Public artifactsEvidence bundle and SHA-256 hashes Assertion summary · sanitized producer input Producer scope is precise: the OmniRoute production normalizer was invoked directly to establish the input map; this comment does not claim that the complete externally installed plugin entry ran inside the Gateway scenario. Validation on the new commit:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Addresses the August 21 fresh-start P1 at 3b31368cdc7c3903cb3acb6a814e7b93e9b02dbd.
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Follow-up evidence — exact head
|
Exact-head repair evidence —
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Exact-head split-stack evidence —
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Recovery note: GitHub closed this PR when its source fork was deleted. The useful work is now continued by #129307 for New Session and catalog convergence, and #129623 for provider-defined reasoning-level preservation. The exact original head a6b8ff1 has been restored to ekinnee/openclaw for preservation; no duplicate continuation PR is planned. |


Closes #124008
Depends on #128863, which owns the generic provider-outcome and agent-scoped discovery contract. This PR owns the lifecycle, Gateway, protocol, session, and Control UI consumer behavior.
What Problem This Solves
New Session could receive and cache a successful but incomplete static model catalog before post-ready runtime discovery published configured provider models. The first New Session then omitted the dynamic model, or metadata remained on the pre-publication projection.
Why This Change Was Made
waitForRuntimeDiscoveryreadiness and retries while publication is pending.sessions.createand session projections.There is no request-time provider discovery, UI fallback catalog, or provider-specific core policy.
User Impact
The first New Session can retain immediately available static choices while a configured dynamic provider warms up, then expose and select the discovered model without reopening the picker or reloading the page. The created session keeps the selected model and thinking level.
Evidence
Exact-head Gateway and Control UI proof
Head
a6b8ff13c5b376c955e512e6368d3728d9828a48; prerequisite5c295afd71ff4a19abb4790be3772acefe66dd70; frozenmain998128abd85b76ee2ac57211a87df1ae3ff592f6.The redacted exact-head proof comment includes four directly inspectable captures. Machine-readable summary, timeline, Gateway log, and hashes are in the existing private evidence bundle.
The disposable loopback-only run used exact-head production
dist/entry.js, its production Control UI, and the actual built@ekinnee/[email protected]plugin. Its proof copy maps the plugin's known legacynullfailure to the new explicitunavailableoutcome; OpenClaw production code was not adapted./v1/models: 503, 503, then 200.UNAVAILABLE(startup-sidecars) whileOmniRoute Autoremained present.omniroute/deepseekv4flashwithoff,low,medium,high,xhigh.sessions.createretained the dynamic model andxhigh.Regression and local validation
checks-ui-e2e (4/12)command was reproduced locally before repair, then passed at the final head: 25 files, 89 tests.git diff --checkpassed.overall: patch is correct, confidence 0.83).Codex dependency contract
Direct sibling Codex source was checked at
d1d51f6315f84a1737c655cb4d78104d030d5102: model listing is handled by the catalog processor and populated fromThreadManager.list_models, while the protocol model preservessupported_reasoning_effortsand default effort. See catalog_processor.rs, models.rs, and protocol Model.Scope and LOC
Against #128863:
+1086/-319, net+767before discounting the detected shared-store move;+2089/-372, net+1717;+22/-0;+3197/-691across 72 paths.The production growth implements one user-visible lifecycle/readiness path and consolidates New Session, Chat, account refresh, and session-start consumers onto the shared model-catalog store. The generic provider contract and official-provider migrations are no longer part of this PR's architectural decision surface; they are isolated in #128863.
ClawSweeper Items Addressed
@clawsweeper re-reviewcommand is posted; the pushed head should be detected automatically.Stack Landing Note
Because both heads originate from a contributor fork, GitHub cannot use the fork's prerequisite branch as #126013's base. The branch nevertheless contains two clean commits, and #128863 exposes the prerequisite as its own review surface. Please land #128863 without squashing its exact commit away—merge commit, or rebase merge while up to date—so #126013 keeps its current exact reviewed/proven head and automatically reduces to the consumer commit. The repository-native flow supports
OPENCLAW_PR_MERGE_METHOD=merge|rebase.