ac4af582301a4e8a29245dbba767eba31334ddf9
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bceeabd93a |
gui: a subscription's warm-up, check-in and resets are in its provider's editor
The owner, 11-07: "这些配置难道不是应该在对应的Provider那个弹窗里面吗?为什么会散落在Settings里?"
Settings › Allowances no longer holds Codex's auto-use resets and how
early before one expires, Codex's and Claude's warm-ups, or the daily
check-in of WorkBuddy, Trae CN, MiniMax, Qoder and the plugins that check
in themselves. Each is in its own provider's editor (PROV_PREFS: the lists
move from a hidden holder into the editor's .prov-prefs box and back).
Settings' search still finds them, each a row whose Open goes to the
editor. Task-done alerts stay in Settings. "Codex: auto-use resets" and
"Codex: how early before one expires" lose their "Codex:" in the editor.
In the editor a press inside a part that redraws moved the page: the
modal hold moved the dialog, which can't move once it meets the window's
edge, and lost a pressed element a redraw replaced. The hold now scrolls
the editor's body by what is left, and finds the replacement by its path
or by tag, class and text under its id'd ancestor. In a browser the
editor's body keeps its bar's room, as the app's already did: WebKit kept
the grid's columns from before a bar that came with a grown field, and
the editor scrolled 10px sideways.
Budget: app.js grew with the editor's parts; paid for by comments cut
(curlOf, scrollCloses, unrollSheet, quotaRange, ledGroupSpeed, the
Settings tabs, the warm-up and fold notes), no raise.
Run at this head (704fd85f3 before this message, on origin/main):
- mote: go test -count=1 ./internal/gui/ ok (TestCoreScriptBudget
included); go vet ./..., GOOS=windows go vet ./... and GOOS=linux go vet
-tags nogui ./... clean.
- mote: settings-groups and i18n-keys GUI files. i18n-keys' "a plugin's
words are its own" fails the same on origin/main (#5332, #5327, #5482).
- WSL, both engines, the files this can reach, mine vs origin/main
|
||
|
|
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). |
||
|
|
8586b1cda5 |
usage, settings: a check-in reason many accounts share is said once
leeoswald368 (Discord) has many Qoder accounts whose plugin check-in
fails for one long reason ("Qoder check-in: device identity runtime not
found. ..."). The page repeated it once per account: on every Usage
card's check-in row and in Settings' Daily check-in line, a wall of
text.
- Usage: a card's check-in row says the reason only when it is the
first card of that vendor's with today's reason; the others say the
label alone and keep the reason in the row's tooltip, which now holds
any reason the result has.
- Settings: the per-account lines (each built-in vendor's and each
plugin's) go through ciLines, which joins the accounts whose line
reads the same and says it once: "a1, a2, a3 is not eligible ·
<reason>". A different reason still has its own line.
- app.js is 1,026 bytes smaller, no budget touched: the four built-in
vendors' check-in switches in Settings (WorkBuddy, Trae CN, MiniMax
Code, Qoder) are drawn by one loop where four copies sat, same ids,
same keys, same strings.
Run:
- checkin-reason-once.test.cjs (new; chromium + webkit, en + zh,
900px + 440px): 8/8; with the old app.js 0/8
- every GUI file that names a check-in, a warm-up tab or its rows (22
files, i18n-keys too), both engines: 330/338. The reds are on main:
i18n-keys "a plugin's words are its own" (#3897); segs-press-redraw
webkit on Settings › Network's webPageList, red on the old app.js too
in a side-by-side run (filed #3922); github-token and login-import
chromium under load ~80 (#1307), 3 of 3 green run alone after
- go test ./internal/gui -count=1: ok (TestCoreScriptBudget included);
node --check app.js
Not tried: the real window with leeoswald368's accounts; the tray panel's
card (it draws the same checkinRow).
|