Repository navigation
perf(onboarding): avoid broad provider-auth runtime imports - #127680
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 21, 2026 23:16
Contributor
Author
|
Maintainer proof for head
|
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 22, 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.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Onboarding provider authentication loaded the complete agent model-selection and provider-credential runtime merely to lowercase provider selectors. The focused eight-case onboarding suite imported 1,344 modules for roughly 15 ms of actual test execution; the same accidental dependency edges also inflated production auth-choice loading.
Why This Change Was Made
Use the existing canonical model-catalog provider-ID normalizer and existing canonical string normalizer directly at their actual consumers. Both previous wrappers delegate to those exact implementations, so provider aliases, selected-agent workspace ownership, manifest/catalog routing, public onboarding flags, profile persistence, and plugin boundaries remain unchanged. No mocks, test seams, dependencies, configuration, or production lines were added.
User Impact
Onboarding provider-auth choice preparation avoids loading unrelated model-selection, runtime registry, plugin loader, session, and credential graphs. Provider selection and observable CLI/configuration behavior are unchanged.
Evidence
Eight interleaved, order-balanced baseline/candidate pairs on the same Blacksmith Testbox, after excluded warmups; one Vitest worker, distinct filesystem module-cache paths, complete import-duration reporting, and
/usr/bin/time -v:pnpm check:changed,pnpm build, targeted formatting,git diff --check, and fresh structured autoreview.+3/-3(net zero). Tests: unchanged.tbx_01m0k7mptwgqvanadkxwcvhh01.AI-assisted; no agent transcript.