Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
library: the Connect sheet's search has its glass and text on the box's middle
yetone0aad5d56acb7
diff --git a/internal/gui/assets/plugins/library/library.css b/internal/gui/assets/plugins/library/library.cssindex 6fc3d08c3..7e7fbfb82 100644--- a/internal/gui/assets/plugins/library/library.css+++ b/internal/gui/assets/plugins/library/library.css@@ -30,6 +30,8 @@ body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; --bleed}body.web .lib-tabs { max-width: 100%; flex-wrap: wrap; }body.web .lib-more, body.web .lib-discover, body.web .lib-backups { flex: none; }+ /* a phone's inputs are 44pt with 16px text: the search box grows round it */+ body.web .editor.lib-hubsheet label.lib-hubsearch { height: 44px; border-radius: 10px; }}/* a window too narrow for the tabs and the buttons beside them (Discover,Library folder, Backups) on one line has the buttons on a line of their own, at@@ -87,8 +89,11 @@ body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; --bleed.lib-hubsheet .lib-hubapps { align-self: center; text-align: center; font-weight: 400; color: var(--fg-2); }.lib-hubsub { margin: 0; font-size: 12px; color: var(--muted); text-wrap: balance; }.lib-hubsub > span { display: inline-block; }-.lib-hubsearch { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--pill); color: var(--muted); }-.lib-hubsearch input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; font-size: 13px; color: var(--fg); outline: none; box-shadow: none; }+/* a label in an .editor: its form rows' padding-top, right-aligned 12px+ text (more under body.web) would push the glass and the text off the+ middle, so the box says its own */+.editor.lib-hubsheet label.lib-hubsearch { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--pill); color: var(--muted); text-align: left; font-size: 13px; }+.editor.lib-hubsheet .lib-hubsearch input { flex: 1; min-width: 0; height: 100%; min-height: 0; margin: 0; border: 0; padding: 0; background: transparent; font: inherit; font-size: 13px; color: var(--fg); outline: none; box-shadow: none; }.lib-hubsheet .lib-hubsearch input:is(:focus, :focus-visible) { border: 0; box-shadow: none; outline: none; }.lib-hubsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }.lib-hubsearch:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }diff --git a/internal/gui/tests/library-mcp-hub.test.cjs b/internal/gui/tests/library-mcp-hub.test.cjsindex ccc691fd9..d5f075d31 100644--- a/internal/gui/tests/library-mcp-hub.test.cjs+++ b/internal/gui/tests/library-mcp-hub.test.cjs@@ -312,6 +312,19 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",const can = web ? 22 : 23, on = web ? 18 : 19;assert.equal(await lead(), w("{on} of {all} agents use the library's servers through magpie", { on, all: can }));assert.equal(await sheet.locator(".lib-hubsearch input").count(), 1);+ // the owner: the glass and the placeholder sat above the field's+ // middle. Both are centred in the box, the placeholder's own line too+ const mid = await sheet.locator(".lib-hubsearch").evaluate((b) => {+ const c = (r) => (r.top + r.bottom) / 2, box = b.getBoundingClientRect(), inp = b.querySelector("input");+ const ir = inp.getBoundingClientRect(), cs = getComputedStyle(inp);+ // where the text's line sits inside the input: its padding and line box+ const line = parseFloat(cs.lineHeight) || parseFloat(cs.fontSize) * 1.2;+ const top = ir.top + parseFloat(cs.borderTopWidth) + parseFloat(cs.paddingTop);+ const inner = ir.height - parseFloat(cs.borderTopWidth) - parseFloat(cs.borderBottomWidth) - parseFloat(cs.paddingTop) - parseFloat(cs.paddingBottom);+ return { box: c(box), glass: c(b.querySelector("svg").getBoundingClientRect()), input: c(ir), text: top + inner / 2, inTop: ir.top - box.top, inBottom: box.bottom - ir.bottom, line, inner };+ });+ for (const k of ["glass", "input", "text"]) assert.ok(Math.abs(mid[k] - mid.box) <= 0.5, `the search's ${k} is ${(mid[k] - mid.box).toFixed(2)}px off the box's middle: ${JSON.stringify(mid)}`);+ assert.ok(mid.inTop >= 0 && mid.inBottom >= 0, `the input runs out of its box: ${JSON.stringify(mid)}`);assert.deepEqual(await sheet.locator(".lib-hubgrp").evaluateAll((gs) => gs.map((g) => [g.dataset.group, g.querySelectorAll(".lib-hubagent").length, g.querySelectorAll(".lib-hubfolded").length])),[["off", 4, 0], ["on", 0, 1], ["kept", 0, 1]]);assert.equal((await sheet.locator('.lib-hubgrp[data-group="on"] .lib-hubfolded .name').textContent()).trim(),