archsiono on X: "Magpie 给模型开图片输入的开关藏在「名称与推理档位」里,谁能找到 😅
建议在模型右键提供配置". The only place to tell agents a model sees images was
the Accepts images tick inside Names, prices & levels.
A model chip's right-click menu in the provider editor now has Turn on
image input / Turn off image input (开启/关闭图片输入, zh-TW, ja, de too),
under Copy model ID, for every model but a decision model. It stages the
same modelPrefs images value the tick stages: the tick follows, the footer
says "{model} accepts images once saved", and the Save sends it. Nothing
is saved, picked or scrolled by the item.
The core scripts were already 105 bytes over TestCoreScriptBudget on
origin/main 7dd2434d3 (1,533,907 > 1,533,802). This change pays for itself
and that by cutting ten of the provider editor's model-list comments to one
line each: the core is 1,533,139, app.js 1,311,013, no raise.
model-test-as, model-test-why and model-api-preset count the menu's items;
they now expect the image item as the third.
Run on mote (macOS 27), at this tree:
- GUI: model-images-menu (new), model-kind, model-api-preset,
model-test-as, model-test-why, model-test-one, provider-levels-save,
i18n-keys, click-scroll, provider-detect-models: 102 of 102 pass,
Chromium and WebKit; the new file covers en/zh/ja/de at 900 and 420.
- Broken by hand: the new file on origin/main without this change, 8 of
8 red (no such item).
- go test ./internal/gui: ok except TestMainWindowCorners/macOS_26_SDK,
red on macOS 27 and filed as #3949. TestCoreScriptBudget passes.
- gofmt -l: clean.
Seen on the way: model-copy-id is 4 of 4 red alone on origin/main
7dd2434d3 (gpt-5.1's chip isn't drawn); commented on #4621.
Not tried: the real app window.
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).
model-api-preset, model-test-why, provider-detect-models and model-copy-id
failed in Chromium only, on main. They were stale tests, not app bugs:
- To right-click a chip out of sight, Playwright scrolls the editor first.
Chromium sends that scroll's event a frame later, after the menu has
opened, and a menu closes on a scroll, so its items were detached under
the click. rclick() now scrolls the chip in with a trial click, lets two
frames pass, then right-clicks.
- model-copy-id read the footer as soon as the fake server had the id,
before the page had the answer. It now waits for the footer.
- model-api-preset's one-API chip menu now has Copy model ID beside its
test (81879b90). It expects those two items and no "Asked on".
All four pass in Chromium and WebKit, en and zh.