Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
style: refine model picker — glassmorphism, tighter spacing, pill chip
vastsa7b960c5707b0
diff --git a/apps/desktop/src/styles/composer-menus.css b/apps/desktop/src/styles/composer-menus.cssindex a4a44777a..27f5e5269 100644--- a/apps/desktop/src/styles/composer-menus.css+++ b/apps/desktop/src/styles/composer-menus.css@@ -79,11 +79,15 @@width: min(240px, calc(100vw - 24px));max-height: min(520px, calc(100vh - 92px));overflow-y: auto;- padding: 6px;- border-radius: var(--radius-lg);- background: var(--ds-bg-elevated-opaque);- box-shadow: var(--ds-shadow-dialog);- border: 1px solid var(--ds-border-subtle);+ padding: 5px;+ border-radius: var(--radius-xl);+ background: color-mix(in oklab, var(--ds-bg-elevated-opaque) 82%, transparent);+ backdrop-filter: saturate(1.6) blur(40px);+ -webkit-backdrop-filter: saturate(1.6) blur(40px);+ box-shadow:+ 0 0 0 0.5px var(--ds-elevation-stroke),+ var(--ds-shadow-dialog);+ border: none;color: var(--ds-text-primary);opacity: 0;pointer-events: none;@@ -99,7 +103,7 @@.composer-model-thinking-menu {z-index: 60;- width: min(300px, calc(100vw - 24px));+ width: min(280px, calc(100vw - 24px));}.composer-model-thinking-menu.is-open {@@ -108,13 +112,19 @@}.composer-model-thinking-chip {- max-width: min(300px, calc(100vw - 24px));+ max-width: min(280px, calc(100vw - 24px));min-width: 0;- padding: 0 9px !important;+ height: 26px !important;+ padding: 0 8px !important;gap: 4px !important;+ border-radius: var(--radius-full) !important;color: var(--ds-text-secondary) !important;- line-height: var(--leading-compact);+ font-size: var(--text-sm);+ line-height: 1;overflow: hidden;+ transition:+ background var(--motion-duration-fast) var(--motion-ease-out),+ color var(--motion-duration-fast) var(--motion-ease-out);}.composer-model-thinking-chip:hover {@@ -170,11 +180,11 @@display: flex;width: 100%;min-width: 0;- min-height: 34px;+ min-height: 30px;align-items: center;- gap: 8px;- border-radius: var(--radius-md);- padding: 0 10px;+ gap: 7px;+ border-radius: var(--radius-sm);+ padding: 0 8px;color: var(--ds-text-primary);font-size: var(--text-sm-plus);line-height: var(--leading-compact);@@ -207,7 +217,7 @@min-width: 0;margin-left: auto;overflow: hidden;- color: var(--ds-accent);+ color: var(--ds-text-muted);font-size: var(--text-sm);text-overflow: ellipsis;white-space: nowrap;@@ -219,20 +229,22 @@/* Menu groups are separated by a breath of space, not a rule (D297). */.composer-menu-separator {- height: 6px;+ height: 1px;+ margin: 2px 8px;+ background: var(--ds-border-subtle);}.composer-model-thinking-menu .composer-model-search {- margin: 4px 4px 6px;+ margin: 3px 3px 5px;}.composer-model-thinking-menu .composer-plus-item {- min-height: 34px;- padding: 7px 10px;+ min-height: 28px;+ padding: 5px 8px;}.composer-thinking-heading {- padding: 4px 10px 7px;+ padding: 3px 8px 5px;color: var(--ds-text-muted);font-size: var(--text-xs-plus);line-height: var(--leading-compact);@@ -240,9 +252,11 @@.composer-thinking-list {display: flex;- max-height: 264px;+ max-height: 280px;flex-direction: column;overflow-y: auto;+ scrollbar-width: thin;+ scrollbar-color: var(--ds-border-default) transparent;}/* Reasoning slider (issue #417): the menu root carries the slider directly@@ -450,12 +464,12 @@@keyframes composer-menu-in {from {opacity: 0;- transform: translateY(4px);+ transform: translateY(6px) scale(0.97);}to {opacity: 1;- transform: translateY(0);+ transform: translateY(0) scale(1);}}@@ -482,18 +496,22 @@/* Provider→models groups: the list scrolls on its own so the search field andprovider headings stay reachable with many discovered models. */.composer-model-list {- max-height: 264px;+ max-height: 280px;overflow-y: auto;+ scrollbar-width: thin;+ scrollbar-color: var(--ds-border-default) transparent;}.composer-model-group-label {position: sticky;top: 0;z-index: 1;- padding: 7px 10px 3px;- background: var(--ds-bg-elevated-opaque);- color: var(--ds-text-secondary);- font-size: var(--text-md);+ padding: 6px 8px 2px;+ background: color-mix(in oklab, var(--ds-bg-elevated-opaque) 82%, transparent);+ backdrop-filter: saturate(1.6) blur(40px);+ -webkit-backdrop-filter: saturate(1.6) blur(40px);+ color: var(--ds-text-muted);+ font-size: var(--text-xs-plus);font-weight: var(--font-weight-strong);letter-spacing: var(--tracking-wide);text-transform: uppercase;@@ -508,7 +526,7 @@a clear parent → child hierarchy without changing the option's label. Thesmaller normal-weight text keeps the provider heading as the visual anchor. */.composer-model-group .composer-model-option {- padding-left: 22px;+ padding-left: 8px;font-size: var(--text-sm);font-weight: var(--font-weight-normal);}@@ -521,7 +539,7 @@flex: 1;flex-direction: column;align-items: flex-start;- gap: 4px;+ gap: 2px;}.composer-model-full-id {@@ -544,7 +562,7 @@}.composer-model-option-badge {- border-radius: var(--radius-sm);+ border-radius: var(--radius-3xs);background: var(--ds-tile-deep);padding: 0 4px;color: var(--ds-text-faint);@@ -567,6 +585,7 @@.composer-plus-item.active {background: var(--ds-bg-active);+ border-radius: var(--radius-sm);}.composer-plus-item.active span:last-child {@@ -590,11 +609,11 @@.composer-model-search {display: flex;align-items: center;- gap: 7px;- height: 30px;- margin: 6px 4px;- padding: 0 9px;- border-radius: var(--radius-md);+ gap: 6px;+ height: 28px;+ margin: 4px 3px 5px;+ padding: 0 8px;+ border-radius: var(--radius-sm);background: var(--ds-bg-inset);color: var(--ds-text-muted);}@@ -619,7 +638,7 @@}.composer-model-empty {- padding: 16px 10px;+ padding: 12px 8px;color: var(--ds-text-muted);font-size: var(--text-sm);text-align: center;