Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
docs(spec): record the quiet work-panel control seat
ZeroY221f4f1e1323
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.mdindex 315997b52..a944eefe2 100644--- a/docs/spec/04-ux/07-ui-design-system.md+++ b/docs/spec/04-ux/07-ui-design-system.md@@ -223,7 +223,7 @@ opacity-only changes, so actions remain legible in dark and light themes.Light-surface polish (D148):- Docked work panel uses quiet inset paper (`#fafafa`) with a white header band and a combined create trigger in the header so the tool column stays on content without any divider (D297 removed the remaining edge rules).-- The work-panel header spends one control gap (`--ds-work-panel-control-gap`, 4px) on the whole row: the tab strip to the action group, `+` to maximize, and — through the tokenized 44px safe lane the panel header reserves for the viewport-fixed panel toggle — the action group to that toggle. The three buttons read as one group with no divider between the maximize control and the collapse toggle. Because maximize sits between them, the `+` trigger still keeps more than 24px of visual separation from the toggle hit target on supported window sizes.+- The work-panel header spends one control gap (`--ds-work-panel-control-gap`, 4px) on the whole row: the tab strip to the action group, `+` to maximize, and — through the tokenized 44px safe lane the panel header reserves for the viewport-fixed panel toggle — the action group to that toggle. The three buttons read as one group with no divider between the maximize control and the collapse toggle. Because maximize sits between them, the `+` trigger still keeps more than 24px of visual separation from the toggle hit target on supported window sizes. All three are the shared chrome icon control — 28px square on a transparent seat, hover wash on pointer, dimmed when disabled — so `+`, maximize, and the collapse toggle stay quiet icons instead of filled or raised squares. The toggle's `aria-pressed` state changes glyph and ink only.- Shared form fields, browser URL, settings segment tracks, and shortcut keycaps use `--ds-tile` fills with no stroke (D297); focus lifts to white with an accent-tinted ring. An Unbound shortcut uses a localized text state instead of an empty keycap and keeps its recorder and restore controls keyboard-focusable.- Settings toggles keep a near-black on-track and force a white knob in light mode.Off/on track and knob colours come from the `--ds-switch-*` theme tokens; adiff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex 7ceb6ca4f..8354ae1aa 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -272,11 +272,15 @@ combined model × reasoning selection (§11).native drag rectangle is the border box. The control band continues thetitlebar's `border-subtle` bottom rule and uses the same token for itsleading divider.-- Every chrome icon control is one 28px square (`--ds-work-panel-toggle-size`):- the topbar's dock toggle, the viewport-fixed work-panel toggle, and the- preview/route-band lane actions. The lane's two actions match their siblings- instead of rendering at a size of their own, and the panel header's lane- reserve is derived from that same control size rather than from a literal.+- Every chrome icon control is one 28px square (`--ds-work-panel-toggle-size`)+ with one transparent seat: the topbar's dock toggle, the viewport-fixed+ work-panel toggle, the preview/route-band lane actions, and the work-panel+ header's `+` and maximize/restore controls. A control matches its siblings+ instead of rendering at a size or on a surface of its own, so the icon alone+ carries it until the semantic hover wash paints a surface. The panel header's+ lane reserve is derived from that same control size rather than from a+ literal, and the toggle's open state is its glyph swap plus the engaged ink —+ no control in this family paints a filled or raised "on" pill.- Band reservation is platform-independent (D269). The band is opaque andabsolutely positioned, so scrolling route content passes underneath it onevery platform, macOS included. Every route surface that starts its own@@ -852,7 +856,12 @@ strip to the action group, `+` to maximize, and maximize to the viewport-fixedtoggle — so the three panel buttons read as one group instead of a rail behinda divider. Because maximize sits between them, the `+` trigger still keeps adistinct hit target with more than 24px of visual gap on every supported-platform.+platform. All three are the same control as every other chrome icon: 28px+square with a transparent seat, so the header reads as quiet icons rather than+filled squares. `+` and maximize take their geometry and hover wash from the+shared chrome-control group in `chrome.css`, not from a rule of their own, and+the viewport-fixed toggle's `aria-pressed` state changes ink and glyph only —+never a background or a raised shadow.With no resource the body remains open and becomes a concise **New** launcher.An explicit New tab uses the same data-driven tool list, so selecting a rowdiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 65aa5e768..b4686d2f9 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -12208,7 +12208,10 @@ plugin-form fixtures in an isolated temporary directory at runtime.separator's ARIA minimum/maximum follow the same dynamic budget. The panelheader's `+`, maximize, and viewport-fixed collapse toggle resolve to a singlecontrol gap (`--ds-work-panel-control-gap`) with no divider, inset, or margin- of the action group's own.+ of the action group's own, and all three are the shared chrome icon control:+ 28px square on a transparent seat with only a semantic hover wash, so the+ header shows quiet icons rather than filled or raised squares. The collapse+ toggle's open state changes its glyph and ink only.- **Specs linked**: `04-ux/01-ui-ia.md`, `04-ux/07-ui-design-system.md` §10,`04-ux/08-component-spec.md` §1 and §5, `04-ux/09-interaction-patterns.md` §8,ADR 0238@@ -12218,7 +12221,9 @@ plugin-form fixtures in an isolated temporary directory at runtime.`pnpm test:e2e:layout` — fixed-window width invariance, the 450px floor acrossa pointer drag, the unfolded composer row at that floor, sidebaryield/restore, the 460px reopen target, the panel action group's shared- control gap, and preview mode); unit coverage in+ control gap, and preview mode). The panel controls' transparent seat is pinned+ by the source contracts in `chrome-control-geometry.test.mjs`; the rendered+ surface needs the eyes-on pass above. Unit coverage in`work-panel-resize.test.mjs`#### E2E-LAYOUT-work-panel-maximizediff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex ac9d07d7f..3e21ecad0 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -5546,3 +5546,31 @@ that was sitting at the bottom — including after the turn had finished.and no new default. See `04-ux/08-component-spec.md` §5.2,`04-ux/07-ui-design-system.md` §4.3, andE2E-LAYOUT-three-column-width-priority.++## 2026-09-16 — The work-panel controls are quiet icons, not filled seats++- The work-panel header's `+` and maximize controls were painted with a+ `--ds-tile` seat of their own, and the viewport-fixed collapse toggle added+ `--ds-tile-deep` plus `--ds-raised-shadow` while `aria-pressed="true"`. In the+ light theme that turned a row of three 28px controls into filled squares, with+ the toggle reading as a raised circular pill floating over the panel header —+ nothing like the top-left dock toggle and new-task controls beside them.+- `+` and maximize now join the shared chrome-control group in `chrome.css` —+ the same rule that seats the topbar's dock toggle, the viewport-fixed panel+ toggle, and the preview/route-band lane actions — so they take one geometry+ (28px square, `--radius-md`, `flex: 0 0`), one transparent seat, the semantic+ `--ds-bg-hover` wash on pointer, and the `opacity: 0.4` disabled state. Their+ duplicated rules in `work-panel.css` are gone; the partial keeps only the+ action group's spacing.+- The toggle's pressed state drops the fill and the raised shadow and keeps the+ engaged ink, so the open state is the glyph swap plus `--ds-text-primary`.+ `aria-pressed` still carries the state to assistive technology, and+ `.app-work-panel-toggle` keeps its viewport-fixed ownership and `no-drag`+ carve-out.+- Keyboard focus is unchanged: the global `:focus-visible` outline applies as it+ does to every other chrome icon control, so removing the retired+ `:focus-visible` background wash costs no focus affordance.+- Renderer only: no geometry, gap, inset, protocol, storage, host, permission, or+ migration change, and no new token. See `04-ux/08-component-spec.md` §2.3 and+ §5.2, `04-ux/07-ui-design-system.md` §4.3, and+ E2E-LAYOUT-three-column-width-priority.diff --git a/docs/zh-CN/spec/04-ux/07-ui-design-system.md b/docs/zh-CN/spec/04-ux/07-ui-design-system.mdindex 3757e0b16..9afbed83d 100644--- a/docs/zh-CN/spec/04-ux/07-ui-design-system.md+++ b/docs/zh-CN/spec/04-ux/07-ui-design-system.md@@ -475,7 +475,10 @@ control 拥有 46px 高保留带的全部份额。展开的工作面板标题使关闭控件旁重复第二个 `×`。头部的 `+`、最大化与视口固定的折叠开关共用同一个控制间距(`--ds-work-panel-control-gap`,4px):标签条到动作组、`+` 到最大化,以及动作组到开关的车道预留(`calc(size + inset + gap)`,44px)。-动作组不再有自己的分隔线、内缩或外边距,因此这三个按钮读作一组。主要、设置和+动作组不再有自己的分隔线、内缩或外边距,因此这三个按钮读作一组。三者都是共享的+chrome 图标控件:28px 方形、透明底座、指针悬停时显示语义化淡色、禁用时变暗,+因此 `+`、最大化与折叠开关保持安静的图标形态,而不是填充或抬升的方块;开关的+`aria-pressed` 状态只改变图形与墨色。主要、设置和工作面板拖动区域必须在此保留之前终止,而不是重叠它并仅依赖于后代 `no-drag`,因此每个可见控件像素仍然可点击。终止是几何意义上的:区域在元素的diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.mdindex ee4f8821e..95a36230d 100644--- a/docs/zh-CN/spec/04-ux/08-component-spec.md+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md@@ -226,10 +226,13 @@ Composer 拥有 Agent/Plan/Goal 控件以及组合的模型 × 推理选择(§`--ds-toolbar-height` 填充。缺少这一保留时,页面标头会渲染到带的后面,标题行被遮挡。只有叠在带之上的表面(`z-index: 60` 的插件详情侧面板)可以跳过它。-- 每个 chrome 图标控件都是同一个 28px 方形(`--ds-work-panel-toggle-size`):- 顶栏的侧边栏开关、视口固定的工作面板开关,以及预览态/路由带上的动作组。- 因此那两颗动作按钮与其同级控件尺寸一致,不再使用自己更小的尺寸;面板头部- 为动作组预留的车道宽度也由同一个控件尺寸推导,而不是写死的字面量。+- 每个 chrome 图标控件都是同一个 28px 方形(`--ds-work-panel-toggle-size`),+ 并共用同一个透明底座:顶栏的侧边栏开关、视口固定的工作面板开关、+ 预览态/路由带上的动作组,以及工作面板头部的 `+` 与最大化/还原按钮。+ 控件与其同级保持一致,不再使用自己更小的尺寸,也不再自带表面,因此默认+ 由图标本身承载,只有语义化的悬停淡色才会在其下着色。面板头部为动作组+ 预留的车道宽度也由同一个控件尺寸推导,而不是写死的字面量;开关的打开+ 状态只改变图形与墨色,这一族控件都不绘制填充或抬升的“开启”胶囊。### 2.4 状态@@ -691,7 +694,10 @@ expanded/collapsed 侧边栏仍为 20px/18px 且启动画面为 64 像素。+ 头部自身的 4px 控制间距 `--ds-work-panel-control-gap`),这一个间距同时分隔整行:标签条到动作组、`+` 到最大化,以及最大化到开关。动作组不再有自己的分隔线、内缩或外边距,因此三个按钮读作一组;`+` 与开关之间仍隔着最大化控件,- 命中区域彼此独立且视觉间隔大于 24px。+ 命中区域彼此独立且视觉间隔大于 24px。三者都是与其他 chrome 图标相同的控件:+ 28px 方形、透明底座,因此头部呈现的是安静的图标而不是填充方块。`+` 与最大化+ 从 `chrome.css` 的共享 chrome 控件组取得几何与悬停淡色,而不是自带的规则;+ 视口固定开关的 `aria-pressed` 状态只改变墨色与图形,绝不改变背景或阴影。菜单只有 Tools & panels 分组,Review 在前,插件视图按声明顺序排列;只有真实存在的快捷键才显示快捷键标签。- 标签在悬停、聚焦和活动时显示 `×`,中键也可关闭。面板溢出由标签条处理,diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.mdindex db85354f2..ec1e45786 100644--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@ -4243,3 +4243,11 @@ the retained upstream work-panel lifecycle. See- 现在整行由同一个 token 控制间距。`--ds-work-panel-control-gap: 4px` 取代了 `--ds-work-panel-toggle-gap`,同时是头部的 flex 间距(标签条到动作组)、`.work-panel-actions` 的间距(`+` 到最大化),以及头部右侧内边距以 `calc(size + inset + control-gap)`(44px)形式花费的、动作组到固定折叠开关的间距。`.work-panel-actions` 只声明间距:分隔线、内缩与外边距都已移除。- 车道仍然为整个开关预留空间,`+` 触发按钮在车道内与开关之间仍有 36px(4px + 28px 的最大化控件 + 4px),因此 `WORK_PANEL_HEADER_PROBE` 的 24px 断言与 E2E-152 的命中区域契约依然成立。- 仅渲染层:无协议、存储、宿主、权限或迁移改动,也没有新增默认值。见 `04-ux/08-component-spec.md` §5.2、`04-ux/07-ui-design-system.md` §4.3 与 E2E-LAYOUT-three-column-width-priority。++## 2026-09-16 —— 工作面板的控件是安静的图标,而不是填充的底座++- 工作面板头部的 `+` 与最大化控件此前各有一个 `--ds-tile` 底座,视口固定的折叠开关在 `aria-pressed="true"` 时又叠加 `--ds-tile-deep` 与 `--ds-raised-shadow`。在浅色主题下,这一行三个 28px 控件读起来就是三个填充方块,开关更像一颗悬浮在面板头部之上的抬升圆形胶囊 —— 与旁边左上角的侧边栏开关、新任务控件完全不是同一种语言。+- `+` 与最大化现在加入 `chrome.css` 中的共享 chrome 控件组 —— 也就是为顶栏侧边栏开关、视口固定的面板开关与预览态/路由带动作组提供底座的同一条规则 —— 因此它们共用一套几何(28px 方形、`--radius-md`、`flex: 0 0`)、同一个透明底座、指针悬停时的语义化 `--ds-bg-hover` 淡色,以及 `opacity: 0.4` 的禁用状态。它们在 `work-panel.css` 中重复的规则已删除,该分部只保留动作组的间距。+- 开关的按下状态去掉填充与抬升阴影,保留被激活的墨色,因此打开状态就是图形切换加 `--ds-text-primary`。`aria-pressed` 仍向辅助技术传达状态,`.app-work-panel-toggle` 继续拥有视口固定定位与 `no-drag` 排除区。+- 键盘焦点不变:全局 `:focus-visible` 轮廓与其他 chrome 图标控件一致地生效,因此移除已废弃的 `:focus-visible` 背景淡色不会损失任何焦点提示。+- 仅渲染层:几何、间距、内缩、协议、存储、宿主、权限与迁移均无改动,也没有新增 token。见 `04-ux/08-component-spec.md` §2.3 与 §5.2、`04-ux/07-ui-design-system.md` §4.3 与 E2E-LAYOUT-three-column-width-priority。