Repository navigation
Preserve provider settings during onboarding updates - #100107
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 4:39 PM ET / 20:39 UTC. Summary PR surface: Source +94, Tests +251. Total +345 across 4 files. Reproducibility: yes. Source inspection shows current main replacing Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the shared onboarding merge behavior after exact-head checks once maintainers accept the explicit boundary: preserve operator-owned provider settings and clear omitted credential-bearing fields. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main replacing Is this the best way to solve the issue? Yes. The shared helper is the best fix because provider-specific workarounds would leave sibling onboarding paths exposed, while a shallow merge would risk reviving omitted credential-bearing fields. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5e0504aa437e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +94, Tests +251. Total +345 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (7 earlier review cycles)
|
8bb6fd6 to
50d87d4
Compare
|
I reviewed current head Best-fix verdict: this looks like the right narrow owner-boundary fix for the current regression. Alternatives checked:
Code read: Focused proof passed locally with the repo Node 24 runtime: /Users/harjothk/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node scripts/run-vitest.mjs src/commands/onboard-auth.config-shared.test.ts extensions/minimax/onboard.test.ts -- --reporter=verboseResult: 2 Vitest shards passed, 25 tests passed. |
50d87d4 to
69345b8
Compare
bc28f4e to
3214780
Compare
|
Maintainer refresh and deep review are complete on exact head The final shared onboarding writer preserves operator-owned provider settings and untouched providers while deliberately clearing omitted root and nested request authentication fields. Skeptical review also fixed canonical-key precedence, complete duplicate-key collapse, and MiniMax custom-model plus structured-SecretRef retention when repairing legacy provider keys. Proof:
This is the owner-aligned fix: the shared writer owns preservation and canonicalization, MiniMax resolves its own model/SecretRef state, and omitted credentials cannot be revived by a shallow merge. |
ca6cd7b to
9544a0d
Compare
9544a0d to
4f2f530
Compare
4f2f530 to
61cbd90
Compare
|
Merged via squash.
|
* Preserve provider settings during onboarding updates * fix(onboarding): clear omitted request auth * fix(onboarding): retain canonical provider keys * fix(onboarding): canonicalize provider updates * fix(minimax): preserve models across provider aliases * fix(minimax): preserve secret references during onboarding --------- Co-authored-by: Peter Steinberger <[email protected]>
* Preserve provider settings during onboarding updates * fix(onboarding): clear omitted request auth * fix(onboarding): retain canonical provider keys * fix(onboarding): canonicalize provider updates * fix(minimax): preserve models across provider aliases * fix(minimax): preserve secret references during onboarding --------- Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 664464c)
What Problem This Solves
Provider onboarding can refresh a provider's model catalog/config and accidentally drop provider-level settings that are not repeated in the new provider patch. In the observed OMLX/iMessage failure, losing
models.providers.omlx.timeoutSecondsmade long-running local/VLM work fall back to the implicit short provider watchdog after model/provider refreshes.The first version of this PR preserved those fields with a shallow merge, but ClawSweeper correctly flagged that as too additive for auth-bearing fields. Some provider onboarding paths, including MiniMax, intentionally omit stale/placeholder auth fields such as
apiKeyso runtime auth discovery can take over. This revision preserves non-auth provider settings liketimeoutSecondswhile letting provider-owned auth fields (apiKey,auth,headers) be cleared when omitted from the patch.Summary
apiKeyremoval.Evidence
Field Evidence
This PR came from a live OMLX/iMessage regression on a local VLM provider.
Observed broken state:
agents.defaults.timeoutSecondswas still configured high, butmodels.providers.omlx.timeoutSecondshad been dropped from the provider entry after provider/model config refresh.[model-fetch] start provider=omlx api=openai-completions model=Agents-A1-oQ6-fp16 ... timeoutMs=undefinedLLM request failed. | Request timed out before a response was generated. Please try again, or increase agents.defaults.timeoutSeconds in your config.After restoring the provider timeout and applying this merge behavior locally, the same OMLX provider path preserved and used the provider-level timeout:
models.providers.omlx.timeoutSeconds = 1200baseUrl=http://127.0.0.1:8000/v1,api=openai-completionsinput: ["text", "image"][model-fetch] start provider=omlx api=openai-completions model=Agents-A1-oQ6-fp16 method=POST url=http://127.0.0.1:8000/v1/chat/completions timeoutMs=1200000 proxy=none policy=custom[model-fetch] response provider=omlx api=openai-completions model=Agents-A1-oQ6-fp16 status=200 ... contentType=text/event-stream; charset=utf-8Follow-up observation, intentionally out of scope for this PR:
agents.defaults.timeoutSeconds=1200can still abort an active, streaming local-model run at 20 minutes.activeWorkKind=model_call lastProgress=model_call:stream_progress lastProgressAge=33sembedded run timeout ... timeoutMs=1200000Test Evidence
src/commands/onboard-auth.config-shared.test.ts:preserves provider-level settings when applying onboarding provider patchesproves a provider patch keepstimeoutSecondsand untouched providers.lets onboarding provider patches clear omitted auth fieldsproves omittedapiKey,auth, andheadersare removed whiletimeoutSecondsis retained.extensions/minimax/onboard.test.ts:drops placeholder apiKey while preserving provider timeoutproves the MiniMax sentinel/placeholderapiKeypath does not restore stale auth and still preservestimeoutSeconds.git diff --checklocally; it passed.node_modules; dependency hydration required registry access and was stopped after DNS/network failures in the sandbox. The PR branch is pushed so repository CI can run the authored regression tests in the normal environment.CI Notes
Real behavior proofis passing on the current PR revision.QA Smoke CI. Its failed run is broad smoke coverage, not the proof gate, and reportedpassed=19 failed=6 total=25in unrelated end-to-end scenarios such as memory fallback and telemetry/runtime smoke flows. I did not find evidence that those failures are caused by the provider-onboarding merge change in this PR.