Repository navigation
fix: preserve credentials while preparing model catalogs - #201229
Merged
Merged
Conversation
Admit configured writable agent storage before auth capture so database creation cannot retire the credential snapshot being built. Retain existing refusal, read-only, and cancellation guards. Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 6455fc6e-8501-4334-9e58-761b670b9554
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
RomneyDa
marked this pull request as ready for review
November 18, 2026 13:31
RomneyDa
enabled auto-merge (squash)
November 18, 2026 13:33
Member
Author
|
Merged via squash auto-merge.
|
RomneyDa
added a commit
that referenced
this pull request
Nov 18, 2026
* fix: preserve credentials while preparing model catalogs Admit configured writable agent storage before auth capture so database creation cannot retire the credential snapshot being built. Retain existing refusal, read-only, and cancellation guards. Co-authored-by: RomneyDa <[email protected]> * fix: preserve credentials while preparing model catalogs OpenClaw-Publication: 6455fc6e-8501-4334-9e58-761b670b9554 --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 2272c09)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 19, 2026
…1229) * fix: preserve credentials while preparing model catalogs Admit configured writable agent storage before auth capture so database creation cannot retire the credential snapshot being built. Retain existing refusal, read-only, and cancellation guards. Co-authored-by: RomneyDa <[email protected]> * fix: preserve credentials while preparing model catalogs OpenClaw-Publication: 6455fc6e-8501-4334-9e58-761b670b9554 --------- Co-authored-by: RomneyDa <[email protected]>
This was referenced Nov 20, 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Model authentication operations can lose the credential snapshot they just captured when preparing a newly created agent database. A concurrent config reload and logout can consequently return without the expected configured profiles.
User Impact
Authentication and catalog preparation now admit their writable local storage before capturing credentials. No configuration changes, migration, or user action are required.
Why This Change Was Made
Move the existing guarded database-admission step ahead of workspace/auth capture, retaining the same refusal, read-only, generation, and cancellation checks. Discovery remains asynchronous. The accepted firstbirth fixture fix from #201176 is unchanged.
Evidence
fab709100ef164ae66a345cf784483eaff349728: the existing hybrid auth-logout/config-reload regression failed atmodels-auth-removal.integration.test.ts:299because the expected profiles were undefined.git diff --checkpass.fab709100ef164ae66a345cf784483eaff349728:scoped-clean, no findings. Coverage is the supplied diff; unchanged surrounding modules were not included in that automated review. Published head49608cd36679ba5c7f5d53528d4ab855e8f1dd8ahas the identical tested/reviewed tree6ed976abef462d15e0a913dc3d685e791f241cb2.Focused validation
# Run once with each runtime: node and bun OPENCLAW_VITEST_RUNTIME=node node scripts/run-vitest.mjs run src/agents/prepared-model-catalog-worker.oauth-peers.integration.test.ts src/gateway/server-methods/models-auth-removal.integration.test.ts src/gateway/server.sessions.create.firstbirth.test.ts src/agents/prepared-model-runtime.cancelled-admission.test.ts --maxWorkers=1 --reporter=verbose node scripts/run-format.mts --check src/agents/prepared-model-runtime.build.ts node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/prepared-model-runtime.build.ts node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/lifecycle-core.tsbuildinfo git diff --check