You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(gateway): refresh model availability after OAuth renewal - #104732
Fixes an issue where users who renewed provider OAuth from another CLI process could continue seeing models reported as unavailable while the Gateway retained an older runtime auth snapshot.
Why This Change Was Made
Model browsing now reads the persisted auth-profile store for availability checks without mutating the Gateway's execution snapshot. This is the exact source patch from #102289, including its regression test.
User Impact
Freshly renewed OAuth credentials become visible to model listing without requiring a Gateway restart.
pnpm test src/gateway/server-methods/models.test.ts -- --reporter=verbose: 30/30 tests passed on AWS Crabbox cbx_f3a7847dadfa (run_f139cd26d7b7) against the final release-branch base.
Codex autoreview (gpt-5.6-sol, high): clean, no accepted/actionable findings.
pnpm test src/gateway/server-methods/models.test.ts -- --reporter=verbose — 30/30 tests passed on AWS Crabbox cbx_f3a7847dadfa, run run_f139cd26d7b7, against the final release/2026.7.1 base.
$AUTOREVIEW --mode branch --base upstream/release/2026.7.1 --engine codex --model gpt-5.6-sol --thinking high — clean, no accepted/actionable findings.
Latest target ancestry verified before push; remote PR head equals the reviewed local head.
Known proof gap: no live provider call was run. The focused regression directly exercises the persisted OAuth refresh boundary, and this is an exact backport of the already-merged mainline fix.
The squash merge was pinned to reviewed PR head 16c289481c59d91b02a5d397b3a366af95b735f5. The release branch now contains the persisted OAuth availability reload and regression coverage from source PR #102289.
Proof: AWS Crabbox cbx_f3a7847dadfa / run_f139cd26d7b7 passed 30/30 focused Gateway model-list tests; final Codex autoreview was clean; merge-tree and required-check verification were clean (no required checks configured).
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #102289 to
release/2026.7.1.What Problem This Solves
Fixes an issue where users who renewed provider OAuth from another CLI process could continue seeing models reported as unavailable while the Gateway retained an older runtime auth snapshot.
Why This Change Was Made
Model browsing now reads the persisted auth-profile store for availability checks without mutating the Gateway's execution snapshot. This is the exact source patch from #102289, including its regression test.
User Impact
Freshly renewed OAuth credentials become visible to model listing without requiring a Gateway restart.
Evidence
pnpm test src/gateway/server-methods/models.test.ts -- --reporter=verbose: 30/30 tests passed on AWS Crabboxcbx_f3a7847dadfa(run_f139cd26d7b7) against the final release-branch base.gpt-5.6-sol, high): clean, no accepted/actionable findings.git diff --check upstream/release/2026.7.1...HEAD: clean.Known proof gap: no live provider call was run; the focused regression exercises the persisted OAuth refresh boundary directly.