ac4af582301a4e8a29245dbba767eba31334ddf9
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ce8b67de37 |
gui tests: a page's first load gets a minute, not a click's 5s (#4470)
claude-switch-only set page.setDefaultTimeout(5000) and then called page.goto with no timeout of its own, so Playwright held the first load of app.js, i18n.js and the plugins to the 5s bar meant for clicks. On a busy box (a whole-suite run at load 130-160) that load took longer and goto timed out. The same pattern is in 988 GUI test files (1174 pages): every one of them now also sets setDefaultNavigationTimeout(60000) on the same page, right after its default, so goto, reload and waitForURL wait on the load itself with room, while clicks and waits keep their short bar. group-from-model-add's own 20s navigation bar is raised to the same minute. claude-switch-only also gives its first provider row (drawn from the page's first reads) a minute before clicking it. nav-timeout.test.cjs (no browser) reads every GUI test file and names each page given a default under a minute without a navigation timeout of at least a minute, so a new file can't bring the pattern back. What was run (WSL magpie-desktop, Playwright 1.62.0, load 70-260 from other sessions): - node --check on every file in internal/gui/tests: all parse. - nav-timeout.test.cjs against origin/main's test files: red (names the 1174 pages); against this tree: its only reds were my own probe copies of the old files, since removed. - By hand: claude-switch-only with app.js served 7s late (a busy box's first load), --test-name-pattern "1100 en": origin/main's file 4 of 4 red with "page.goto: Timeout 5000ms exceeded"; this file 4 of 4 green. - claude-switch-only.test.cjs, both engines, en/zh/ja/de, 1100 and 420: 32 of 32. group-from-model-add, usage-access-key-card and i18n-keys: green. agent-plugin-agents: Chromium green; WebKit's de 420 subtest red on a 5s waitForFunction at line 115 (a wait after load, not the navigation), at load ~230. Not tried: the whole GUI suite (about 1000 files; the change is one mechanical line per page), Windows or mote (mote's browsers, #4125). |
||
|
|
50adf78e66 |
gateway, gui: the web searcher picked in Settings is never handed on to another provider, and one that answered without searching is said so (Gearclickist on Discord)
Cause: Gearclickist picked the Grok subscription's grok-4.7 in Settings ›
Web search. Their grok rows were about 1.3k tokens. That is the size of a
Grok request that ran no search. With the tool and searching, our real
Grok account gives 6k-66k input every time, and /models says
supports_backend_search for all four models. So on their account Grok
answered from what it knew. searchWith read that as "found nothing", and
modelSearch handed the search to the next of Searchers() by rank: Codex's
gpt-6-astra, a pricier subscription model they never picked.
Change:
- modelSearch: a searcher named in Settings gives way to no other
provider. Its error goes back to the model ("no other provider searches
in its place"), and webSearch then asks the search APIs, if any are set
up. Automatic keeps its fallback (#669) with the Routing row that says
why.
- searchWith tells a reply with no server_tool_use or
web_search_tool_result (errNotSearched) apart from one that searched and
named no page (errFoundNothing). CallFor gets notSearched.
- namedFailed/SearcherFailed keep the named searcher's last failed search,
cleared by its next success or by picking another searcher.
/api/settings returns it as searchFailed.
- Settings › Web search puts a warning at the start of the row's help
(before the ellipsis) naming the searcher, when, and why ("answered
without searching the web, so its account or plan may not offer web
search"). The help text now says a picked provider is never replaced by
another provider. The Routing row (kindWhy) says not-searched too.
zh, zh-TW, ja and de strings added.
- docs/subsystems/gateway-routing.md rewritten for the rule.
Run (worktree on origin/main
|
||
|
|
7639c1d8db |
gateway, gui: a web search made in place of the picked searcher says in its Routing row which searcher failed or found nothing, and why (Gearclickist on Discord)
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. |