Skip to content

fix(gateway): refresh model availability after OAuth renewal - #104732

Merged
fuller-stack-dev merged 1 commit into
release/2026.7.1from
codex/backport-102289-2026.7.1
Jul 11, 2026
Merged

fuller-stack-dev merged 1 commit into
release/2026.7.1from
codex/backport-102289-2026.7.1

Conversation

@fuller-stack-dev

Copy link
Copy Markdown
Member

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

  • Stable patch ID matches merged PR fix(gateway): refresh model availability after OAuth renewal #102289 exactly.
  • 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.
  • 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Jul 11, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Land-ready at exact head 16c289481c59d91b02a5d397b3a366af95b735f5.

Verification:

  • Stable patch ID matches merged source PR fix(gateway): refresh model availability after OAuth renewal #102289 exactly.
  • 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.
  • git diff --check upstream/release/2026.7.1...HEAD — clean.
  • 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.

@fuller-stack-dev
fuller-stack-dev merged commit d181ac8 into release/2026.7.1 Jul 11, 2026
116 of 121 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the codex/backport-102289-2026.7.1 branch July 11, 2026 22:09
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Landed on release/2026.7.1 as d181ac8b50c1e9b55972d2d2852ea3e11837dd79.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant