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
Commit 2ae5669
Browse filesBrowse the repository at this point in the historyBrowse files
fix(agents): align plugin tool auth with provider runtime (#103852)
* fix(agents): count env/config credentials in plugin tool provider-auth gating (#103828)
The plugin-tool availability gate (hasAuthForProvider) consulted only the
auth profile store, so tools like image analysis rejected providers whose
API key arrives via the process environment (including keys injected
through OPENCLAW_SERVICE_MANAGED_ENV_KEYS) or config apiKey SecretRefs -
paths chat routing resolves fine via resolveApiKeyForProvider. Route the
gate through the shared hasProviderAuthForTool helper the media model
selection already uses, which layers runtime env, custom-provider
SecretRefs, managed secrets, and the profile store.
* fix(agents): preserve unprepared auth fallback
Keep direct env lookup for callers without a prepared runtime auth lookup while allowing prepared plugin-tool composition to skip redundant metadata discovery.
---------
Co-authored-by: Peter Steinberger <[email protected]>
0 commit comments