Commit Graph
1 Commits
Author SHA1 Message Date
yetone f426c08395 gui: a long model list keeps every picked model in sight, and its foot is a button that draws the rest (#685: Sun1090 — zen实际使用了10个模型,现在只能看到前7个,剩余的我都不知道模型名称,怎么搜索?)
The provider editor drew the first 80 of a vendor's list and then "… {n} more, filter to find them", and the add form the first 120: a model picked past them wasn't drawn at all, and the note named none of what it left out, so there was nothing to filter by (OpenCode Zen's 84 models, 10 picked, 3 of them past 80). Now past the cap only the unpicked are left out, a picked model is drawn wherever it is in the list, and the note is a button, "Show the other {n}" (显示其余 {n} 个), that draws the rest; they stay drawn while the editor is open. The button is marked data-unrolls, so the click holds the list where it is.

provider-models-rest.test.cjs (84 models, 10 picked, 3 past 80: all 10 drawn, the button opens the last one without moving the list or picking anything, and a chip click keeps them open; en and zh) fails on the old code. The provider, model and click-scroll GUI tests under WebKit pass but provider-levels-scroll, which fails on main as well. Chromium doesn't launch on this machine, so WebKit only, and not tried in the app with a real provider.
2026-10-03 21:20:58 +08:00