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(composer): use the same typography for recent model rows
zszz34c9efb3fd844
diff --git a/apps/desktop/src/features/chat/composer/ComposerModelList.tsx b/apps/desktop/src/features/chat/composer/ComposerModelList.tsxindex 973ca9cf4..486ef9ad7 100644--- a/apps/desktop/src/features/chat/composer/ComposerModelList.tsx+++ b/apps/desktop/src/features/chat/composer/ComposerModelList.tsx@@ -57,7 +57,7 @@ export function ComposerModelList({</label><div className="composer-model-list" ref={modelListRef}>{recentEntries.length > 0 ? (- <div role="group" aria-label={t("chat.recentModels")}>+ <div className="composer-model-group" role="group" aria-label={t("chat.recentModels")}><div className="composer-model-group-label">{t("chat.recentModels")}</div>{recentEntries.map(({ provider, model }, index) => {const active = provider.id === selectedProviderId && sameComposerModelId(model.modelId, selectedModelId ?? "");diff --git a/scripts/e2e/composer-model-selection.tsx b/scripts/e2e/composer-model-selection.tsxindex 4595e17b3..3b99537c7 100644--- a/scripts/e2e/composer-model-selection.tsx+++ b/scripts/e2e/composer-model-selection.tsx@@ -122,6 +122,11 @@ globalThis.composerModelSelectionProbe = async () => {await settle();const expandedRows = document.querySelectorAll(".composer-model-list [role=menuitemradio]");if (expandedRows.length !== 4) throw new Error("Expanded models must appear once in the same list");+ const recentStyle = getComputedStyle(expandedRows[0]);+ const otherStyle = getComputedStyle(expandedRows[3]);+ if (recentStyle.fontSize !== otherStyle.fontSize || recentStyle.fontWeight !== otherStyle.fontWeight) {+ throw new Error(`Model typography differs: recent ${recentStyle.fontSize}/${recentStyle.fontWeight}, other ${otherStyle.fontSize}/${otherStyle.fontWeight}`);+ }disclosure.click();await settle();const search = document.querySelector<HTMLInputElement>(".composer-model-search input")!;