01huadalang on Discord looked for a way to start one account's 5-hour
countdown on the Usage page, not in Settings. A Codex or Claude account
card whose 5-hour window isn't running now has a Warm up (预热) button on
its account line. It sends the request Settings › Warm-up's Warm up now
sends (POST /api/warm-now {agent, user}), to that account alone: for a
ChatGPT account the scheduled warm-up's one "hi" with the account's own
sign-in, on its cheapest model at low effort (warmModel); for a Claude
account Claude Code's own run on haiku (WarmClaudeVia), so magpie sends
nothing that imitates Claude Code. No new server code.
When it shows: the account is one magpie is signed in to (codexUsers /
claudeUsers), its read has no error, and its 5-hour window is idle as the
scheduled warm-up tells it (idle in codex_warmup.go): nothing used and the
reset a whole window away (within warmSlack), or the reset gone by. A
Claude account never used has no window read and shows it too, as
claudeWindowsExpected fills in; a Codex account with no 5-hour window
doesn't. While the request is out the button is disabled (busy), so a
second press sends nothing; once it went, the account's button stays away
for warmSlack (10 minutes), the time a just-started window still reads as
idle, and the quotas are read again (the server marks the account stale).
Refused, the vendor's reason goes in the status line and the button
comes back. Words in en, zh, zh-TW, ja, de (the tooltip is new; the
button and status lines reuse Warm up now's).
Run (at the head before the last rebase onto 09d5dfb87, which changed no GUI asset or internal/gui file, unless said):
- quota-warm.test.cjs (new), on mote: 20 of 20 pass, Chromium and
WebKit, en/zh/zh-TW/ja/de, 1100px and 390px. On origin/main with only
the test copied in, 10 of 10 Chromium cases are red (no button.acct-warm).
- Broken by hand: the 10-minute hold taken out (now - busy < 600e3 ->
false): red 2 of 2 (the button comes back after the warm-up).
- go test ./internal/gui/... ./internal/provider on mote (before the last
rebase onto df03aeb35, which touched none of these files): provider ok;
gui red only in TestMainWindowCorners/macOS_26_SDK, #3949 (macOS 27).
- 25 GUI files near the change on WSL (account-mask, privacy-hides-accounts,
quota-*, usage-fold/-pack/-accounts/-keys/-card-refresh, warm-now,
codex-auto-reset, tray-cell-click, panel-usage, i18n-keys, gui-de/-ja/
-zh-tw ...): i18n-keys caught a comment saying Library's "Not running",
fixed. The other reds are the same on origin/main 85e37162e run the
same way: usage-fold "most on one screen", tray-cell-click and
codex-auto-reset webkit de (filed #4790), warm-now 440px (#4322).
- The whole GUI suite was started at this head on mote (concurrency 3,
another session's suite beside it); it was not finished at push. One
red by then, account-eye chromium zh-TW (opacity '' read before the
styles), which passes 15 of 15 alone on WSL; its fixture's windows are
used, so no Warm up is drawn there.
Not tried:
- A real account's warm-up from this button. The request is Warm up
now's, whose own commit (1801c96bf) didn't try a real account either;
a Codex sign-in copied into a sandbox can rotate the live refresh token,
and a Claude one lives in the Keychain.
- The tray panel's Allowances, which draws the same account line.