gui: app.js back under its budget after 06950fbbb landed on f00407200

f00407200 set app.js's budget to its own size (1,311,735), and
06950fbbb, rebased onto it, added 11 bytes net, so TestCoreScriptBudget
went red on main. Two of 06950fbbb's own comments are shorter; no
raise. app.js is 1,311,732.

Run (mote-run): go test ./internal/gui -run TestCoreScriptBudget: ok.
Comment-only change; nothing else run.
This commit is contained in:
yetone
2026-10-29 03:46:24 +08:00
parent 06950fbbbb
commit aeacc6358a
+2 -2
View File
@@ -3867,7 +3867,7 @@ const LEAD_PICKS = "The model a subagent starts on when Codex's lead names none;
const CLAUDE_PICKS = "Claude Code's lead, or a subagent's own definition, may name a model or tier for it; a model set here is for the subagents that name none";
const claudePicks = (a, f) => leadPicks(a, f) && a.id === "claude";
// Codex's two subagent squares read alike (the owner, HoGee_xxl on X): the
// card shows the subagent model alone, saying what each choice does. A pick there takes away [agents] default_subagent_model too (the
// card shows the subagent model alone, saying what each does. A pick there takes away [agents] default_subagent_model too (the
// backend), and one left in the config is said on it until then. With no
// model of magpie's to pick there, Codex's own square stays.
const codexSub = (a) => a.id.split("@wsl:")[0] === "codex" && a.fields.some((f) => f.label === SUB_MODEL && (f.options.length || f.value));
@@ -3880,7 +3880,7 @@ const SUB_MODEL_UNSET = "The lead picks each subagent's model; one it names none
const SUB_MODEL_UNSET_PLAIN = "The lead picks each subagent's model; one it names none for runs on the lead's model. A resumed subagent stays on the model it started on. A model picked here holds every subagent to it, even when the lead names another.";
const SUB_MODEL_SET = "Every subagent runs on this model, even when the lead names another. Same as the lead gives the pick back to the lead.";
const SUB_MODEL_OLD = "Codex's config still starts subagents on {model} when the lead names none; picking here replaces it.";
// codexSubSaid: Codex's subagent model's name and what it does
// codexSubSaid: the subagent model's name, what it does
function codexSubSaid(a, f) {
const opt = optionFor(f, f.value);
const main = a.fields.find((x) => x.key === "model");