Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
routing: an open group's heading looks as every editor's does, not as the Models fold chip
yetoneb3f59534956d
diff --git a/internal/gui/assets/plugins/routing/client.js b/internal/gui/assets/plugins/routing/client.jsindex 298149dee..9b3c02a08 100644--- a/internal/gui/assets/plugins/routing/client.js+++ b/internal/gui/assets/plugins/routing/client.js@@ -4685,9 +4685,12 @@ function routingPage(part) {if (g && d.id === undefined) d.id = g.id;// an open group folds back into its row from its heading, as it opened// from the row (ARNO on Discord) — only while nothing in it has- // changed, so a stray click never throws an edit away; Cancel does that+ // changed, so a stray click never throws an edit away; Cancel does that.+ // Its own class, not .fold: that is the Models head's chip, whose+ // padding and corners made the heading's line curve at its ends and+ // its space above differ from below (the owner, 10-21)if (g) {- h.classList.add("fold");+ h.classList.add("folds");h.setAttribute("role", "button");h.tabIndex = 0;h.setAttribute("aria-expanded", "true");diff --git a/internal/gui/assets/plugins/routing/routing.css b/internal/gui/assets/plugins/routing/routing.cssindex c234d4aae..896202535 100644--- a/internal/gui/assets/plugins/routing/routing.css+++ b/internal/gui/assets/plugins/routing/routing.css@@ -484,7 +484,8 @@ button.rt-session { cursor: pointer; }.rt-group.rt-gpick { cursor: default; }.rt-group.rt-gpick.on { background: var(--card-2); }.rt-gedit { cursor: default; scroll-margin-top: 12px; }-.rt-gedit .ehead.fold { cursor: pointer; }+.rt-gedit .ehead.folds { cursor: pointer; }+.rt-gedit .ehead.folds:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }.rt-gedit .segs { max-width: 100%; }/* its hint as close under the choices as every other row's: 4px */.rt-gedit .ctx-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }diff --git a/internal/gui/tests/group-fold.test.cjs b/internal/gui/tests/group-fold.test.cjsindex 608936d93..be9c6b45c 100644--- a/internal/gui/tests/group-fold.test.cjs+++ b/internal/gui/tests/group-fold.test.cjs@@ -3,7 +3,8 @@// (ARNO on Discord: 路由组详情现在可以单击展开,是否可以再加上单击收起):// a click, or Enter on it, closes the editor while nothing was changed;// with a change it stays open and says to Save or Cancel, so no edit is-// lost. Nothing is saved by folding. English and Chinese.+// lost. Nothing is saved by folding. The heading looks as every editor's+// does: not the Models head's fold chip. English and Chinese.const assert = require("node:assert/strict");const fs = require("node:fs/promises");const path = require("node:path");@@ -82,6 +83,20 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",await head.waitFor();assert.equal(await head.getAttribute("title"), w.fold);assert.equal(await head.getAttribute("aria-expanded"), "true");+ // laid out as every editor's heading (the owner, 10-21: the space+ // above it differed from below, and its line curved at the ends):+ // no padding above, square corners on its line, its name in the+ // page's colour, and no box drawn over it on hover+ await head.hover();+ const look = await head.evaluate((h) => {+ const s = getComputedStyle(h), b = getComputedStyle(h.querySelector("b"));+ return { top: s.paddingTop, left: s.paddingLeft, radius: s.borderBottomLeftRadius, bg: s.backgroundColor,+ name: b.color, fg: getComputedStyle(document.body).color, display: s.display };+ });+ assert.deepEqual({ top: look.top, left: look.left, radius: look.radius, display: look.display },+ { top: "0px", left: "0px", radius: "0px", display: "flex" }, JSON.stringify(look));+ assert.match(look.bg, /^(transparent|rgba\(0, 0, 0, 0\))$/, "no box on hover");+ assert.equal(look.name, look.fg, "the name is in the page's colour");await head.click();await closed();