Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(subagents): merge upstream main into fallback-label PR
liuzhiyue48351990199
diff --cc apps/desktop/src/styles/tokens.cssindex e3f004e5d,574a54548..0d97319d1--- a/apps/desktop/src/styles/tokens.css+++ b/apps/desktop/src/styles/tokens.css@@@ -281,8 -282,7 +282,8 @@@--ds-info: #5d5d5d;--ds-purple: #7c3aed;--ds-shadow-dialog: 0 16px 48px rgba(0, 0, 0, 0.12);+ /* Preserve the opaque light model menu's existing stroke and lift. */- --ds-shadow-model-menu-light:+ --ds-shadow-model-menu:0 0 0 0.5px color-mix(in oklab, #1a1c1f 10%, transparent),0 8px 32px rgba(0, 0, 0, 0.1),0 2px 8px rgba(0, 0, 0, 0.06);diff --cc apps/desktop/test/composer-menu-style-tokens.test.mjsindex 92d434727,000000000..aa3ec3eaemode 100644,000000..100644--- a/apps/desktop/test/composer-menu-style-tokens.test.mjs+++ b/apps/desktop/test/composer-menu-style-tokens.test.mjs@@@ -1,40 -1,0 +1,40 @@@+import assert from "node:assert/strict";+import { readFileSync } from "node:fs";+import test from "node:test";++const menus = readFileSync(new URL("../src/styles/composer-menus.css", import.meta.url), "utf8");+const tokens = readFileSync(new URL("../src/styles/tokens.css", import.meta.url), "utf8");++function rule(source, selector) {+ const escaped = selector.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");+ const match = source.match(new RegExp(`(?:^|\\n)${escaped}\\s*\\{([^}]*)\\}`));+ assert.ok(match, `missing CSS rule: ${selector}`);+ return match[1];+}++function declaration(body, property) {+ const match = body.match(new RegExp(`(?:^|[;\\n])\\s*${property}:\\s*([^;]+);`));+ assert.ok(match, `missing CSS declaration: ${property}`);+ return match[1].trim().replace(/\s+/g, " ");+}++test("composer model chip uses the existing single-line height token", () => {+ assert.equal(+ declaration(rule(menus, ".composer-model-thinking-chip"), "line-height"),+ "var(--leading-none)",+ );+ assert.equal(declaration(rule(tokens, "@theme"), "--leading-none"), "1");+});++test("light model menu token preserves its opaque surface and original shadow", () => {+ const menu = rule(menus, ':root[data-theme="light"] .composer-model-menu');+ assert.equal(declaration(menu, "background"), "var(--ds-bg-elevated-opaque)");+ assert.equal(declaration(menu, "backdrop-filter"), "none");+ assert.equal(declaration(menu, "-webkit-backdrop-filter"), "none");- assert.equal(declaration(menu, "box-shadow"), "var(--ds-shadow-model-menu-light)");++ assert.equal(declaration(menu, "box-shadow"), "var(--ds-shadow-model-menu)");+ assert.equal(- declaration(rule(tokens, ':root[data-theme="light"]'), "--ds-shadow-model-menu-light"),++ declaration(rule(tokens, ':root[data-theme="light"]'), "--ds-shadow-model-menu"),+ "0 0 0 0.5px color-mix(in oklab, #1a1c1f 10%, transparent), " ++ "0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06)",+ );+});