Repository navigation
refactor(tools): remove unused auth source hints - #201996
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
November 19, 2026 18:55
Contributor
|
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
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
Tool preparation passes an auth-store-source Boolean through several private callers even though the credential helper never reads it. Four callers still perform asynchronous source probes just to populate that unused hint. Web-search also expresses its live lazy-preparation notification as a Boolean-returning callback whose return value is ignored.
User Impact
No intended change to tool availability, credential selection, or public SDK inputs. Prepared, published, and authoritative empty auth stores remain the credential owners. Config credentials still short-circuit before provider-auth lookup, followed by environment and fallback credentials.
Why This Approach
Remove the unused private hint and its four producer probes. Keep web-search's live notification explicit as a void callback at the same provider-auth lookup point, only when no auth store is supplied. Preserve the lazy preparation/retry path, error order, abort and authority checks, genuine source-check APIs, and real false-source auth test. The complete caller cutover removes 79 lines across 12 production files and two existing test inputs; no dependency, export, or public signature change.
Evidence
cd2ae19272a3ee7be456385fa7efc56d6e2109a6; signed candidate:361dd3fd93ddb4c8d06391ad53c4f283cd0220e2.agentDir/authStoreinputs and exports are unchanged. No performance savings claim.6d89083ac16992fc8ba67d99b818ef3cbb138dad; native closeout is COMPLETE. The normal merge verifier retained its mainline-infrastructure drift warning and proceeded under existing policy. The focused test/setup results are not a standalone full-build or performance proof.