Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
gui: PenguinHarness's logo is a tile, and the app's own icons are no logos (#3858)
yetone63aca1802e59
diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.cssindex 440649504..ae60822f2 100644--- a/internal/gui/assets/app.css+++ b/internal/gui/assets/app.css@@ -174,7 +174,7 @@ code { font: var(--code-style, normal) var(--code-weight, 400) 11.5px var(--codethey read a size bigger than a line logo beside them, so they are drawn atthe size Alma's and Cindy's tiles have of their own. icon-tile.test.cjsmeasures every file in icons/ and keeps this list whole. */-.ic:is([data-icon="aihubmix-color"], [data-icon="atomcode"], [data-icon="cherryin-color"], [data-icon="codebuddy-color"], [data-icon="codex-color"], [data-icon="crush"], [data-icon="geminicli-color"], [data-icon="hanako"], [data-icon="hunyuan-color"], [data-icon="kilo"], [data-icon="kiro-color"], [data-icon="lody"], [data-icon="mistermorph-color"], [data-icon="mlx-serve"], [data-icon="monica-color"], [data-icon="phala-color"], [data-icon="pipellm-color"], [data-icon="qoder"], [data-icon="snow"], [data-icon="targon-color"], [data-icon="typesafe"], [data-icon="workbuddy-color"], [data-icon="yuanbao-color"], [data-icon="zcode"], [data-icon="zoo-code"]) > * { width: 82%; height: 82%; }+.ic:is([data-icon="aihubmix-color"], [data-icon="atomcode"], [data-icon="cherryin-color"], [data-icon="codebuddy-color"], [data-icon="codex-color"], [data-icon="crush"], [data-icon="geminicli-color"], [data-icon="hanako"], [data-icon="hunyuan-color"], [data-icon="kilo"], [data-icon="kiro-color"], [data-icon="lody"], [data-icon="mistermorph-color"], [data-icon="mlx-serve"], [data-icon="monica-color"], [data-icon="penguin-color"], [data-icon="phala-color"], [data-icon="pipellm-color"], [data-icon="qoder"], [data-icon="snow"], [data-icon="targon-color"], [data-icon="typesafe"], [data-icon="workbuddy-color"], [data-icon="yuanbao-color"], [data-icon="zcode"], [data-icon="zoo-code"]) > * { width: 82%; height: 82%; }.ic.generic { color: var(--muted); }/* maskSpan's shelf: a hidden user of every mask picture loaded, so a logo drawn again paints at once (#1847) */.mask-shelf { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }diff --git a/internal/gui/tests/icon-tile.test.cjs b/internal/gui/tests/icon-tile.test.cjsindex e91490d43..4142220b4 100644--- a/internal/gui/tests/icon-tile.test.cjs+++ b/internal/gui/tests/icon-tile.test.cjs@@ -3,10 +3,11 @@// ZCode) read a size bigger than a line logo (Pi, OpenCode, Hermes) in the// row beside it: both filled the same box, the tile with ~96% of it inked// and the line logo with ~40%. A tile is now drawn at 82% of the box, the-// size Alma's and Cindy's tiles have of their own. Every file in icons/ is-// measured, so a new tile logo left out of app.css's list, or a line logo-// put in it, fails here. In the Agents list the tile is drawn at 82% and the-// line logo at full size, in Chromium and WebKit.+// size Alma's and Cindy's tiles have of their own. Every logo in icons/ is+// measured (the app's own icons, manifest.json's, aren't logos), so a new+// tile logo left out of app.css's list, or a line logo put in it, fails+// here. In the Agents list the tile is drawn at 82% and the line logo at+// full size, in Chromium and WebKit.const assert = require("node:assert/strict");const fs = require("node:fs/promises");const path = require("node:path");@@ -25,9 +26,17 @@ async function tileList() {return new Set([...m[1].matchAll(/\[data-icon="([^"]+)"\]/g)].map((x) => x[1]));}+// the app's own icons, which manifest.json lists for a phone's home screen+// (apple-touch-icon is index.html's too), are never a logo drawn in a .ic+// (#3858)+async function appIcons() {+ const manifest = JSON.parse(await fs.readFile(path.join(assets, "manifest.json"), "utf8"));+ return new Set(manifest.icons.map((i) => i.src.replace(/^icons\//, "")));+}+test("the tile logos' rule names every logo solid to its edges, and no other", async () => {- const listed = await tileList();- const files = (await fs.readdir(path.join(assets, "icons"))).filter((f) => /\.(svg|png)$/.test(f));+ const listed = await tileList(), own = await appIcons();+ const files = (await fs.readdir(path.join(assets, "icons"))).filter((f) => /\.(svg|png)$/.test(f) && !own.has(f));const browser = await chromium.launch();try {const page = await browser.newPage();