heyiwei5 on X: "快速检测 联网搜索 是不是只检测第一个api 多个api的话 是不是不能检测?"
The Web search check ran one search (webSearch), which stops at the first
searcher that answers, so a second search API was never asked and a broken
one read as ok.
CheckPipeline's search now goes through checkSearch: it asks each searcher
a search can go to once, at the same time, by the path a search takes to
it, with no other standing in: the provider that searches (searcher, via
searchBy) unless provider search is off, and each search API on
(provider.SearchAPIs, via askSearchAPIKeys), in the order a search asks
them. The answer gains `searches` (name, ok, ms, error); the check is ok
only when every one is. Nothing set up, or the plugin off, says so as
before. pipecheck.js draws one line per searcher under the Web search row,
"Exa · 1.5 s" or "Tavily · <its error>" in red. Test and Test all are the
only things that ask, one call per searcher. No new strings. Documented
in docs/subsystems/gateway-routing.md.
Run (mica):
- TestCheckSearchAsksEveryAPI red on the old pipeline_check.go ("a broken
API reads as ok: {"kind":"search","ok":true}"), green now.
- pipeline-check.test.cjs red on the old pipecheck.js (0/16), green now
with i18n-keys.test.cjs, chromium + webkit, en/zh/zh-TW/ja/de, 1100px
and 400px.
- At 56c988cb5: go test -timeout 45m ./internal/gateway ./internal/gui
./internal/cli ok; search-*.test.cjs and i18n-en-no-cjk both engines:
284 pass, search-mcp-library webkit 420px "Turn on the Library" red,
also red on a clean origin/main 9c4e87736 copy (open as #4756).
- Rebased on 9c4e87736 (this head's parent): go test -run
'Check|Search|Pipeline|Searcher' ./internal/gateway, go test
./internal/gui ./internal/cli, pipeline-check + i18n-keys in chromium
and webkit: all ok.
- gofmt -l clean; go vet darwin, GOOS=linux and GOOS=windows for
internal/gateway.
Not tried: a real provider searcher or real search API keys (fakes only).