congee949 (#3492, Playwright on v0.1.1403's assets, a fixture of five
accounts and 16 models): with a subscription's editor open, the whole
dialog, its head and buttons too, went to opacity .5 and 2px down and
came back as its accounts' allowances came in, for an empty answer
({}) as well. The editor reads them (loginUsageOf) as it is drawn, and
the read's end draws it again (renderProviders). openModal took every
redraw of an open dialog for new content and played the soft refresh
it gives one (.dialog.swap: content-in, 220ms from opacity .5 and
translateY(2px)).
That redraw is now a quiet one: loginUsageOf's finally calls
renderProviders(true), renderProviders hands it to openModal, and
openModal adds no swap for it. The rest of the redraw is as before: the
body keeps its scroll, the focus stays on its control and the dialog
keeps its place (holdModal). Every other call of renderProviders and
openModal passes nothing and does as before. The issue's other way,
filling in only the allowances, would take a second way of drawing an
account's meters and its at-its-cap note beside the editor's own; this
keeps the one. app.js is 33 bytes bigger (1,309,476 of its 1,310,460;
the core's scripts 1,525,572 of 1,526,556), no budget raised. On
origin/main 1a804859 app.js is 1,309,717, so its budget has room, but
the core's scripts are 1,526,548, so coreScriptBudget needs 25 bytes
more for this.
Why the caller says so, and not openModal by comparing the old content
with the new: the allowances coming in and a change the reader makes
in the same editor (an account switched on or off, made first,
renamed) both draw the editor again under the same title, and the swap
is for the second. Of the redraws of an open dialog that no press
starts, only this one draws the same content again:
- a sign-in being followed (followSignIn) draws again only when its
state, link or code changed, which is new content;
- the list's poll while models are fetched (providersWhileFetching)
and the window coming back (load) skip an open editor;
- Check balance, a plugin page's buttons and README, a request's
context text and the update notes fill their dialog in place;
- What's new and the CLI's note open only on a closed dialog.
Every other redraw of an open dialog follows a press: a question and
back, a switch, a sign-in started, an account or a key changed.
account-eye.test.cjs now moves the pointer off the rows before it
checks that an account's eye is quiet with Hide accounts on. The click
on the list's ZCode row leaves the pointer at 180,204, and in the
360px editor the Personal account's name is drawn at y 204 to 221, so
its eye shows. On main the WebKit check passed only because the
allowances' redraw had just started its swap, still on its first
frame when the check ran: the dialog was 2px lower, with the name at
206 to 223. With that redraw quiet, the test as it was is red in
WebKit in en, zh, zh-TW and ja; de's name sits lower (227 to 244).
Not changed: a read that ends while an account is being moved waits
for the move to be saved (accountRenderPending) and is drawn with the
move's own redraw, which plays the swap as any change the reader
makes does. A read that ends while Codex's Sign out question is up
puts the editor back over the question, here as on main (#3943).
What was run (tree fb30c3f4, on origin/main f8cd964a, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, umask 077:
- editor-quota-quiet.test.cjs (new; Node 22.22.1, Playwright 1.58.2),
Chromium and WebKit, en and zh: 3 runs at load 22 to 29, 12 of 12
each
- the same test with f8cd964a's app.js and app.css: 8 of 12 red, both
answers in both engines and languages, each at opacity 0.5 as the
class changed. Chromium: "the dialog dimmed or moved as the
allowances came in: its opacity 0.5 content-in as its class changed,
0.5 at its lowest over 5 frames, its top from 16 to 18px". WebKit's
frames read it later in its 220ms: 0.95 to 0.99 at their lowest, its
top up to 16.2px. The 4 switch cases ok.
- broken by hand, each alone in a scratch worktree, both engines:
- loginUsageOf's finally calling renderProviders() again: the same
8 red
- renderProviders not handing it on (openModal(dialog)): the same 8
- openModal not reading it (if (!fresh)): the same 8
- openModal never swapping (if (false)): the 4 switch cases red,
"the dialog turned to the question without its swap:
[{"opacity":1,"anims":[]}]"
- .dialog.swap's animation set to none in app.css: the same 4
- account-eye.test.cjs, both engines: 2 runs, 30 of 30 each; with
f8cd964a's app.js and app.css, 30 of 30. As it is at f8cd964a, at
this tree: red in WebKit's en, zh, zh-TW and ja editor cases, the
eye at opacity 1 where 0 is wanted. With app.css showing the eye
always (opacity 1): 30 of 30 red, the editor's on that same check.
- the 214 GUI files that name the modal (#modal, .modal or
openModal), open a provider's editor, answer /api/login/usage or
name the swap, and window-mask: each alone, Chromium then WebKit,
four at a time at load 27 to 72: 411 of 428 runs ok. Each red file
was run again alone, here and on f8cd964a in turn: red on both with
the same cases, but for the last two, which come and go:
- account-arrange, Chromium: the key rename's page error (#3944)
- update-notes-ask (3 en cases) and whats-new, WebKit:
"ResizeObserver loop completed with undelivered notifications." as
a page error (#3942)
- plugin-github, WebKit, de 440: a click scrolls #view-plugins (55
to 121), the check #3218 is about
- vertex-editor, WebKit zh: "a Vertex AI row names its Google
credentials" and its pills and fields fitting a narrow window and
browser (a file #1671 names)
- copilot-signed-out-account (20 cases), revoked-signin-account (10)
and agent-failover (10), WebKit: innerText read with a newline at
its end ("Signed out\n") or start, in this box's WebKit (Playwright
1.58.2; the tests' README names 1.62.1)
- session-identity, both engines, en light and dark: "both badges
share one row below the account at 440"
- usage-ledger, both engines, en and zh: "newest live route needs no
return-to-live button"
- provider-remove, WebKit zh: "the Remove click didn't push the page
down"
- readable-focus, WebKit: "Tab's focused field stays in sight"
- modal-centred-late, WebKit, 820px and 560px: "grew over frames"
- mcp-oauth-app, Chromium, de 390: the box's Cancel sent no cancel.
Alone, red 2 of 6 runs here and 1 of 12 on f8cd964a: a Cancel
pressed while the sign-in is still opening (#3984)
- found-skill-pick-remove, WebKit, en 420: a click moved
#view-library by 1px; alone, ok 2 of 2 here and on f8cd964a
- go test -tags nogui -count=1 -timeout 45m ./... (tools/suite.sh, Bun
1.4.2): 69 packages ok and 7 red, none in what this changes: agent
TestCodexDriftReached (#3398), TestInstalledVersion,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath (#3141), the two Reasonix tests (#3641) and
TestWSLColdPlaceOpensNothing (#3924); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram (umask 077,
#3640); gateway TestPluginToldWhereTheAgentWorks (#3675); gui
TestGatewayHeldByAContainer and TestGatewayFixQuitsOnlyAMagpie
(#3649), TestCoreScriptBudget ok; provider TestCodexAppServersOnHome
(#3906), then "close of synctest channel from outside bubble"
(#3632); tui TestTUIFetchesSubscriptionModels/agent (#3919)
- On origin/main 1a804859 with this commit cherry-picked (a scratch
worktree, not this tree): editor-quota-quiet and account-eye, both
engines, 42 of 42
Not run: gofmt, vet and the builds; no Go file changes.
Not tried: the real app's webviews (WebKitGTK, WKWebView, WebView2)
and a real subscription's allowance read; the fixture is the
reporter's. Whether every flash in the Qoder recording the issue
started from was this one; the recording wasn't posted.
Review (yetone, at this commit on origin/main bb5e68cea, after
09e09e994 made the 25 bytes' room without raising coreScriptBudget):
- The test moved onto today's editor: since 18005c803 an account's
buttons, Sign out among them, sit under its ⋯ and the reporter's
editor fits 1015px whole, so the window is 760 high (251px to
scroll), the focus is on an account's ⋯, the swap case opens ⋯
before Sign out, and the focus is matched by its row, class and
words, not its index, which moves as each account's own refresh
(923812362) comes in above it. That redraw goes through loginUsageOf
too, so it is quiet as well.
- Linux (WSL magpie-desktop, Playwright 1.62.0), Chromium and WebKit,
en and zh: editor-quota-quiet 12 of 12; on main bb5e68cea with only
the test added, 8 red ("its opacity 0.5 content-in as its class
changed ... its top from 16 to 18px"), the 4 swap cases ok.
- Broken by hand, Linux: finally's renderProviders(true) back to
renderProviders(): 8 red; openModal not reading quiet: 8 red;
openModal never swapping: the 4 swap cases red.
- go test -tags nogui -run Budget ./internal/gui ok on macOS (mote).
- The 94 GUI files this can reach (those with logins, a provider row or
editor, the swap, the modal, i18n-keys, gui-de, gui-ja, gui-zh-tw and
sessions-row-narrow), both engines, Linux, 6 at a time: 1725 of 1745
ok. The red files were run again, 2 at a time, on main with only the
new test added and at this tree. The reds are the same on both:
- i18n-keys "Unmarked" (#4524)
- modal-centred-late in WebKit (#4116)
- plugin-move-unserved Try again (#4392, #4410)
- plugin-move "for good" in WebKit (#4471)
- routing-cline-route in WebKit (#4121)
- usage-ledger Requests (#4120)
- session-identity in WebKit, 3 of 3 on both (#4567, filed now)
account-arrange's WebKit red in the full run passed in both reruns.
Not verified: macOS. On mote at load 25, every browser launch timed
out (180s), so that run tested nothing. Also not tried: the real
Wails webviews, and a real allowance read.
At the pushed tree (rebased on origin/main 7e0fe83d4), Linux, both
engines: editor-quota-quiet and account-eye ok, i18n-keys red only on
#4524; go test -tags nogui -run Budget ./internal/gui ok on mote.