fix(search): AIUI web search was 403ing on every query

SearXNG defaults to `formats: [html]`. Its JSON API answers 403 —
and JSON is the only thing AIUI's web search speaks, since
`/aiui/api/web-search` proxies straight through to `/search`. Both
places that seed settings.yml (the first-boot script and the installer)
omitted `search.formats`, so web search has never worked on a node
whose SearXNG was installed, running and healthy. It reads as the
assistant being unable to search rather than as one missing config key.

Verified on archi-dev-box: `format=json` went 403 -> 200, returning 28
results for "bitcoin halving" from Brave and DuckDuckGo. Google and
Startpage self-suspend on a self-hosted instance (access denied /
CAPTCHA), which is expected and costs little given Brave's independent
index.

Existing nodes need the same two lines added to
/var/lib/archipelago/searxng/settings.yml and a restart; this commit
only fixes what new installs get.

Also fixes a build break: `fetchLibraryContent` built a bundle literal
that predates the images bucket.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-08-07 05:07:10 -04:00
co-authored by Claude Opus 5
parent 9abc162394
commit c810b514ed
3 changed files with 15 additions and 2 deletions
+6
View File
@@ -1225,6 +1225,12 @@ server:
bind_address: "0.0.0.0"
port: 8080
limiter: false
# json is required: SearXNG defaults to html-only and answers 403 on the
# JSON API, which is the only thing AIUI's web search speaks.
search:
formats:
- html
- json
ui:
default_theme: simple
SEARXCFG