From dd9b2bcef51b04ffe13e53bf75dd23b56d1f2749 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 13 Nov 2026 11:02:53 +0800 Subject: [PATCH] gui: the new sign-in row and sentences within the core script budget, +296 (Wing8Aqua on X) No page left to move them to; the row is packed to its shortest form. Budget raised by exactly the 296 bytes over. Record for this stack (Wing8Aqua's three reports: cap toggle wording, Smart is not load balancing, Sign in on another computer), run on mica at this head's content (rebased on 861a0442c): - go test ./internal/gui: ok; gofmt clean; go vet darwin, windows, linux nogui: clean. - GUI: pool-ends, signin-another-computer (new), signin-link-only, i18n-keys, routing-save: 122 pass, 0 fail, chromium and webkit, en zh zh-TW ja de where the file has them. Earlier wider run (signin-*, i18n, routing-save/advanced/smart-intent/manual/mode-goes, account-cap): 418 of 425; the 7 reds were the Japanese 420px cap label wrapping a line (fixed, shorter label), one load timeout each in signin-again and signin-codex-device (green on rerun) and signin-proxy 380px, which is red on origin/main too (#5866). - Broke by hand: without the linkOnly post the new test is 0 of 16. Not tried: a real Claude sign-in from another machine; Windows and Linux webviews; plugin sign-ins and the Routing page's own Smart tooltip (plugins/routing/client.js) keep their old text. --- internal/gui/assets/app.js | 2 +- internal/gui/core_budget_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index 5f7ecc321..33c20a5eb 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -13696,7 +13696,7 @@ function renderAccounts(a, p) { list.append(imp); } // the link alone, to open where the account can sign in (Wing8Aqua on X) - if (a.agent === "claude" || a.agent === "codex") list.append(addRow(t("Sign in on another computer…"), () => startSignIn(a.agent, false, undefined, { linkOnly: true }))); + if (cx || a.agent === "claude") list.append(addRow(t("Sign in on another computer…"), () => startSignIn(a.agent, 0, 0, { linkOnly: 1 }))); if (a.agent === "claude") list.append(addRow(t("Add an account by setup-token…"), startClaudeToken)); // last of them, and no plus: it adds nothing (the owner, 11-12) if (sub.importable && (a.agent === "claude" || a.agent === "codex")) list.append(addRow(t("Export accounts to a file…"), () => startExport(a.agent), EXPORT_GLYPH)); diff --git a/internal/gui/core_budget_test.go b/internal/gui/core_budget_test.go index 8e34366dd..8a4ce3ac6 100644 --- a/internal/gui/core_budget_test.go +++ b/internal/gui/core_budget_test.go @@ -18,7 +18,7 @@ import ( // `git log -L` of this file. const ( appScriptBudget = 1_086_267 // app.js: 1,080,614 at 8016205e3, with the 5,653 of room it had - coreScriptBudget = 1_265_712 // every core script at 8016205e3, the old measure 682 over its cap there (#5918); +367 for the model test on a chosen account (tmr11235), no page left to move it to; +151 for the provider menu's "Only on this device" item and its four translations; +458 for Settings › About's Report a problem row and its translations; +113 for withScheme, the one rule every typed address goes through (eachg0 on X), cut to the shortest form that keeps it whole; +10 for the kept whole's tooltip (Musikrv77852 on X), the past-cycle line reused for it, no page left to move it to; +1,112 for Codex's Open button and its Open Codex with menu (Yink88564391 on X), packed to the shortest form, no page left to move them to; +168 for Discover's long lists drawn in part (the owner, 11-13), after the rest of its hook moved into plugingrid.js, imported when Plugins first draws + coreScriptBudget = 1_266_008 // every core script at 8016205e3, the old measure 682 over its cap there (#5918); +367 for the model test on a chosen account (tmr11235), no page left to move it to; +151 for the provider menu's "Only on this device" item and its four translations; +458 for Settings › About's Report a problem row and its translations; +113 for withScheme, the one rule every typed address goes through (eachg0 on X), cut to the shortest form that keeps it whole; +10 for the kept whole's tooltip (Musikrv77852 on X), the past-cycle line reused for it, no page left to move it to; +1,112 for Codex's Open button and its Open Codex with menu (Yink88564391 on X), packed to the shortest form, no page left to move them to; +168 for Discover's long lists drawn in part (the owner, 11-13), after the rest of its hook moved into plugingrid.js, imported when Plugins first draws; +296 for the cap toggle and Smart sentences that say what they do and the Sign in on another computer row (Wing8Aqua on X), packed to the shortest form, no page left to move them to ) // codeBytes is how many bytes of b are code: its blank lines, its lines