Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
gui: keep Windows modal backdrops responsive without blur
Henry-916824100f30fa7
diff --git a/docs/subsystems/gui-shell.md b/docs/subsystems/gui-shell.mdindex 176e50d0a..fdf9d1874 100644--- a/docs/subsystems/gui-shell.md+++ b/docs/subsystems/gui-shell.md@@ -388,6 +388,8 @@ covers it in both engines, every language and a narrow window.### Shared UI rules+- Windows desktop windows and tray panels keep the modal's dimming veil without backdrop blur or saturation: full-window filtering can stall WebView2 while a provider test or sign-in dialog is open. The existing `win` marker from [`layout.js`](../../internal/gui/assets/layout.js) scopes the rule in [`app.css`](../../internal/gui/assets/app.css) to the desktop app; browser pages and other platforms keep their existing effect. `modal-backdrop.test.cjs` checks the computed filter and veil in both engines and modes.+- Settings → General is laid out as macOS System Settings is (1ooogle on X): a row says its name alone when that says enough (Appearance, Colorblind mode, Language, Text size, the fonts, the tray click, Open at login, Show in Dock), and keeps one short line where the setting isn't clear from its name or has a consequence (Lightweight mode, Prevent sleep, Session terminal). Codex's and Claude Code's own settings (Codex subagents, Long conversations, background compaction, thread titles and descriptions, composer predictions, the auto-review and memories models) aren't here: they are in the agent's opened row on the Agents page (`AGENT_PREFS`, `connectPanel`), the panel's row has a Settings line that opens them in a sheet (`openAgentPrefs`), as does the agent's menu, and Settings' search finds them with a row that opens that sheet (`#agentPrefLinks`). Each row is one element moved between its places, so its handlers and state go with it (the owner, 10-20; `agent-prefs.test.cjs`). Long conversations is the exception with no Codex or Claude Code here, in gateway mode or a magpie in Docker: it sets the windows the gateway serves, which agents on other computers read, so it stays in General (`renderAgentPrefLinks`, Linka on Discord). A font row's line shows only while its fonts load or fail; the text size keys are the choices' tooltip, and Colorblind mode's note is its Off/On control's (`#colorblindSegs`). Colorblind mode (`settings.Colorblind`, `data-colorblind="1"` on `:root`, #2073) switches the chart series (`--c1`…`--c7`) in both light and dark themes to an Okabe–Ito palette where adjacent series differ in hue and lightness. On a quota curve each window (`data-series`, its index mod 7, set by `drawQuotaPlot` and `quotaCurve`'s legend only) gets a dash of its own on `path.qc-line`, its legend key shows a sample of that line (`.qc-sample`) for the dot, and the even paces (`line.qc-even`) are dotted; the curve's tooltip says so. The balance curve sets no `data-series` and keeps its solid line, dashed fit and dot. The Context tab's "good" grade, which takes `--c2` as a colour rather than a series, keeps a blue (`--c1`). Language is one menu button showing the language picked, opened in the app's menu (`renderLangPick`). See `settings-general.test.cjs` and `quota-curve.test.cjs`. Open at login reads `autostart.Enabled`, which on macOS 13 and later also asks Background Task Management about magpie's launch agent (`SMAppService.statusForLegacyURL:`, matched by the plist's Label, not its path); a record the user switched off in System Settings › General › Login Items reads as needing allowing, and the row keeps On with one line saying so and a button that opens Login Items (`/api/open` allows that one `x-apple.systempreferences` URL). The status read again when the window comes back to the front clears the line. On macOS 12, in a build without cgo, or when the system can't be asked, the plist alone decides, as before (#2120, `login-allow.test.cjs`, `login_allow_test.go`).- A setting row's line under its name (`.row.pref .sub`, in Settings, Plugins › Built-in and an agent's own settings) wraps whole beside its control, never cut to one line with an ellipsis (arculongus on Discord, `settings-lines-wrap.test.cjs`).- Settings' search-provider picker offers **Off**, saved as `searcher: "off"`. Its help explains API-only search and suppresses provider fallback/own-search hints while off; the search priority row is hidden because no provider competes with the APIs. See [gateway search behavior](gateway-routing.md#turning-provider-search-off), [`renderSearcher`](../../internal/gui/assets/app.js), `TestSettingsSearchProviderOff` and `searcher-pick.test.cjs`.diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.cssindex a58785f8c..c809a3701 100644--- a/internal/gui/assets/app.css+++ b/internal/gui/assets/app.css@@ -3626,6 +3626,9 @@ html.theming, html.theming *, html.theming *::before, html.theming *::after {background: rgba(0, 0, 0, .28);-webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);}+/* Full-window filtering stalls provider tests and sign-in dialogs on some+ WebView2 GPUs. Keep the veil, without filtering the page behind it. */+.win body:not(.web) .modal { -webkit-backdrop-filter: none; backdrop-filter: none; }/* opening and closing are animated from app.js (openModal, closeModal) */.modal.out { pointer-events: none; }/* open, it holds its place from a top app.js gives it (holdModal) */diff --git a/internal/gui/tests/README.md b/internal/gui/tests/README.mdindex 00988f034..14d8affb5 100644--- a/internal/gui/tests/README.md+++ b/internal/gui/tests/README.md@@ -1,5 +1,10 @@# Dropdown browser regression+`modal-backdrop.test.cjs` checks the modal's computed backdrop filter using+the real stylesheet and platform marker: Windows desktop windows and panels+keep the dimming veil without filtering, while browser pages, macOS and Linux+keep the existing effect. Both Chromium and WebKit; no network or live config.+`plugin-gateway.test.cjs` checks gateway-only plugin identification, the existingJSON options editor and aggregate diagnostics in all five languages on Chromiumand WebKit. It uses local API fixtures, saves options through the real page, anddiff --git a/internal/gui/tests/modal-backdrop.test.cjs b/internal/gui/tests/modal-backdrop.test.cjsnew file mode 100644index 000000000..5f3d988f5--- /dev/null+++ b/internal/gui/tests/modal-backdrop.test.cjs@@ -0,0 +1,45 @@+// Full-window backdrop filtering made provider tests and sign-in dialogs+// stutter in the Windows app. Check the computed effect, not a frame-rate+// threshold: browser scheduling and the host GPU vary between test runners.+const assert = require("node:assert/strict");+const path = require("node:path");+const { test } = require("node:test");+const { chromium, webkit } = require("playwright");+const assets = path.resolve(__dirname, "../assets");++for (const engine of process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"]) {+ for (const platform of ["Win32", "MacIntel", "Linux x86_64"]) {+ for (const web of [false, true]) {+ for (const mode of ["window", "panel"]) {+ test(`${engine} ${platform} ${web ? "web" : "desktop"} ${mode}: modal backdrop`, async (t) => {+ const browser = await (engine === "webkit" ? webkit.launch() : chromium.launch({ channel: "chromium" }));+ t.after(() => browser.close());+ const page = await browser.newPage({ viewport: { width: 1552, height: 905 } });+ await page.route("**/*", (route) => route.request().isNavigationRequest()+ ? route.fulfill({ contentType: "text/html", body: '<div class="modal"><div class="dialog">Provider editor</div></div>' })+ : route.abort());+ await page.goto(`http://magpie.test/?mode=${mode}`);+ await page.evaluate(({ platform, web }) => {+ Object.defineProperty(navigator, "platform", { value: platform });+ window.bootPrefs = { web };+ }, { platform, web });+ await page.addScriptTag({ path: path.join(assets, "layout.js") });+ await page.addStyleTag({ path: path.join(assets, "app.css") });+ const backdrop = await page.locator(".modal").evaluate((element) => {+ const style = getComputedStyle(element);+ return { filter: style.backdropFilter || style.webkitBackdropFilter,+ background: style.backgroundColor, pointerEvents: style.pointerEvents };+ });+ if (platform === "Win32" && !web) {+ assert.equal(backdrop.filter, "none", "the Windows app must not filter the full-window backdrop");+ } else {+ assert.match(backdrop.filter, /blur\(8px\)/, "other surfaces keep their existing blur");+ assert.match(backdrop.filter, /saturate\(1\.1\)/);+ }+ assert.equal(backdrop.background, "rgba(0, 0, 0, 0.28)", "the dimming veil remains");+ assert.equal(backdrop.pointerEvents, "auto", "the backdrop still receives clicks");+ });+ }+ }+ }+}