- Use urllib.parse.urlencode to properly encode the POST body, so queries
containing special characters like '&', '+', '=' are sent correctly
- Extend execution_failure_check to also detect "No search results" as a
failure, preventing the agent from silently looping when all SearXNG
engines are rate-limited and return no results
- api.py: uvicorn.run was hardcoding port=7777 instead of using the
port variable populated from BACKEND_PORT env var, making BACKEND_PORT
ineffective when running python api.py directly
- searxSearch: add missing 'import sys' (caused NameError when run as
standalone script) and use constructor base_url arg with env var
fallback so searxSearch(base_url=...) actually takes effect