ac4af582301a4e8a29245dbba767eba31334ddf9
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
759b4d1d7d |
agents: a new user's list is folded under Get started (Renzexi01)
Renzexi01 on X (一进来就这么复杂): a new user saw Get started and, under
it, every agent found on the computer at once. While the Get started card
shows and no agent is in use yet, the whole Agents list is folded under
it behind "Show all {n} agents" (en, zh, zh-TW, ja, de); the card's
second step already names the agents found, each connected in a click.
Once one is connected, or the card is put away, the list is as before:
the ones in use in view, the rest under "Show {n} more".
getting-started checks the list folded under the card, the button's
words and aria-expanded in every language, and the list back once an
agent is connected or the card put away. Tests whose fake state is a new
user with no agent in use, and which read the agents' rows, now set
guideHidden as a user past Get started has (account-arrange,
aside-native, agent-*, claude-picker-magpie-first, codex-accounts-via,
omp-profile-connect, picker-rail-current, picker-speeds, pop-phone-room,
reasonix-roles, snow-fields).
What was run, on mote through mote-run, at a9a82a1c3 (tree e91b8e625,
the same as this commit once its fixup was squashed in), on base
|
||
|
|
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). |
||
|
|
0fb4ff17ba |
agent: Snow CLI's thinking level is set from the Agents page, from the levels magpie's model has (#1457)
zRain (#1457) asked for thinking.effort, responsesReasoning and responsesVerbosity. magpie's profile asks the gateway on Chat Completions (requestMethod "chat"), and on that protocol Snow 0.9.2 reads chatThinking only (api/chat.ts: enabled sends reasoning_effort; unset or disabled sends thinking {type: "disabled"}). thinking.effort is the Anthropic method's, responsesReasoning and responsesVerbosity the Responses method's, so none of them would change a request of magpie's profile, and they aren't written. A "thinking" field, as Pi's and dsh's, writes chatThinking {enabled: true, reasoning_effort: <level>} the way Snow's own settings screen does (ui/pages/configScreen/useConfigState.ts), on magpie's profile only, and copies it to config.json. Its levels are the catalog's for the model picked through magpie, after a default that says Snow takes off then; a model that lists none offers none. Clearing it deletes chatThinking. A chatThinking the user had on the profile magpie's was made from comes along and is shown as theirs; it is only changed when picked here. Enabled with no level reads as "on". On a profile of the user's own the field is empty, offers nothing and refuses a pick. Tests: TestSnowThinking, with a user profile in Snow's own format carrying chatThinking: shown as theirs, levels offered, a pick written and mirrored, kept through Sync, none offered for a model without levels, cleared to Snow's default, the user's profile untouched. Writing a fixed level instead of the pick fails it ("chatThinking: map[enabled: true reasoning_effort:high]"). TestSnow* and TestSync* pass under a temp HOME with pinned caches. GUI: snow-fields.test.cjs (Chromium and WebKit, en/zh/zh-TW/ja/de, window at 1240 and 720, tray panel at 440): on magpie's profile the row draws the small and thinking pills, the thinking default reads "default (off)" in each language and no pill runs past the row; on a profile of the user's own neither is drawn. With the small key taken out of app.js none() it fails 5 cases. The agent field, layout, effort and subagent GUI tests pass beside it (156 tests), and go test ./... passes under a temp HOME. Real Snow CLI 0.9.2 (sandbox HOME made by Snow itself): with magpie's profile written by this code (model relay/glm-4.6, small relay/glm-4.5v, thinking high) and its baseUrl pointed at a fake server, `snow --ask` sent its turn as relay/glm-4.6 with max_tokens 131072 and reasoning_effort high, and its light request as relay/glm-4.5v. |