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): isolate destination page scrolling
vastsab66d0aabeffa
diff --git a/apps/desktop/src/pages/PluginsPage.tsx b/apps/desktop/src/pages/PluginsPage.tsxindex dcc9d70fd..9822c19b0 100644--- a/apps/desktop/src/pages/PluginsPage.tsx+++ b/apps/desktop/src/pages/PluginsPage.tsx@@ -31,7 +31,7 @@ export function PluginsPage() {} = page;return (- <div className="thread-scroll">+ <div className="route-scroll"><div className="page-frame plugins-page"><div className="page-header plugins-page-header"><div className="plugins-title-block">diff --git a/apps/desktop/src/pages/PullRequestsPage.tsx b/apps/desktop/src/pages/PullRequestsPage.tsxindex ad96c7723..88c57d0d4 100644--- a/apps/desktop/src/pages/PullRequestsPage.tsx+++ b/apps/desktop/src/pages/PullRequestsPage.tsx@@ -54,7 +54,7 @@ export function PullRequestsPage() {}, [pulls]);return (- <div className="thread-scroll">+ <div className="route-scroll"><div className="page-frame"><div className="page-header"><div>diff --git a/apps/desktop/src/pages/ScheduledPage.tsx b/apps/desktop/src/pages/ScheduledPage.tsxindex 5cab936d6..a33c88933 100644--- a/apps/desktop/src/pages/ScheduledPage.tsx+++ b/apps/desktop/src/pages/ScheduledPage.tsx@@ -89,7 +89,7 @@ export function ScheduledPage() {error: "scheduled.statusError",} as const;return (- <div className="thread-scroll">+ <div className="route-scroll"><div className="page-frame"><div className="page-header"><div>diff --git a/apps/desktop/src/styles/chat-shell.css b/apps/desktop/src/styles/chat-shell.cssindex a3eb3777c..1ba00e006 100644--- a/apps/desktop/src/styles/chat-shell.css+++ b/apps/desktop/src/styles/chat-shell.css@@ -194,6 +194,16 @@flex-direction: column;}+/* Destination pages have ordinary document scrolling. Keep this separate from+ * `.thread-scroll`, whose Composer reserve, follow behavior, and occlusion mask+ * are specific to the chat transcript. */+.route-scroll {+ min-height: 0;+ flex: 1;+ overflow: auto;+ scrollbar-gutter: stable;+}+.thread-scroll {/* Promote to own compositing layer for smooth scrolling */will-change: scroll-position;diff --git a/apps/desktop/src/styles/overlays.css b/apps/desktop/src/styles/overlays.cssindex 7db4fc673..e3481802f 100644--- a/apps/desktop/src/styles/overlays.css+++ b/apps/desktop/src/styles/overlays.css@@ -739,10 +739,6 @@padding-top: calc(var(--ds-toolbar-height) + 8px);}-.route-page > .thread-scroll {- flex: 1;-}-.chat-error-layer {position: absolute;inset-inline: 0;diff --git a/apps/desktop/test/route-scroll.test.mjs b/apps/desktop/test/route-scroll.test.mjsnew file mode 100644index 000000000..3e3296893--- /dev/null+++ b/apps/desktop/test/route-scroll.test.mjs@@ -0,0 +1,30 @@+import assert from "node:assert/strict";+import { readFile } from "node:fs/promises";+import test from "node:test";+import { loadStyles } from "./helpers/styles.mjs";++const pagePaths = [+ "../src/pages/PluginsPage.tsx",+ "../src/pages/PullRequestsPage.tsx",+ "../src/pages/ScheduledPage.tsx",+];++const [stylesSource, ...pageSources] = await Promise.all([+ loadStyles(),+ ...pagePaths.map((path) => readFile(new URL(path, import.meta.url), "utf8")),+]);++test("destination pages use a route scroller instead of the chat transcript scroller", () => {+ for (const [index, source] of pageSources.entries()) {+ assert.match(source, /className="route-scroll"/, pagePaths[index]);+ assert.doesNotMatch(source, /thread-scroll/, pagePaths[index]);+ }++ const routeRule = stylesSource.match(/\.route-scroll\s*\{[\s\S]*?\n\}/)?.[0] ?? "";+ assert.match(routeRule, /overflow:\s*auto;/);+ assert.match(routeRule, /scrollbar-gutter:\s*stable;/);+ assert.doesNotMatch(routeRule, /mask-image/);++ const threadRule = stylesSource.match(/\.thread-scroll\s*\{[\s\S]*?\n\}/)?.[0] ?? "";+ assert.match(threadRule, /-webkit-mask-image:/);+});diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex c0761871e..9e52c8678 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -312,6 +312,9 @@ combined model × reasoning selection (§11).content at the top edge reserves the band: the transcript(`.thread-content`) and the destination-page frame (`.page-frame`, shared byPlugins, Scheduled, and Pull requests) both pad by `--ds-toolbar-height`.+ Destination pages scroll in a route-owned content container separate from the+ chat transcript scroller; Composer-specific occlusion and follow behavior must+ not fade or hide destination rows at the bottom of the page.Without that reservation a page header renders behind the band and its titlerow is clipped. The plugin detail sheet reserves it too (D296): the routesurface keeps a transform after its entry animation, so the sheet's fixeddiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 985322ea3..87f50bd4f 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -1762,6 +1762,9 @@ identify the platform validation still needed.the Installed / Marketplace segmented control and search field sit at theirintended offset instead of at the window's top edge. `.page-frame` reserves`--ds-toolbar-height` plus an 8px buffer on darwin, win32, and linux alike.+ Scrolling Plugins, Scheduled, and Pull requests uses a destination-owned+ scroller rather than the chat transcript scroller, so the bottom rows remain+ fully painted and reachable instead of inheriting the Composer occlusion mask.The plugin detail sheet stacks above the band (`z-index: 60`) and keeps itsown head at the top edge, with its close button opting out of the dragrectangle.@@ -1769,7 +1772,8 @@ identify the platform validation still needed.- **Acceptance**: C (UI), Quality- **Milestone**: M2- **Status**: Source-level regression covered- (`apps/desktop/test/plugins-page-style.test.mjs`); full UI scenario Draft+ (`apps/desktop/test/plugins-page-style.test.mjs`,+ `apps/desktop/test/route-scroll.test.mjs`); full UI scenario Draft#### E2E-088: Composer Agent/Plan/Goal chip updates the session