Files
hermes-agent/tools
beardthelion d945faf5e0 fix(web): xai credentials alone no longer light the web_search/web_extract gate
check_web_api_key OR-ed _is_backend_available over _LEGACY_WEB_BACKENDS,
which includes "xai" — a bare has_xai_credentials() probe kept in
_BUILTIN_AVAILABILITY for bookkeeping. XAI_API_KEY or an xai OAuth grant
therefore registered web_search/web_extract even when no xai web provider
could serve: the bundled web-xai plugin disabled via plugins.disabled,
failing to load, or absent in a stripped environment. Dispatch then fell
through to "No web search provider configured" on every call.

The gate now skips the bare xai probe; the plugin path
(get_active_search_provider / get_active_extract_provider) still lights
the tools when the web-xai provider is actually registered and available.
A stored web.backend: xai still counts, so an explicit selection keeps
surfacing its own dispatch error.
2026-09-20 10:14:37 -07:00
..