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): scroll the New launcher tool list when it overflows the panel
yu.xiab578585f6c9d
diff --git a/apps/desktop/src/styles/work-panel.css b/apps/desktop/src/styles/work-panel.cssindex 5e2a61a94..199ae5065 100644--- a/apps/desktop/src/styles/work-panel.css+++ b/apps/desktop/src/styles/work-panel.css@@ -504,6 +504,7 @@.work-panel-launcher {display: flex;width: 100%;+ min-height: 0;flex-direction: column;gap: 8px;padding: 14px 10px;@@ -518,8 +519,10 @@.work-panel-launcher-list {display: flex;+ min-height: 0;flex-direction: column;gap: 2px;+ overflow-y: auto;}.work-panel-launcher-row {diff --git a/apps/desktop/test/work-panel.test.mjs b/apps/desktop/test/work-panel.test.mjsindex c2921e6bf..03ac12e43 100644--- a/apps/desktop/test/work-panel.test.mjs+++ b/apps/desktop/test/work-panel.test.mjs@@ -634,6 +634,19 @@ test("the panel and a new tab share the same launcher rows", async () => {assert.match(emptySource, /work-tab-empty-body/);});+test("the launcher tool list scrolls when it outgrows the panel body", () => {+ // The launcher sits in the flex tabpane; without min-height: 0 it grows past+ // the pane and the rows below the fold become unreachable (issue #2026).+ const launcher = globalStyles.match(/\.work-panel-launcher \{[^}]*\}/)?.[0] ?? "";+ assert.match(launcher, /min-height: 0/);+ const list = globalStyles.match(/\.work-panel-launcher-list \{[^}]*\}/)?.[0] ?? "";+ assert.match(list, /min-height: 0/);+ assert.match(list, /overflow-y: auto/);+ // The title stays pinned; only the rows scroll.+ const title = globalStyles.match(/\.work-panel-launcher-title \{[^}]*\}/)?.[0] ?? "";+ assert.doesNotMatch(title, /overflow-y/);+});+test("work panel empty states match the app's other empty-state proportions", () => {const icon = globalStyles.match(/\.work-tab-empty-icon \{[^}]*\}/)?.[0] ?? "";assert.match(icon, /width: 38px/);diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex d67da9816..e7b1c909b 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -1111,6 +1111,10 @@ singleton without duplicating it:+---------------------------------------+```+The launcher is bounded by the panel body: the title stays pinned while the+tool rows scroll inside the list when the data-driven set outgrows the+available height, so every row remains reachable (#2026).+### 5.2.1 Light-theme surface- Panel body uses quiet inset paper (`#fafafa`); the 46px header band and tooldiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex bbfc1cd8e..58d3855b8 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -4959,7 +4959,10 @@ window; opening a normal panel afterward must still work.still work without moving it.4) Click `+` twice and verify each creates and activates a separate Newlauncher tab. Confirm its body lists Review and each in-scope plugin view- exactly once. Open Browser and confirm its native surface opens at unchanged+ exactly once. Shrink the window (or install enough plugins) so the launcher+ rows exceed the panel height: the New title stays pinned, the row list+ scrolls, the bottom rows stay reachable by wheel, scrollbar, and Tab focus+ (#2026). Open Browser and confirm its native surface opens at unchangedbounds. Open its context menu and verify the native popup appears above Browserchrome while the page remains visible. With Browser active, right-click anothertab and confirm it still uses the native menu. Repeat at 50% and 150% app zoom;diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.mdindex 7823fa966..7a209656a 100644--- a/docs/zh-CN/spec/04-ux/08-component-spec.md+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md@@ -720,6 +720,9 @@ expanded/collapsed 侧边栏仍为 20px/18px 且启动画面为 64 像素。+---------------------------------------+```+启动器以面板主体为界:数据驱动的工具行超出可用高度时,标题保持固定,+列表内部滚动(#2026),每一行都保持可达。+### 5.2.1 浅色主题表面- 面板主体采用静音插页纸(`#fafafa`); 46px 标题带和工具diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex bc5ea2f39..6507da796 100644--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md@@ -2402,7 +2402,9 @@ hover/focus 不带移位标签,项目标题 hover/focus 路径显示删除非活动行并确认菜单保持打开状态并将焦点放在邻居,按 Esc 键并确认焦点返回到触发器,然后关闭标题中的活动标签。确认 `+` 停留在- 最短和最长标签的标题右边缘。 4) 关闭活动的中间和边缘项目+ 最短和最长标签的标题右边缘。缩小窗口(或安装足够多的插件)使启动器+ 工具行超出面板高度:New 标题保持固定,行列表内部滚动,底部各行仍可+ 通过滚轮、滚动条和 Tab 焦点访问(#2026)。 4) 关闭活动的中间和边缘项目并验证邻居选择;关闭最后一个标签后面板仍显示 New。 5) 使用唯一的会话窗格折叠控件和触发另一个神器。 6) 在会话 A 中,让面板保持打开状态,并显示多个选项卡和浏览器资源;切换到会话 B,创建不同的选项卡集,