Gearclickist picked Grok as the web-search model (代搜). In Codex, a
web_search did go to Grok, but Codex's default search model then searched,
and nothing said why. modelSearch asks the searcher picked in Settings
first. When it errors, or its reply names no page it found, the next of
Searchers() searches in its place (#669, up to three). The first error was
dropped, so the Routing row only showed the model that answered.
Falling back stays. searchingInstead now puts on the search's CallFor the
searcher asked first (instead), whether the user picked it (picked), and
its error (why) or that it found nothing (nothingFound, from a new
errFoundNothing that searchWith and kimiSearch wrap). Routing's kindWhy
says "<grok>, the searcher picked in Settings › Models › Web search,
didn't search for Codex's <model>: <why>. So magpie had <next>, the next
searcher it can use, search in its place." There are 7 new strings, in
zh, zh-TW, ja and de.
Grok itself: magpie's exact search body was sent to real Grok (4 models,
6 queries) through the built-in, and replayed through the plugin. Every
time it answered with pages, so no Grok or plugin cause was found, and
there is no plugin publish or mover min raise. The next time Grok fails
for Gearclickist, the row now names the error.
Run:
- go test ./internal/gateway ./internal/agent -count=1 under a sandbox
HOME: ok (933s, 720s).
- TestSearchInPlaceOfPickedSaysWhy (found nothing, failed) passes. With
the searchingInstead call taken out by hand, both subtests go red.
- search-instead.test.cjs: chromium and webkit, en/zh/zh-TW/ja/de, at
1100 and 520px: 10/10 pass. With kindWhy's new branch turned off by
hand: red.
- search-mcp, routing-side-calls, provider-search and routing-kind GUI
tests pass.
- go vet on darwin, GOOS=linux -tags nogui, and GOOS=windows; gofmt -l
is clean.
Not verified: a real Grok search failing for Gearclickist's account,
since it couldn't be reproduced.