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): quiet the model chip so the name leads
vastsa811fc8f0288c
diff --git a/apps/desktop/src/components/workpanel/SubagentTranscriptTab.tsx b/apps/desktop/src/components/workpanel/SubagentTranscriptTab.tsxindex c17cf22ea..174126956 100644--- a/apps/desktop/src/components/workpanel/SubagentTranscriptTab.tsx+++ b/apps/desktop/src/components/workpanel/SubagentTranscriptTab.tsx@@ -220,7 +220,6 @@ function SubagentTranscriptSurface({ delegationId }: { delegationId: string }) {><span className="composer-model-thinking-icon" aria-hidden="true"><IconBot size={14} /></span><span className="composer-model-thinking-model">{delegateSettings.modelId || "—"}</span>- <span className="composer-model-thinking-dot" aria-hidden="true">·</span><span className="composer-model-thinking-level">{delegateSettings.thinkingLevel || "—"}</span><IconChevronDown size={12} aria-hidden="true" className="composer-model-thinking-chevron" /></button>diff --git a/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx b/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsxindex d93cb6822..8e7f8f1c9 100644--- a/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx+++ b/apps/desktop/src/features/chat/composer/ComposerModelPicker.tsx@@ -96,7 +96,6 @@ export function ComposerModelPicker({<span className="composer-model-thinking-model">{modelLabel}</span>{thinkingLevel !== "off" ? (<>- <span className="composer-model-thinking-dot" aria-hidden="true">·</span><span className="composer-model-thinking-level">{thinkingLabel}</span></>) : null}diff --git a/apps/desktop/src/styles/composer-menus.css b/apps/desktop/src/styles/composer-menus.cssindex f6a62e3d8..451a190f2 100644--- a/apps/desktop/src/styles/composer-menus.css+++ b/apps/desktop/src/styles/composer-menus.css@@ -118,9 +118,13 @@.composer-model-thinking-chip {max-width: min(280px, calc(100vw - 24px));min-width: 0;- height: 26px !important;- padding: 0 8px !important;- gap: 4px !important;+ /*+ Two tokens, one line: the model name carries the row and the reasoning+ level reads as a quiet badge. The glyph stays neutral so the name is the+ only element asking for attention.+ */+ padding: 0 7px 0 8px !important;+ gap: 6px !important;border-radius: var(--radius-full) !important;color: var(--ds-text-secondary) !important;font-size: var(--text-sm);@@ -147,7 +151,13 @@flex: 0 0 auto;align-items: center;justify-content: center;- color: var(--ds-accent);+ color: var(--ds-text-muted);+ transition: color var(--motion-duration-fast) var(--motion-ease-out);+}++.composer-model-thinking-chip:hover .composer-model-thinking-icon,+.composer-model-thinking-chip.active .composer-model-thinking-icon {+ color: var(--ds-text-secondary);}.composer-model-thinking-model,@@ -160,17 +170,35 @@.composer-model-thinking-model {max-width: 170px;+ color: var(--ds-text-primary);+ font-weight: var(--font-weight-medium);}+/*+ The level badge is tonal rather than accented: it sits next to the name, so+ it must read as metadata without competing with the primary ink.+*/.composer-model-thinking-level {+ flex: 0 0 auto;+ display: inline-block;max-width: 88px;- color: var(--ds-accent);- font-size: var(--text-sm);+ padding: 1px 6px;+ border-radius: var(--radius-full);+ background: var(--ds-tile);+ color: var(--ds-text-secondary);+ font-size: var(--text-2xs);+ line-height: var(--leading-compact);}-.composer-model-thinking-dot {+.composer-model-thinking-chevron {flex: 0 0 auto;color: var(--ds-text-muted);+ transition: color var(--motion-duration-fast) var(--motion-ease-out);+}++.composer-model-thinking-chip:hover .composer-model-thinking-chevron,+.composer-model-thinking-chip.active .composer-model-thinking-chevron {+ color: var(--ds-text-secondary);}.composer-model-thinking-menu .composer-menu-root {diff --git a/apps/desktop/src/styles/responsive.css b/apps/desktop/src/styles/responsive.cssindex 062ebaa85..be027b189 100644--- a/apps/desktop/src/styles/responsive.css+++ b/apps/desktop/src/styles/responsive.css@@ -40,7 +40,6 @@}@container composer-stack (max-width: 560px) {- .composer-model-thinking-dot,.composer-model-thinking-level {display: none;}diff --git a/apps/desktop/test/composer-responsive.test.mjs b/apps/desktop/test/composer-responsive.test.mjsindex a22f58e38..117f3c61a 100644--- a/apps/desktop/test/composer-responsive.test.mjs+++ b/apps/desktop/test/composer-responsive.test.mjs@@ -25,7 +25,7 @@ test("narrow composer containers progressively simplify the model controls", ()assert.match(styles, /\.composer-model-thinking\s*\{[\s\S]*?min-width:\s*0;/);assert.match(styles,- /@container composer-stack \(max-width: 560px\)[\s\S]*?\.composer-model-thinking-dot,[\s\S]*?\.composer-model-thinking-level[\s\S]*?display:\s*none;/,+ /@container composer-stack \(max-width: 560px\)[\s\S]*?\.composer-model-thinking-level[\s\S]*?display:\s*none;/,);assert.match(styles,