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(desktop): keep the work-panel resize line off the solid accent
vastsab1e56754c35c
diff --git a/apps/desktop/src/styles/work-panel.css b/apps/desktop/src/styles/work-panel.cssindex 499391bee..6069b8c1e 100644--- a/apps/desktop/src/styles/work-panel.css+++ b/apps/desktop/src/styles/work-panel.css@@ -110,6 +110,19 @@background: var(--ds-focus);}+/*+ * Pointer states paint a tint of that accent instead of the solid value. The+ * accent is pure white on the dark plate, so a full-height solid hairline reads+ * as a bright seam rather than a control; 50% holds the line at roughly 5.3:1+ * against the dark plates and 3.3:1 against the light ones. Keyboard focus keeps+ * the full accent, because a focus ring is not a pointer cue.+ */+.work-panel-resize:hover::after,+.work-panel-resize:active::after,+.work-panel[data-resizing="true"] .work-panel-resize::after {+ background: color-mix(in oklab, var(--ds-focus) 50%, transparent);+}+.work-panel-resize:focus-visible {outline: none;}diff --git a/apps/desktop/test/work-panel.test.mjs b/apps/desktop/test/work-panel.test.mjsindex e183fe4ec..7606da33d 100644--- a/apps/desktop/test/work-panel.test.mjs+++ b/apps/desktop/test/work-panel.test.mjs@@ -406,6 +406,17 @@ test("work panel separator exposes internal panel width resizing", () => {assert.match(globalStyles, /\.work-panel-resize \{[^}]*width:\s*10px;/s);assert.match(globalStyles, /touch-action:\s*none/);assert.match(globalStyles, /\.work-panel-resize:focus-visible/);+ // The hover/drag line is a tint of the accent, never the solid value: the+ // accent is pure white on the dark plate, so a solid full-height hairline+ // reads as a bright seam rather than a control. Keyboard focus keeps it.+ assert.match(+ globalStyles,+ /\.work-panel-resize:hover::after,\s*\.work-panel-resize:active::after,\s*\.work-panel\[data-resizing="true"\] \.work-panel-resize::after \{\s*background: color-mix\(in oklab, var\(--ds-focus\) 50%, transparent\)/s,+ );+ assert.match(+ globalStyles,+ /\.work-panel-resize:focus-visible::after,[\s\S]*?\{\s*width: 2px;\s*background: var\(--ds-focus\);/,+ );});test("Electron enforces the responsive shell minimum", () => {diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.mdindex a944eefe2..5ba914777 100644--- a/docs/spec/04-ux/07-ui-design-system.md+++ b/docs/spec/04-ux/07-ui-design-system.md@@ -650,7 +650,7 @@ and give plain tool blocks a fill in light only.| Selection (theme, language, level) | Deeper tint or raised pill plus the existing check mark; no selected border || Floating layers (menus, popovers, dialogs, tooltips, toasts, hover cards) | `0 0 0 0.5px border-default` + shadow on the container; no rules inside || Focus rings | accent tint, 2px box-shadow |-| Control affordances (switch off-ring, resize handles) | Allowed; they are the control, not a partition |+| Control affordances (switch off-ring, resize handles) | Allowed; they are the control, not a partition. The work-panel divider paints a 50% accent tint on hover and while dragging (roughly 5.3:1 dark, 3.3:1 light); the solid accent is reserved for keyboard focus |## 7. Iconographydiff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex 41f5796b4..21bc8d634 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -895,7 +895,9 @@ singleton without duplicating it:strip rather than by a second resource list. Launcher rows use the samefast hover/focus feedback as other panel rows.- Active tabs, file-tree rows, diff headers, and the resize handle ease hover- fills with `--motion-duration-fast` / `--motion-ease-out`+ fills with `--motion-duration-fast` / `--motion-ease-out`. The handle's 2px+ line is a 50% accent tint while hovered or dragged — the solid accent is pure+ white on the dark plate, so only keyboard focus paints it- Browser URL and empty-tool chrome share the light inset field treatment usedby Settings controls (D148)- Every empty state in the panel — the no-resource body and each tab's own —diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex d2f624968..84a6a9ec9 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -4577,7 +4577,7 @@ identify the platform validation still needed.- Work panel body reads as quiet `#fafafa` inset paper with a white header band.- Settings fields, browser URL, segment tracks, and shortcut keycaps use light inset fills; focused fields lift with a neutral ring.- Toggle on-state keeps a white knob on the near-black track.- - Hover fills on file-tree/diff/resize ease with shared motion tokens.+ - Hover fills on file-tree/diff/resize ease with shared motion tokens, and the divider's 2px line is a 50% accent tint while hovered or dragged, so it never paints a solid white hairline across the dark plate; keyboard focus keeps the full accent.- Light dialog scrim is softer than the dark 45% veil (~28% ink).- Tool output keeps its cascade: light paints the same lighter tile over erroroutput and over plain tool blocks, while dark shows the error tint and leaves