Repository navigation
feat(providers): keep registered setup connection-only - #142202
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: blocked before merge. Reviewed September 8, 2026, 9:59 AM ET / 13:59 UTC. ClawSweeper reviewWhat this changesAdds connection-only provider setup helpers and migrates eleven provider registrations while preserving existing catalog-seeding APIs and explicit replace-mode behavior. Merge readiness⛔ Blocked before merge - 3 items remain The PR remains useful: current main still seeds catalogs through these registrations. No concrete introduced correctness defect was found, and the protected maintainer label rules out automatic cleanup. Priority: P2 Review scores
Verification
How this fits togetherProvider setup combines connection details with saved model preferences. These SDK helpers prepare configuration for the authentication flow, while provider catalogs supply the available models. flowchart TD
A[Provider setup] --> B[Connection details and saved preferences]
B --> C{Explicit replace mode?}
C -->|No| D[Preserve authored model rows]
C -->|Yes| E[Merge generated model rows]
D --> F[Save connection and aliases]
E --> F
F --> G[Provider catalog and model selection]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +161, Tests +170, Docs +23. Total +354 across 25 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep setup connection-only, retain authored preferences and legacy helper contracts, and validate the migrated plugins with their paired host release. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect reproduction: this changes setup policy and adds SDK capabilities. Current source confirms the existing catalog-seeding behavior, and the PR reports before/after registered CLI observations. Is this the best way to solve the issue? Yes: the helpers reuse existing merge owners, retain public seeding behavior, and preserve the distinct replace-mode algorithms. Compiled package acceptance is the remaining validation boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b2058c2ecc4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Thanks @obviyus! Proof: Registered setup saves connection/default facts without copying the built-in catalog. The pinned NVIDIA baseline saved seven generated rows; the candidate saved zero. Authored merge and replace settings remain intact. The matching compiled Mistral host/plugin completed fresh and existing setup, then a real Gateway returned the synthetic provider reply for the configured default with matching requested/effective/response model identities. Saved configuration remained unchanged through catalog and inference.
Earlier fixture and standalone archive-validation failures remain recorded. Their successful operations were preserved; only the fully verified Mistral dependency path supplies the compiled runtime claim. |
Registered provider setup now saves a connection without pinning a copy of the built-in model catalog. Add shared connection-only presets and move the Cloudflare AI Gateway, Featherless, Hugging Face, LongCat, Meta, Mistral, NVIDIA, Synthetic, Together, regular Xiaomi, and Z.AI registrations to them. Ordinary setup preserves authored rows, defaults, fallbacks, and aliases. Explicit replace mode keeps the existing catalog-merge and required-default rules. Published helper APIs keep their catalog-seeding behavior. Shared descriptors remove duplicate provider decisions, and generated replace rows belong to the resulting config. The new SDK imports require a paired host/plugin release. The existing version-sync and package builder update the plugin API and peer ranges with that release. This change does not claim compatibility between the new plugin imports and an older released host. Validation: - 128 focused SDK and provider checks pass. Four connection-only checks fail when the mode condition is deliberately removed; the correct source is restored. - Real registered NVIDIA setup saves seven generated rows on the pinned baseline and zero on the candidate. Authored merge/replace settings and the available default remain intact. - The required CI artifact passes compiled Mistral setup for fresh, authored merge, and authored replace configurations. A real Gateway lists the configured default and returns one synthetic provider reply with matching requested, effective, and response models. Catalog and inference leave saved configuration unchanged. - Required CI passed on the exact candidate. Runtime proof uses its recorded CI merge build and matching compiled host/plugin, with existing dependencies and isolated synthetic state. No real vendor request or package publication occurred. - Independent acceptance passed all five clauses for the retained NVIDIA/Mistral observations. It did not replay runtime or claim coverage beyond those representative scenarios. The earlier fixture failure from comparing resolved configuration with raw saved JSON remains recorded. Its completed setup was preserved and was not repeated. The artifact's unrelated standalone GoogleChat dependency-link failure is also retained; the exercised Mistral dependency path completed successfully. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Provider setup saved copies of built-in catalogs into configuration, duplicating plugin-owned inventory and obscuring the distinction between a connection and authored model settings.
Why This Change Was Made
Eleven provider registrations use shared connection-only presets. Shared descriptors remove duplicate decisions while explicit replace mode keeps its existing catalog merge and required-default rules. Published helper APIs retain catalog-seeding behavior.
User Impact
Ordinary setup saves the connection while preserving authored rows, defaults, fallbacks, and aliases. The new plugin imports require a matching host release; they are not compatible with older hosts.
Consumers: the migrated provider setup registrations stop seeding built-in rows during ordinary setup.
Evidence
All 128 focused provider and plugin-development checks passed. Real registered setup saved seven generated rows before the change and zero afterward while preserving authored settings. Compiled setup passed fresh, authored-merge, and authored-replace cases. A real Gateway listed the default and delivered a synthetic reply without changing saved configuration. Required continuous integration passed. Two representative providers were exercised; no live provider request or package publication occurred. An unrelated standalone plugin dependency-link failure remains outside these successful checks.