Skip to content

fix(web): honor config-aware SearXNG env lookup#34300

Draft
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix-34290-searxng-config-env
Draft

fix(web): honor config-aware SearXNG env lookup#34300
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix-34290-searxng-config-env

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

  • make the SearXNG provider resolve SEARXNG_URL through Hermes' config-aware env lookup before falling back to raw process env
  • route tools/web_tools._has_env() through the same lookup so backend auto-detect and check_web_api_key() stay consistent
  • add regression coverage for provider availability, search dispatch, backend auto-detect, and API-key checks when the URL is only available through Hermes env handling

Verification

  • uv run --frozen pytest -q -o addopts='' tests/tools/test_web_providers_searxng.py
  • uv run --frozen ruff check plugins/web/searxng/provider.py tools/web_tools.py tests/tools/test_web_providers_searxng.py
  • git diff --check

Notes

  • narrow fix for #34290 only; no broader web-provider config migration included
  • retained worktree: /Users/leongong/Desktop/LeonProjects/worktrees/hermes-agent/fix-34290-searxng-config-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/plugins Plugin system and bundled plugins comp/tools Tool registry, model_tools, toolsets P2 Medium — degraded but workaround exists tool/web Web search and extraction type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants