Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
feat(desktop): remove pull requests destination
vastsa6411f40e8807
diff --git a/apps/desktop/electron/main/bootstrap/window.ts b/apps/desktop/electron/main/bootstrap/window.tsindex 759e64f5c..48776a118 100644--- a/apps/desktop/electron/main/bootstrap/window.ts+++ b/apps/desktop/electron/main/bootstrap/window.ts@@ -1623,17 +1623,11 @@ export async function createWindow({await setSettingsTab("projects");await new Promise((r) => setTimeout(r, 800));await shot("pi-dark-project-archive");- await setPage("pulls");- await new Promise((r) => setTimeout(r, 800));- await shot("pi-dark-pulls");await setPage("settings");await setSettingsTab("general");await new Promise((r) => setTimeout(r, 800));await shot("pi-dark-settings");await setTheme("light");- await setPage("pulls");- await new Promise((r) => setTimeout(r, 600));- await shot("pi-pulls-live");await setSettingsTab("projects");await new Promise((r) => setTimeout(r, 500));await shot("pi-project-archive-live");diff --git a/apps/desktop/electron/main/ipc/pulls-ipc.ts b/apps/desktop/electron/main/ipc/pulls-ipc.tsdeleted file mode 100644index 5f4259638..000000000--- a/apps/desktop/electron/main/ipc/pulls-ipc.ts+++ /dev/null@@ -1,72 +0,0 @@-import { spawn } from "node:child_process";-import { IPC } from "@pi-desktop/shared";-import type { HostProcess } from "../host-process";-import type { IpcRegistrar } from "./types";--export type PullsIpcDependencies = {- registrar: IpcRegistrar;- getHost: () => HostProcess | null;-};--export function registerPullsIpc({- registrar,- getHost,-}: PullsIpcDependencies): void {- registrar.handle(IPC.invoke.pullsList, async () => {- const host = getHost();- if (!host) throw new Error("host unavailable");- const res = (await host.call("workspace.get")) as {- workspace: { path: string; name: string } | null;- };- const cwd = res.workspace?.path;- if (!cwd) {- return { pulls: [], error: "NO_WORKSPACE" as const };- }- const run = (cmd: string, args: string[]) =>- new Promise<{ code: number; stdout: string; stderr: string }>((resolve) => {- const child = spawn(cmd, args, { cwd, env: process.env });- let stdout = "";- let stderr = "";- child.stdout.on("data", (data) => (stdout += String(data)));- child.stderr.on("data", (data) => (stderr += String(data)));- child.on("close", (code) => resolve({ code: code ?? 1, stdout, stderr }));- child.on("error", (error) =>- resolve({ code: 1, stdout: "", stderr: String(error) }),- );- });- const result = await run("gh", [- "pr",- "list",- "--limit",- "30",- "--json",- "number,title,url,author,headRefName,baseRefName,updatedAt,isDraft",- ]);- if (result.code !== 0) {- return {- pulls: [],- error: result.stderr.trim() || result.stdout.trim() || "GH_FAILED",- };- }- try {- const pulls = JSON.parse(result.stdout || "[]") as Array<Record<string, unknown>>;- return {- pulls: pulls.map((pull) => ({- number: Number(pull.number),- title: String(pull.title || ""),- url: String(pull.url || ""),- author:- typeof pull.author === "object" && pull.author- ? String((pull.author as { login?: unknown }).login || "")- : undefined,- headRefName: pull.headRefName ? String(pull.headRefName) : undefined,- baseRefName: pull.baseRefName ? String(pull.baseRefName) : undefined,- updatedAt: pull.updatedAt ? String(pull.updatedAt) : undefined,- isDraft: Boolean(pull.isDraft),- })),- };- } catch (error) {- return { pulls: [], error: error instanceof Error ? error.message : String(error) };- }- });-}diff --git a/apps/desktop/electron/main/ipc/register.ts b/apps/desktop/electron/main/ipc/register.tsindex 3aa90c810..25e96585e 100644--- a/apps/desktop/electron/main/ipc/register.ts+++ b/apps/desktop/electron/main/ipc/register.ts@@ -18,7 +18,6 @@ import { registerNotificationIpc } from "./notification-ipc";import { registerPluginIpc } from "./plugin-ipc";import { registerPluginUiIpc } from "./plugin-ui-ipc";import { registerProviderIpc } from "./provider-ipc";-import { registerPullsIpc } from "./pulls-ipc";import { registerScheduledIpc } from "./scheduled-ipc";import { registerSessionIpc } from "./session-ipc";import { registerSettingsIpc } from "./settings-ipc";@@ -310,7 +309,6 @@ export function registerIpcHandlers(dependencies: RegisterIpcDependencies) {markMenuRendererReady,executeNativeMenuAction,});- registerPullsIpc({ registrar, getHost });registerScheduledIpc({registrar,getHost,diff --git a/apps/desktop/electron/main/mcp-control.ts b/apps/desktop/electron/main/mcp-control.tsindex 804b49246..ed78970f2 100644--- a/apps/desktop/electron/main/mcp-control.ts+++ b/apps/desktop/electron/main/mcp-control.ts@@ -241,7 +241,6 @@ const CONTROL_OPERATION_SPECS: OperationSpec[] = [spec("fsIndex", "fs/index", "Index files in the active workspace.", "read", ["input"]),spec("composerCommands", "composer/commands", "List composer commands and skills.", "read", []),spec("closeBehaviorGet", "window/closeBehavior/get", "Read close behavior.", "read", []),- spec("pullsList", "pulls/list", "List pull requests for the active workspace.", "read", []),spec("scheduledList", "scheduled/list", "List scheduled tasks.", "read", []),spec("toolResolvePermission", "tool/resolvePermission", "Resolve a pending tool permission request.", "dangerous", ["resolution"]),spec("askToolResolve", "agent/askTool/resolve", "Answer an Agent question.", "dangerous", ["resolution"]),diff --git a/apps/desktop/src/capture/capture-rig.ts b/apps/desktop/src/capture/capture-rig.tsindex 9e4b2a926..89d78ba5e 100644--- a/apps/desktop/src/capture/capture-rig.ts+++ b/apps/desktop/src/capture/capture-rig.ts@@ -1034,7 +1034,6 @@ export function installCaptureRig(): CaptureRig {try {await useAppStore.getState().refreshSessions();const englishNoise = new Set([- "Review open pull requests","Tighten composer elevation","Dark theme night plate","Sidebar recents density",diff --git a/apps/desktop/src/components/SearchDialog.tsx b/apps/desktop/src/components/SearchDialog.tsxindex 0e41d6fdc..217f93c0c 100644--- a/apps/desktop/src/components/SearchDialog.tsx+++ b/apps/desktop/src/components/SearchDialog.tsx@@ -14,7 +14,6 @@ import {IconAt,IconClock,IconNewSession,- IconPullRequest,IconSearch,IconSettings,IconSliders,@@ -22,7 +21,6 @@ import {/** Navigable pages surfaced by the global search alongside sessions. */const PAGE_ENTRIES = [- { page: "pulls", labelKey: "pulls.title", icon: IconPullRequest },{ page: "scheduled", labelKey: "scheduled.title", icon: IconClock },{ page: "plugins", labelKey: "nav.plugins", icon: IconAt },] as const;diff --git a/apps/desktop/src/features/app/AppShell.tsx b/apps/desktop/src/features/app/AppShell.tsxindex bb1f32c66..e6a693a2d 100644--- a/apps/desktop/src/features/app/AppShell.tsx+++ b/apps/desktop/src/features/app/AppShell.tsx@@ -27,11 +27,6 @@ const SettingsPage = lazy(() =>default: module.SettingsPage,})),);-const PullRequestsPage = lazy(() =>- import("../../pages/PullRequestsPage").then((module) => ({- default: module.PullRequestsPage,- })),-);const ScheduledPage = lazy(() =>import("../../pages/ScheduledPage").then((module) => ({default: module.ScheduledPage,@@ -244,11 +239,7 @@ export function AppShell() {)}<Suspense fallback={<RoutePending />}>- {page === "pulls" ? (- <div className="route-surface route-page">- <PullRequestsPage />- </div>- ) : page === "scheduled" ? (+ {page === "scheduled" ? (<div className="route-surface route-page"><ScheduledPage /></div>diff --git a/apps/desktop/src/lib/api.ts b/apps/desktop/src/lib/api.tsindex 2c30bb6a9..aa6e3be5f 100644--- a/apps/desktop/src/lib/api.ts+++ b/apps/desktop/src/lib/api.ts@@ -71,7 +71,6 @@ import type {ProjectMemory,ProjectMemoryEntry,ProjectWorkspace,- PullRequestSummary,ScheduledTask,ProviderCreateInput,ProviderPublic,@@ -858,8 +857,6 @@ export const api = {),setProject: (path: string) =>invoke<{ workspace: ProjectWorkspace | null }>(IPC.invoke.projectSet, path),- listPullRequests: () =>- invoke<{ pulls: PullRequestSummary[]; error?: string }>(IPC.invoke.pullsList),listScheduled: () =>invoke<{ tasks: ScheduledTask[] }>(IPC.invoke.scheduledList),createScheduled: (input: {diff --git a/apps/desktop/src/pages/PullRequestsPage.tsx b/apps/desktop/src/pages/PullRequestsPage.tsxdeleted file mode 100644index dfcb4f4f3..000000000--- a/apps/desktop/src/pages/PullRequestsPage.tsx+++ /dev/null@@ -1,212 +0,0 @@-import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { useTranslation } from "react-i18next";-import type { PullRequestSummary } from "@pi-desktop/shared";-import { useAppStore } from "../stores/app-store";-import { api } from "../lib/api";-import { Badge, Button, TooltipButton, Panel } from "../components/ui";-import { IconExternal, IconPullRequest } from "../components/icons";--type Filter = "open" | "draft" | "all";--export function PullRequestsPage() {- const { t } = useTranslation();- const workspace = useAppStore((s) => s.workspace);- const workspacePath = workspace?.path ?? null;- const openProject = useAppStore((s) => s.openProject);- const newSession = useAppStore((s) => s.newSession);- const setPage = useAppStore((s) => s.setPage);- const sendPrompt = useAppStore((s) => s.sendPrompt);- const [pulls, setPulls] = useState<PullRequestSummary[]>([]);- const [error, setError] = useState<string | null>(null);- const [loading, setLoading] = useState(false);- const [loadedWorkspacePath, setLoadedWorkspacePath] = useState<string | null>(null);- const [filter, setFilter] = useState<Filter>("open");- const requestSequence = useRef(0);-- const refresh = useCallback(async () => {- const request = ++requestSequence.current;- setLoading(true);- try {- const res = await api.listPullRequests();- if (request !== requestSequence.current) return;- setPulls(res.pulls || []);- setError(res.error || null);- setLoadedWorkspacePath(workspacePath);- } catch (e) {- if (request !== requestSequence.current) return;- setPulls([]);- setError(e instanceof Error ? e.message : String(e));- setLoadedWorkspacePath(workspacePath);- } finally {- if (request === requestSequence.current) setLoading(false);- }- }, [workspacePath]);-- useEffect(() => {- void refresh();- return () => {- requestSequence.current += 1;- };- }, [refresh]);-- const workspaceDataCurrent = loadedWorkspacePath === workspacePath;- const visiblePulls = workspaceDataCurrent ? pulls : [];- const visibleError = workspaceDataCurrent ? error : null;- const pageLoading = Boolean(workspacePath) && (loading || !workspaceDataCurrent);-- const filtered = useMemo(() => {- if (filter === "all") return visiblePulls;- if (filter === "draft") return visiblePulls.filter((p) => p.isDraft);- return visiblePulls.filter((p) => !p.isDraft);- }, [visiblePulls, filter]);-- const counts = useMemo(() => {- const draft = visiblePulls.filter((p) => p.isDraft).length;- return {- open: visiblePulls.length - draft,- draft,- all: visiblePulls.length,- };- }, [visiblePulls]);-- return (- <div className="route-scroll">- <div className="page-frame">- <div className="page-header">- <div>- <h1 className="page-title">{t("pulls.title")}</h1>- </div>- <div className="flex gap-2">- <Button variant="secondary" disabled={loading} onClick={() => void refresh()}>- {loading ? "…" : t("pulls.refresh")}- </Button>- {workspace?.path ? (- <Button- variant="primary"- onClick={async () => {- await newSession();- setPage("chat");- await sendPrompt(- "List open pull requests and current branch status for this repository. Summarize what needs review.",- );- }}- >- {t("pulls.review")}- </Button>- ) : null}- </div>- </div>-- {workspace?.path ? (- <div className="dest-toolbar">- <div className="dest-filters" role="tablist" aria-label={t("pulls.filters")}>- {(- [- ["open", t("pulls.filterOpen"), counts.open],- ["draft", t("pulls.filterDraft"), counts.draft],- ["all", t("pulls.filterAll"), counts.all],- ] as const- ).map(([id, label, count]) => (- <button- key={id}- type="button"- role="tab"- aria-selected={filter === id}- className={`dest-filter ${filter === id ? "active" : ""}`}- onClick={() => setFilter(id)}- >- {label}- <span className="ml-1 text-text-muted">{count}</span>- </button>- ))}- </div>- </div>- ) : null}-- {!workspace?.path ? (- <Panel className="page-card page-empty">- <div className="page-empty-icon">- <IconPullRequest size={20} />- </div>- <div className="text-base-plus font-medium">{t("pulls.emptyTitle")}</div>- <Button className="mt-5" variant="primary" onClick={() => void openProject()}>- {t("project.open")}- </Button>- </Panel>- ) : pageLoading && visiblePulls.length === 0 ? (- <div className="page-empty page-card" role="status" aria-busy="true">- <span className="route-pending-indicator" aria-hidden />- <span className="mt-3 text-md text-text-secondary">- {t("app.loadingView")}- </span>- </div>- ) : filtered.length === 0 ? (- <Panel className="page-card page-empty">- <div className="page-empty-icon">- <IconPullRequest size={20} />- </div>- <div className="text-base-plus font-medium">{t("pulls.emptyTitle")}</div>- {visibleError && visibleError !== "NO_WORKSPACE" ? (- <div className="mt-2 max-w-md text-md text-text-secondary">{visibleError}</div>- ) : null}- </Panel>- ) : (- <div className="dest-list">- {filtered.map((pr) => (- <div key={pr.number} className="dest-row">- <div className="dest-row-icon">- <IconPullRequest size={16} />- </div>- <div className="dest-row-body">- <div className="dest-row-title">- <span className="font-mono text-sm font-normal text-text-muted">- #{pr.number}- </span>- <span className="min-w-0 truncate">{pr.title}</span>- {pr.isDraft ? <Badge tone="warning">{t("pulls.draft")}</Badge> : (- <Badge tone="success">{t("pulls.open")}</Badge>- )}- </div>- <div className="dest-row-meta">- {[- pr.author,- pr.headRefName && pr.baseRefName- ? `${pr.headRefName} → ${pr.baseRefName}`- : null,- ]- .filter(Boolean)- .join(" · ")}- </div>- </div>- <div className="dest-row-actions">- <TooltipButton- type="button"- className="icon-btn icon-btn-square"- tooltip={t("pulls.open")}- ariaLabel={t("pulls.open")}- onClick={() => void api.browserOpenExternal(pr.url)}- >- <IconExternal size={15} />- </TooltipButton>- <Button- size="sm"- variant="secondary"- onClick={async () => {- await newSession();- setPage("chat");- await sendPrompt(- `Review pull request #${pr.number}${pr.title ? ` (${pr.title})` : ""}. Summarize changes, risks, and suggested next steps.`,- );- }}- >- {t("pulls.review")}- </Button>- </div>- </div>- ))}- </div>- )}- </div>- </div>- );-}diff --git a/apps/desktop/src/stores/app-state.ts b/apps/desktop/src/stores/app-state.tsindex bc238da1c..78498ea7a 100644--- a/apps/desktop/src/stores/app-state.ts+++ b/apps/desktop/src/stores/app-state.ts@@ -172,7 +172,7 @@ export type AppState = {toasts: ToastItem[];notifications: AppNotification[];unreadNotificationCount: number;- page: "chat" | "pulls" | "scheduled" | "plugins" | "settings";+ page: "chat" | "scheduled" | "plugins" | "settings";/** Tab ids come from the shared settings index. */settingsTab: SettingsTabId;/** Pending row anchor (i18n key) to flash after landing on a settings tab. */diff --git a/apps/desktop/test/chrome-control-geometry.test.mjs b/apps/desktop/test/chrome-control-geometry.test.mjsindex 864112408..73d745401 100644--- a/apps/desktop/test/chrome-control-geometry.test.mjs+++ b/apps/desktop/test/chrome-control-geometry.test.mjs@@ -26,7 +26,6 @@ const ICON_BUTTON_FILES = ["../src/components/Sidebar.tsx","../src/features/chat/composer/ComposerToolbar.tsx","../src/components/workpanel/FilesTab.tsx",- "../src/pages/PullRequestsPage.tsx","../src/components/settings/ModelConfigPage.tsx",];diff --git a/apps/desktop/test/icon-tooltip.test.mjs b/apps/desktop/test/icon-tooltip.test.mjsindex a8228fcff..b6ca5f56d 100644--- a/apps/desktop/test/icon-tooltip.test.mjs+++ b/apps/desktop/test/icon-tooltip.test.mjs@@ -39,7 +39,6 @@ test("icon-only actions expose localized hover tooltips", () => {["components/Sidebar.tsx", "nav.sessionActions"],["components/Sidebar.tsx", "project.openActions"],["components/Sidebar.tsx", "nav.sortSessions"],- ["pages/PullRequestsPage.tsx", "pulls.open"],["components/workpanel/FilesTab.tsx", "panel.files.back"],["components/workpanel/FilesTab.tsx", "panel.files.reveal"],]) {diff --git a/apps/desktop/test/mcp-control.test.mjs b/apps/desktop/test/mcp-control.test.mjsindex 1a3c751e2..e053d535d 100644--- a/apps/desktop/test/mcp-control.test.mjs+++ b/apps/desktop/test/mcp-control.test.mjs@@ -357,6 +357,7 @@ test("local MCP control server authenticates, discovers, and invokes desktop opeassert.equal(describedIds.includes("providers/create"), false);assert.equal(describedIds.includes("settings/set"), false);assert.equal(describedIds.some((id) => id.startsWith("secrets/")), false);+ assert.equal(describedIds.includes("pulls/list"), false);const configure = described.body.result.structuredContent.find((entry) => entry.id === "session/configure");assert.equal(configure.risk, "dangerous");assert.deepEqual(configure.argumentShape, ["id", "config"]);diff --git a/apps/desktop/test/project-delete.test.mjs b/apps/desktop/test/project-delete.test.mjsindex b2b317fa2..23f5b2b0d 100644--- a/apps/desktop/test/project-delete.test.mjs+++ b/apps/desktop/test/project-delete.test.mjs@@ -48,7 +48,7 @@ function projectBlock(source) {const start = source.search(/^ "?project"?: \{/m);assert.ok(start >= 0, "project block starts");const rest = source.slice(start + 1);- const end = rest.search(/^ "?pulls"?: \{/m);+ const end = rest.search(/^ "?scheduled"?: \{/m);assert.ok(end > 0, "project block ends");return rest.slice(0, end);}diff --git a/apps/desktop/test/pull-requests-loading-state.test.mjs b/apps/desktop/test/pull-requests-loading-state.test.mjsdeleted file mode 100644index 428eea104..000000000--- a/apps/desktop/test/pull-requests-loading-state.test.mjs+++ /dev/null@@ -1,28 +0,0 @@-import assert from "node:assert/strict";-import { readFile } from "node:fs/promises";-import test from "node:test";--const page = await readFile(- new URL("../src/pages/PullRequestsPage.tsx", import.meta.url),- "utf8",-);--test("pull request loading is distinct from the empty result state", () => {- const noWorkspaceBranch = page.indexOf("!workspace?.path ? (");- const loadingBranch = page.indexOf("pageLoading && visiblePulls.length === 0 ? (");- const emptyBranch = page.indexOf("filtered.length === 0 ? (");-- assert.ok(noWorkspaceBranch >= 0);- assert.ok(loadingBranch > noWorkspaceBranch);- assert.ok(emptyBranch > loadingBranch);- assert.match(page.slice(loadingBranch, emptyBranch), /role="status"/);- assert.match(page.slice(loadingBranch, emptyBranch), /aria-busy="true"/);- assert.match(page.slice(loadingBranch, emptyBranch), /t\("app\.loadingView"\)/);-});--test("pull request refresh ignores results from an old request or workspace", () => {- assert.match(page, /const request = \+\+requestSequence\.current/);- assert.match(page, /if \(request !== requestSequence\.current\) return;/);- assert.match(page, /const workspaceDataCurrent = loadedWorkspacePath === workspacePath/);- assert.match(page, /return \(\) => \{\s*requestSequence\.current \+= 1;/);-});diff --git a/apps/desktop/test/renderer-review-fixes.test.mjs b/apps/desktop/test/renderer-review-fixes.test.mjsindex 62d96daa4..e399627ba 100644--- a/apps/desktop/test/renderer-review-fixes.test.mjs+++ b/apps/desktop/test/renderer-review-fixes.test.mjs@@ -12,7 +12,6 @@ const rendererApi = read("../src/capture/renderer-api.ts");const captureRig = read("../src/capture/capture-rig.ts");const main = read("../src/main.tsx");const windowControls = read("../src/components/WindowControls.tsx");-const pulls = read("../src/pages/PullRequestsPage.tsx");const messages = read("../src/styles/messages.css");test("screenshot fixtures stay out of the production App bundle", () => {@@ -57,10 +56,6 @@ test("window controls draw through the icon wrappers", () => {assert.match(windowControls, /import \{ IconClose, IconCopy, IconMinus, IconSquare \} from "\.\/icons";/);});-test("pull request links open through the shared external-open path", () => {- assert.doesNotMatch(pulls, /window\.open\(/);- assert.match(pulls, /api\.browserOpenExternal\(pr\.url\)/);-});test("attachment thumbnails are tone tiles, not stroked boxes (D297)", () => {const block = messages.slice(diff --git a/apps/desktop/test/route-scroll.test.mjs b/apps/desktop/test/route-scroll.test.mjsindex 3e3296893..446a3053a 100644--- a/apps/desktop/test/route-scroll.test.mjs+++ b/apps/desktop/test/route-scroll.test.mjs@@ -5,7 +5,6 @@ import { loadStyles } from "./helpers/styles.mjs";const pagePaths = ["../src/pages/PluginsPage.tsx",- "../src/pages/PullRequestsPage.tsx","../src/pages/ScheduledPage.tsx",];diff --git a/apps/desktop/test/sidebar-navigation.test.mjs b/apps/desktop/test/sidebar-navigation.test.mjsindex cdbbad8ed..e8c987cf0 100644--- a/apps/desktop/test/sidebar-navigation.test.mjs+++ b/apps/desktop/test/sidebar-navigation.test.mjs@@ -30,9 +30,8 @@ test("home sidebar exposes only the supported destination entries", () => {assert.match(sidebarSource, /data-nav="home"/);assert.match(sidebarSource, /data-nav="plugins"/);assert.doesNotMatch(sidebarSource, /data-nav="projects"/);- assert.doesNotMatch(sidebarSource, /data-nav="pulls"/);assert.match(sidebarSource, /data-nav="scheduled"/);- assert.doesNotMatch(sidebarSource, /t\("nav\.(?:pullRequests|scheduled)"\)/);+ assert.doesNotMatch(sidebarSource, /t\("nav\.scheduled"\)/);});test("sidebar brand returns to the chat home", () => {diff --git a/apps/desktop/test/two-step-delete.test.mjs b/apps/desktop/test/two-step-delete.test.mjsindex b009965f5..57e8a3ce8 100644--- a/apps/desktop/test/two-step-delete.test.mjs+++ b/apps/desktop/test/two-step-delete.test.mjs@@ -133,7 +133,7 @@ test("both delete labels ship in every catalog and read the same", () => {const source = catalogs.get(id);const expected = CONFIRM_LABELS[id];assert.equal(blockValue(catalogBlock(source, "nav", "sessionCollaboration"), "deleteTaskConfirm"), expected, id);- assert.equal(blockValue(catalogBlock(source, "project", "pulls"), "deleteMenuConfirm"), expected, id);+ assert.equal(blockValue(catalogBlock(source, "project", "scheduled"), "deleteMenuConfirm"), expected, id);if (id !== "en") {assert.notEqual(expected, CONFIRM_LABELS.en, `${id} is translated`);}diff --git a/apps/desktop/test/utility-navigation.test.mjs b/apps/desktop/test/utility-navigation.test.mjsindex 81e23cd8b..854d33d8e 100644--- a/apps/desktop/test/utility-navigation.test.mjs+++ b/apps/desktop/test/utility-navigation.test.mjs@@ -46,7 +46,7 @@ function harness(page = "chat") {set: (patch) => { state = { ...state, ...patch }; } };}-for (const page of ["chat", "pulls", "scheduled", "settings"]) {+for (const page of ["chat", "scheduled", "settings"]) {test(`Plugins footer goes back one history entry to ${page}`, () => {const h = harness(page);h.click();diff --git a/docs/adr/0308-remove-pull-requests-destination.md b/docs/adr/0308-remove-pull-requests-destination.mdnew file mode 100644index 000000000..8cb03e8b0--- /dev/null+++ b/docs/adr/0308-remove-pull-requests-destination.md@@ -0,0 +1,36 @@+# ADR 0308: Remove the Pull Requests Destination and Listing Tool++- Status: Accepted+- Date: 2026-09-27+- Decision owners: PI-Desktop core++## Context++PI-Desktop had a Pull requests destination that ran `gh pr list` in the active+workspace and exposed the same listing through the optional local MCP control+catalog as `pulls/list`. The UI depended on the GitHub CLI and authentication+available to the Electron process; listing failures could leave the page with+no usable PR data. The page's review action only started an Agent prompt and+did not provide a dedicated GitHub review or write workflow.++The destination and its listing method form one narrow feature. Removing only+the page would leave an undocumented, otherwise unused GitHub capability in+the local MCP surface.++## Decision++Remove the Pull requests route, its global-search entry and page copy, the+`gh`-backed IPC handler, the `pulls/list` MCP catalog entry, the shared PR+summary type, and their dedicated tests and screenshots. Keep the general MCP+control plane, GitHub references in development workflows, and generic plugin+view icons unchanged.++## Consequences++- Users can no longer open a PR destination or call `pulls/list` through+ PI-Desktop's MCP control catalog. Existing local clients must stop relying on+ that operation.+- The change requires no data migration: PR summaries were fetched on demand+ and were not persisted.+- This decision does not remove user-directed GitHub work through other+ configured Agent tools, a terminal, or a browser.diff --git a/docs/adr/README.md b/docs/adr/README.mdindex a43d3804f..c320e4e60 100644--- a/docs/adr/README.md+++ b/docs/adr/README.md@@ -337,6 +337,7 @@ Each ADR includes:| 0305 | [Keep scheduled-task execution settings task-owned](0305-scheduled-task-execution-settings.md) | Accepted for implementation (amends scheduled-desktop-automations) || 0306 | [Brazilian Portuguese (pt-BR) shell locale](0306-portuguese-brazil-shell-locale.md) | Accepted (amends ADR 0160 / 0183 / 0185) || 0307 | [Sync the API-key service catalog with pi-ai's built-in providers](0307-pi-ai-api-key-provider-sync.md) | Accepted (amends ADR 0012 / 0020 / 0116 / 0155) |+| 0308 | [Remove the Pull Requests destination and listing tool](0308-remove-pull-requests-destination.md) | Accepted || turn-process-and-thinking-display | [Turn process and thinking presentation](turn-process-and-thinking-display.md) | Accepted || provider-display-order | [Provider display order](provider-display-order.md) | Accepted || registry-header-variable-spelling | [Remote header variables accept the registry's `{name}` spelling](registry-header-variable-spelling.md) | Proposed |diff --git a/docs/guide/screenshots.md b/docs/guide/screenshots.mdindex bd2e76272..256bf41cc 100644--- a/docs/guide/screenshots.md+++ b/docs/guide/screenshots.md@@ -61,12 +61,7 @@ state a conversation starts in.## Destinations-Pull requests, the project archive, and scheduled tasks are full-page-destinations reached from the sidebar.----+The project archive and scheduled tasks are full-page destinations.diff --git a/docs/public/screenshots/app/en/dark-pulls.webp b/docs/public/screenshots/app/en/dark-pulls.webpdeleted file mode 100644index 595d9aa95..000000000Binary files a/docs/public/screenshots/app/en/dark-pulls.webp and /dev/null differdiff --git a/docs/public/screenshots/app/en/pulls-live.webp b/docs/public/screenshots/app/en/pulls-live.webpdeleted file mode 100644index 070db32cf..000000000Binary files a/docs/public/screenshots/app/en/pulls-live.webp and /dev/null differdiff --git a/docs/public/screenshots/app/zh/dark-pulls.webp b/docs/public/screenshots/app/zh/dark-pulls.webpdeleted file mode 100644index e91a21117..000000000Binary files a/docs/public/screenshots/app/zh/dark-pulls.webp and /dev/null differdiff --git a/docs/public/screenshots/app/zh/pulls-live.webp b/docs/public/screenshots/app/zh/pulls-live.webpdeleted file mode 100644index 702d55f4e..000000000Binary files a/docs/public/screenshots/app/zh/pulls-live.webp and /dev/null differdiff --git a/docs/spec/04-ux/01-ui-ia.md b/docs/spec/04-ux/01-ui-ia.mdindex a6266afac..4eb4e4bcb 100644--- a/docs/spec/04-ux/01-ui-ia.md+++ b/docs/spec/04-ux/01-ui-ia.md@@ -33,8 +33,8 @@ destination, chat as the home surface, tools and permissions inline.**Sessions** section with new-session and sort actions, retained open-projectgroups under a following **Projects** section with a persistent new-projectaction, and the WorkBuddy-inspired footer. The footer keeps compact Settings,- Extensions, Scheduled (clock), and notification icon actions; Pull requests- remains omitted from the home sidebar. Each retained project is a+ Extensions, Scheduled (clock), and notification icon actions. Each retained+ project is apath-keyed tab/group that can becollapsed independently. Project and conversation rows exposenon-destructive pin/archive actions, an independent conversation-branch@@ -242,15 +242,7 @@ destination, chat as the home surface, tools and permissions inline.session and never change the active session, page, project, or keyboardfocus.-### 3.3 Pull requests-Segmented Open/Draft/All filters with counts; rows carry icon plate, number,-title, status badge, branch meta, external link, and "Review with agent"-(creates a chat turn). Requires an active workspace and `gh`. While the current-workspace's list is loading, show a localized status instead of the empty-result-state. Keep current rows visible during an explicit refresh; when the workspace-changes, hide rows from the previous workspace and ignore stale request results.--### 3.4 Scheduled+### 3.3 ScheduledTasks and Run history views, with an explicit create/edit form, a cadence dropdown, time,next occurrence, saved project, per-task permission/model selection, pause/resume and delete confirmation. Hourlyschedules repeat at one-hour intervals without a time selector. Daily schedules@@ -303,7 +295,7 @@ Agent tools can change a Manual task to Hourly by supplying only its id andfields and paused state. Daily and Weekly still require a valid saved or suppliedschedule. Renaming an Hourly task does not restart its interval.-### 3.5 Extensions+### 3.4 ExtensionsThe Extensions destination is a focused plugin surface with a compact header andonly two tabs: **Installed** and **Marketplace**. Installed groups plugin rows@@ -316,8 +308,8 @@ marketplace source settings show the source selector without a redundantprovider explanation or active-source status line. MCP, Skills, and Subagentsare not tabs or sections of Extensions.-### 3.6 Settings (full-page takeover)-### 3.6 Settings (full-page takeover)+### 3.5 Settings (full-page takeover)+### 3.5 Settings (full-page takeover)Settings replaces the whole shell (D063): back-to-app + search + a groupedsettings rail with concise, parallel destination labels. The Agent groupcontains independent Skills, MCP, and Subagents destinations alongside@@ -336,7 +328,7 @@ and skips subscription logins. Project archive owns the durable D086 Projects inarchived records. Opening or switching a project retains a sidebar tab, selectsthat project as the active workspace, and returns to chat. Other retained tabsstay open. Extension management remains solely on the app shell's independent-Extensions destination described in §3.5. Settings > Agent has the following+Extensions destination described in §3.4. Settings > Agent has the followingshared capability contract:- Each capability destination starts with a quiet localized description and@@ -376,7 +368,7 @@ shared capability contract:## 5. Navigation model-- `page` state: `chat | pulls | scheduled | plugins | settings`; `chat` is the+- `page` state: `chat | scheduled | plugins | settings`; `chat` is theconversation-surface route, not an operating mode. The projectarchive is the `projects` settings tab rather than a standalone page.- Destination history is linear; `Cmd/Ctrl+[` and `Cmd/Ctrl+]` traverse it@@ -419,8 +411,8 @@ shared capability contract:- No provider configured → blocking guidance toward Settings before first run(`MODEL_NOT_CONFIGURED`).-- No workspace → home hero without project underline; Pull requests shows a- workspace-required empty state. The composer never renders a workspace rail.+- No workspace → home hero without project underline. The Composer never+ renders a workspace rail.- Background project session → the originating project row retains itsrunning/error indicator. Selected shell state can move independently whilethe session tool root remains bound to its durable project; its artifacts arediff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex 985e13b09..a850e10d8 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -130,7 +130,7 @@ Outer frame that positions Topbar, Sidebar, MainChat, and WorkPanel. Owns resizetrack; the destination pane is revealed only once it has committed. A warmdestination is revealed with no busy affordance at all. Nothing is dimmed and noskeleton-to-transcript animation is inserted (ADR 0137).-- Settings, Plugins, Pull requests, and Scheduled are route-level lazy modules.+- Settings, Plugins, and Scheduled are route-level lazy modules.Chat and shell chrome stay in the initial renderer bundle; first entry to asecondary destination shows a compact localized status indicator until itslocal chunk resolves.@@ -242,8 +242,8 @@ expanded it owns that control, so the top bar does not duplicate it. Thedoes not duplicate it. Keyboard shortcuts and the application menu remainavailable.)-The conversation top bar renders for the chat route only; Pull requests, Scheduled,-Plugins, and Settings keep the frameless drag band. It owns the task title and+The conversation top bar renders for the chat route only; Scheduled, Plugins,+and Settings keep the frameless drag band. It owns the task title andwindow actions only. Project scope remains in the title tooltip instead of addinganother visible label. The Composer owns the Agent/Plan/Goal control and thecombined model × reasoning selection (§11).@@ -302,8 +302,8 @@ combined model × reasoning selection (§11).lane reserve is derived from that same control size rather than from aliteral, 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.- With the sidebar collapsed, Plugins, Pull requests, and Scheduled render their- sidebar/New Task actions inside `.main-titlebar`, not the preview-only+ With the sidebar collapsed, Plugins and Scheduled render their sidebar/New Task+ actions inside `.main-titlebar`, not the preview-only`.window-chrome-row`. Both containers must share the same geometry, rest,hover, and disabled rules; route actions must not duplicate those declarations.- Band reservation is platform-independent (D269). The band is opaque and@@ -311,7 +311,7 @@ combined model × reasoning selection (§11).every platform, macOS included. Every route surface that starts its owncontent at the top edge reserves the band: the transcript(`.thread-content`) and the destination-page frame (`.page-frame`, shared by- Plugins, Scheduled, and Pull requests) both pad by `--ds-toolbar-height`.+ Plugins and Scheduled) both pad by `--ds-toolbar-height`.Destination pages scroll in a route-owned content container separate from thechat transcript scroller; Composer-specific occlusion and follow behavior mustnot fade or hide destination rows at the bottom of the page.@@ -360,7 +360,7 @@ not additional host workspaces.The sidebar body is reserved for Pinned, Sessions, and Projects; the footer exposes thePlugins and Scheduled destinations beside Settings. Scheduled uses a clockaction with a localized accessible name and active state. Projects is managed-through Settings → Project archive; Pull requests is not rendered in the sidebar.+through Settings → Project archive.Section-level create and sort controls stay visually quiet at rest and revealwhen the owning Sessions or Projects toolbar is hovered or keyboard-focused.diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 798ed8b8e..76cb40ee4 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -146,7 +146,7 @@to the persisted transcript, and automatic execution does not require arenderer prompt. Host tests additionally prove duplicate admission rejection,stale/missed occurrence handling, invalid input rejection and recovery.-- **Specs:** 04-ux/01-ui-ia §3.4; 03-runtime/04-data-storage §4.11;+- **Specs:** 04-ux/01-ui-ia §3.3; 03-runtime/04-data-storage §4.11;ADR scheduled-desktop-automations; ADR 0305.- **Acceptance:** Scheduled task execution and recoverable run history.- **Milestone:** Post-MVP desktop automations.@@ -1749,7 +1749,7 @@ identify the platform validation still needed.conversation area. 3) Confirm it shows the concise session/task title and theNew task / Search action buttons; confirm thesidebar toggle appears **only when the sidebar is collapsed** (when expanded,- the sidebar owns that control). 4) Switch to the Pull requests, Scheduled,+ the sidebar owns that control). 4) Switch to the Scheduled,Plugins, or Settings routes and inspect the same top region.- **Expected**: Every route-owned top region uses the same `--ds-toolbar-height`(46px), bg-primary surface, and bottom border; Windows/Linux reserve the@@ -1782,14 +1782,14 @@ identify the platform validation still needed.- **Steps**: 1) Open the Plugins route with the window at its default size.2) Inspect the top of the page: the "Plugins" title row, its primary action,and the overflow menu button. 3) Scroll the page to the top and confirm no- page content is hidden behind the 46px band. 4) Repeat on the Scheduled and- Pull requests routes. 5) Open a plugin's detail sheet and inspect its head.+ page content is hidden behind the 46px band. 4) Repeat on the Scheduled+ route. 5) Open a plugin's detail sheet and inspect its head.- **Expected**: The page header renders fully below the frameless drag band onmacOS as it already does on Windows/Linux: the title row is not clipped, andthe 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+ Scrolling Plugins and Scheduled use a destination-ownedscroller rather than the chat transcript scroller, so the bottom rows remainfully painted and reachable instead of inheriting the Composer occlusion mask.The plugin detail sheet mounts on the viewport overlay host, stays above the@@ -1802,34 +1802,6 @@ identify the platform validation still needed.(`apps/desktop/test/plugins-page-style.test.mjs`,`apps/desktop/test/route-scroll.test.mjs`); full UI scenario Draft-#### E2E-087b: Destination loading and Settings focus remain explicit--- **Preconditions**: Isolated Electron profile, two local workspace fixtures,- and a controlled preload test double that serves fixture pull requests and- can hold each request until released. No live GitHub access is used.-- **Steps**:- 1. Mount the production Settings page and verify focus moves to its search- control.- 2. Mount Pull requests for the first workspace and hold its list result.- Inspect the page while it is pending.- 3. Switch to the second workspace and release its result. Start an explicit- refresh, hold that response, and verify its current rows remain visible.- 4. Release the refresh response, then complete the first workspace request- last.-- **Expected**: Settings search owns focus on mount. Pull requests shows a- localized loading status rather than the empty-result state while the first- request is pending. Explicit refresh keeps current rows visible while its- response is pending. After switching workspaces, the second workspace's rows- and filter counts remain visible when the older request completes; no row- from the first workspace replaces them. The shell contract keeps the hidden- chat inert without applying `aria-hidden` to a focused descendant.-- **Specs linked**: `04-ux/01-ui-ia.md` (§3.3),- `04-ux/09-interaction-patterns.md` (§7.1)-- **Acceptance**: C (UI), Quality-- **Milestone**: M6+-- **Status**: Production component E2E and source-contract checks automated;- covered by `pnpm test:e2e:settings-scroll` and- `pnpm test:e2e:destination-loading`; full shell navigation scenario Draft#### E2E-088: Composer Agent/Plan/Goal chip updates the session@@ -3037,7 +3009,7 @@ identify the platform validation still needed.#### E2E-024X: Page copy stays concise in both locales-- **Preconditions**: App running with English and Simplified Chinese available; project archive, Scheduled, Pull requests, Extensions, and Agent capability destinations are reachable.+- **Preconditions**: App running with English and Simplified Chinese available; project archive, Scheduled, Extensions, and Agent capability destinations are reachable.- **Steps**: 1) Open each destination in English and inspect its header, toolbar, empty state, and primary action. 2) Switch to 简体中文 and repeat. 3) Trigger a permission, validation, destructive-action, or provider-error state.- **Expected**: Page headers do not repeat their title as explanatory subtitles; empty states use a concise title and action, with body text only when context or a required next step is necessary. Settings and capability pages omit prose that only explains obvious controls. Permission, security, validation, destructive-action, keyboard, scope, and error details remain visible in both locales.- **Specs linked**: `04-ux/01-ui-ia.md`, `04-ux/07-ui-design-system.md`@@ -7745,7 +7717,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.- **Specs linked**: `03-runtime/01-ipc-protocol.md` §12a–§12d,`03-runtime/02-agent-runtime.md` §5f,`03-runtime/13-model-catalog-and-selection.md` §2 (Subagent editor),- `04-ux/01-ui-ia.md` §3.5–§3.6,+ `04-ux/01-ui-ia.md` §3.4–§3.5,`04-ux/06-settings-ia.md` §2 (Agent capability destinations), §4.21–§4.25,`07-plugins/01-plugin-system.md` §12.2–§12.3,`08-meta/decisions-log.md` (D193, D194, D202, D257), ADR 0112, ADR 0126@@ -8353,7 +8325,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.- **Steps**: 1) Select the conversation, type an unsent draft, enter Pluginsfrom the footer, and click the same button again. 2) Reopen Plugins, type asearch in Installed, return and reopen. 3) In the navigation fixture, repeat- from `pulls`, `scheduled`, and Settings; test a history containing both+ from `scheduled` and Settings; test a history containing bothScheduled and Settings before Plugins. 4) Exercise Forward then the Pluginsbutton again. 5) Open Plugins with no previous history entry and click it.- **Expected**: The second click performs the existing Back action exactly once;@@ -8820,7 +8792,7 @@ This test plan spec is accepted when:### US-UI-03 Sidebar destinations- Expect the expanded home sidebar to show Sessions and Projects without- standalone Plugins, Pull requests, or Scheduled rows.+ standalone Plugins or Scheduled rows.- Click the plug-shaped Plugins icon in the sidebar footer, immediately to theright of Settings, and expect it to replace the main pane with a dedicatedpage.@@ -8835,7 +8807,7 @@ This test plan spec is accepted when:### US-UI-05 Locale chrome- On a zh-CN system locale, sidebar labels render in Chinese (项目 / 临时会话),- without 拉取请求 or 已安排 entries. The footer plug-shaped Plugins icon+ with no extra standalone destination rows. The footer plug-shaped Plugins iconexposes the localized accessible name 插件.- Empty-thread hero and supporting line are localized Chinese copy; projectname remains a dotted-underline action when a workspace is open.@@ -14011,7 +13983,7 @@ plugin-form fixtures in an isolated temporary directory at runtime.4. Close the work panel and confirm the sidebar returns; repeat aftermanually collapsing the sidebar.5. Repeat divider changes with `ArrowLeft`, `ArrowRight`, `Home`, and `End`.- 6. Navigate to the real Plugins, Pull requests, and Scheduled routes with the+ 6. Navigate to the real Plugins and Scheduled routes with thework panel closed, then collapse the sidebar. In light and dark themes,measure both titlebar actions and compare their rest/hover styling with theshared work-panel toggle. Reopen the sidebar, collapse it again, and use@@ -14051,7 +14023,7 @@ plugin-form fixtures in an isolated temporary directory at runtime.a pointer drag, one non-wrapping composer toolbar at that floor with themodel chip collapsed to its 32px icon, sidebaryield/restore, the 460px reopen target, the panel action group's shared- control gap, preview mode, and ordinary Plugins/Pull requests/Scheduled titlebar+ control gap, preview mode, and ordinary Plugins/Scheduled titlebarSource contracts in `chrome-control-geometry.test.mjs` also cover the shareddisabled state and panel controls' transparent seat; the panel surface stillneeds the eyes-on pass above. DOM/CDP checks establish renderer behavior, not@@ -15284,7 +15256,7 @@ the latest destination. These assertions measure work counts, not device FPS.one hour away. Prompt, paused state and saved configuration survive. Renamedoes not reset the interval. RPC tests also cover required Daily/Weekly timesand retention of an existing custom schedule.-- **Specs:** 04-ux/01-ui-ia §3.4.+- **Specs:** 04-ux/01-ui-ia §3.3.- **Acceptance:** C / F — task configuration and persistence.- **Milestone:** Maintenance.- **Status:** `node scripts/e2e-scheduled-hourly-update.mjs` exercises the real@@ -15300,7 +15272,7 @@ the latest destination. These assertions measure work counts, not device FPS.- **Expected:** Each result session and edited task retain the original binding,including no-project tasks. Legacy cadence-only tasks keep their previousfallback until explicitly configured (covered by host RPC tests).-- **Specs:** 04-ux/01-ui-ia §3.4.+- **Specs:** 04-ux/01-ui-ia §3.3.- **Acceptance:** Saved workspace binding across run, edit and restart.- **Milestone:** Maintenance.- **Status:** Automated by `node --experimental-strip-typesdiff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex f86bf1070..471521608 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -3392,7 +3392,7 @@ D193, and D194.mount refresh had been replacing it), the marketplace search and detailcalls are stubbed while seeded, and `pi-plugins-row-details` /`pi-plugins-sheet` scenes are added. No protocol, storage, or runtime- behavior changes. Refines the Installed-tab clause of D169 and §3.5 of the UI+ behavior changes. Refines the Installed-tab clause of D169 and §3.4 of the UIIA.## 2026-09-05 — Scrollbars show only on hover or while scrolling (D300)diff --git a/docs/zh-CN/adr/index.md b/docs/zh-CN/adr/index.mdindex 507d6dea7..36cc1befc 100644--- a/docs/zh-CN/adr/index.md+++ b/docs/zh-CN/adr/index.md@@ -304,6 +304,7 @@ ADR 记录那些不应被静默改变的架构选择。中文入口与英文索| 0296 | [已签名 macOS DMG 改为双图标安装](/adr/0296-macos-signed-dmg-two-icon-install) | 已接受(D457;修订 ADR 0232 / ADR 0204) || 0297 | [提供商托管联网搜索作为适配器能力](/adr/0297-provider-hosted-web-search-adapter-capability) | 已接受 || 0298 | [应用不再随包发布任何字体](/adr/0298-remove-bundled-fonts) | 已接受(D598;修订 ADR 0083 / D232) |+| 0308 | [移除拉取请求页面与列表工具](/adr/0308-remove-pull-requests-destination) | 已接受 || registry-header-variable-spelling | [Remote header variables accept the registry's `{name}` spelling](/adr/registry-header-variable-spelling) | Proposed |## 什么时候看 ADRdiff --git a/docs/zh-CN/guide/screenshots.md b/docs/zh-CN/guide/screenshots.mdindex edb69049b..fdb219660 100644--- a/docs/zh-CN/guide/screenshots.md+++ b/docs/zh-CN/guide/screenshots.md@@ -54,11 +54,7 @@ URL、浏览器预览或计划审批工件打开自己的选项卡时出现。## 目的地页-合并请求、项目归档和定时任务都是从侧边栏进入的整页目的地。----+项目归档和定时任务是整页目的地;项目归档从设置进入。diff --git a/docs/zh-CN/spec/04-ux/01-ui-ia.md b/docs/zh-CN/spec/04-ux/01-ui-ia.mdindex 326ed93d8..d0d7c8abb 100644--- a/docs/zh-CN/spec/04-ux/01-ui-ia.md+++ b/docs/zh-CN/spec/04-ux/01-ui-ia.md@@ -39,10 +39,8 @@**会话** 包含新会话和排序操作的部分,保留开放项目具有持久性新项目的以下 **Projects** 部分下的组动作,以及受 WorkBuddy 启发的页脚。页脚保持紧凑的设置,- 扩展、定时任务(时钟)和通知图标操作;拉取请求- 仍从主侧边栏中省略。每个保留的项目都是一个- 路径键控 tab/group 可以是- 独立倒塌。项目和对话行公开+ 扩展、定时任务(时钟)和通知图标操作。每个保留项目都是可独立折叠的+ 路径键控 tab/group。项目和对话行公开非破坏性 pin/archive 操作,独立的对话分支命令和可排序视图。未保留在侧边栏中的项目仍然存在可通过设置 → 项目存档发现。@@ -203,14 +201,7 @@会话并且永远不会更改活动会话、页面、项目或键盘焦点。-### 3. 3 拉取请求-带计数的分段 Open/Draft/All 过滤器;行带有图标板、数字、-标题、状态徽章、分支元、外部链接和“与代理一起审核”-(创建聊天回合)。需要活动工作区和 `gh`。当前工作区的列表加载时,显示本地化-状态而不是空结果;手动刷新时保留现有行。切换工作区后隐藏旧工作区的行,并忽略-过期请求结果。--### 3. 4 预定+### 3. 3 定时任务任务与运行记录两个视图,支持创建、编辑、暂停、启用和确认删除。表单可为每个任务单独选择项目、权限和模型。周期保留下拉选择,并与时分统一为自定义主题菜单。每小时按一小时间隔执行,不显示时间选择;保存、启用、启动或上次自动准入后重新计时。每天通过下拉框选择上午 09:00、下午 14:00、晚上 19:00、夜间 22:00;界面不提供时分编辑,AI 可设置具体时间,非预设值显示为自定义时间,其他字段的编辑不得覆盖它。每周通过独立下拉面板多选周一至周日,@@ -238,7 +229,7 @@ Agent tools can change a Manual task to Hourly by supplying only its id andfields and paused state. Daily and Weekly still require a valid saved or suppliedschedule. Renaming an Hourly task does not restart its interval.-### 3. 5 扩展+### 3. 4 扩展扩展目标是专注于插件的页面,使用紧凑标头并且只保留两个选项卡:**已安装**和**市场**。已安装页按需要注意/可用更新/活动/关闭分组,每组标签@@ -247,8 +238,8 @@ schedule. Renaming an Hourly task does not restart its interval.与间距区分,细线只保留给浮层(菜单、抽屉、对话框)。市场来源设置只显示来源选择器,不再显示重复的提供商说明或当前来源状态行。MCP、技能和子代理不再是扩展页的选项卡或区块。-### 3. 6 设置(全页接管)-### 3. 6 设置(全页接管)+### 3. 5 设置(全页接管)+### 3. 5 设置(全页接管)设置替换整个外壳(D063):返回应用程序、搜索和带有简洁平行标签的分组设置导航栏。智能体分组包含独立的技能、MCP 和子代理页面,并与说明、模型配置并列;选择它们会切换页面目的地,而不是在一个能力面板内切换选项卡。@@ -262,7 +253,7 @@ schedule. Renaming an Hourly task does not restart its interval.(搜索、添加、展开、固定、archive/restore、关闭和重新打开)并且始终包括存档记录。打开或切换项目会保留侧边栏选项卡,选择该项目作为活动工作区,然后返回聊天。其他保留的选项卡-保持开放。扩展管理仍然完全独立于应用程序外壳扩展目标(见 §3.5)。设置 > 智能体+保持开放。扩展管理仍然完全独立于应用程序外壳扩展目标(见 §3.4)。设置 > 智能体遵循以下共享能力契约:- 技能和 MCP 使用单列堆叠的全局/项目卡片区块。每个区块有安静的标题行:作用域@@ -292,9 +283,8 @@ schedule. Renaming an Hourly task does not restart its interval.## 5. 导航模型-- `page` 状态:`chat | pulls | scheduled | plugins | settings`; `chat` 是- 对话表面路线,而不是操作模式。项目- archive 是 `projects` 设置选项卡而不是独立页面。+- `page` 状态:`chat | scheduled | plugins | settings`;`chat` 是对话页面,不是操作模式。+ 项目归档位于 `projects` 设置页签,不是独立页面。- 目的地历史是线性的; `Cmd/Ctrl+[` 和 `Cmd/Ctrl+]` 遍历它,没有持久的 back/forward chrome。插件页激活时,页脚插件按钮复用一次后退(见 §2 Shell 区域),不新增独立的前进/后退控件。@@ -326,8 +316,7 @@ schedule. Renaming an Hourly task does not restart its interval.- 未配置提供商 → 首次运行前阻止设置指导(`MODEL_NOT_CONFIGURED`)。-- 无工作区 → 无项目下划线的主页英雄;拉取请求显示- 工作区所需的空状态。输入框从不渲染工作区轨道。+- 无工作区 → 主页不显示项目下划线。输入框从不渲染工作区轨道。- 后台项目会话 → 原始项目行保留其running/error 指标。选定的壳状态可以独立移动,同时会话工具根仍然与其持久项目绑定;它的文物是diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.mdindex 31764d0e9..02634d16f 100644--- a/docs/zh-CN/spec/04-ux/08-component-spec.md+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md@@ -129,7 +129,7 @@它自己的会话上,公开 `aria-busy`,并显示 2px 进度轨道;只有在目标面板已提交之后才会揭示它。热目标被揭示时完全没有忙碌指示。没有任何内容被调暗,也不会插入 skeleton-to-transcript 动画(ADR 0137)。-- 设置、插件、拉取请求和计划是路由级惰性模块。+- 设置、插件和计划是路由级惰性模块。聊天和 shell chrome 保留在初始渲染器包中;第一个条目次要目的地显示紧凑的本地状态指示器,直到其本地块解析。@@ -210,8 +210,8 @@ See [ADR tray-session-shortcuts](/adr/tray-session-shortcuts).chrome 搜索入口;展开的侧边栏标题不再重复该控件。键盘快捷键和应用菜单仍然可用。)-对话顶部栏仅针对聊天路线呈现;拉取请求、已计划、-插件和设置保留无框拖带。它仅拥有任务标题和窗口操作。+对话顶部栏仅针对聊天路线呈现;定时任务、插件和设置保留无框拖带。+它仅拥有任务标题和窗口操作。项目范围仍通过标题工具提示提供,而不是添加另一个可见标签。Composer 拥有 Agent/Plan/Goal 控件以及组合的模型 × 推理选择(§11)。@@ -237,7 +237,7 @@ Composer 拥有 Agent/Plan/Goal 控件以及组合的模型 × 推理选择(§元素,因此在所有平台(包括 macOS)上,可滚动的路由内容都会从它下方经过。所有从顶部边缘开始渲染自身内容的路由表面都必须为该带预留空间:记录区(`.thread-content`)和目的页面框构- (`.page-frame`,由插件、定时任务、合并请求三个页面共用)都按+ (`.page-frame`,由插件与定时任务页面共用)都按`--ds-toolbar-height` 填充。缺少这一保留时,页面标头会渲染到带的后面,标题行被遮挡。只有叠在带之上的表面(`z-index: 60` 的插件详情侧面板)可以跳过它。@@ -248,10 +248,9 @@ Composer 拥有 Agent/Plan/Goal 控件以及组合的模型 × 推理选择(§由图标本身承载,只有语义化的悬停淡色才会在其下着色。面板头部为动作组预留的车道宽度也由同一个控件尺寸推导,而不是写死的字面量;开关的打开状态只改变图形与墨色,这一族控件都不绘制填充或抬升的“开启”胶囊。- With the sidebar collapsed, Plugins, Pull requests, and Scheduled render their- sidebar/New Task actions inside `.main-titlebar`, not the preview-only- `.window-chrome-row`. Both containers must share the same geometry, rest,- hover, and disabled rules; route actions must not duplicate those declarations.+ 侧边栏折叠时,插件和定时任务的侧边栏/新任务操作会显示在+ `.main-titlebar` 中,而不是预览专用的 `.window-chrome-row`。两者必须共享+ 相同的几何尺寸、默认/悬停/禁用状态;路由操作不得重复定义。### 2.4 状态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 0822edfd7..c6122e90b 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@@ -703,8 +703,8 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备交谈区。 3) 确认其显示简洁的 session/task 标题和新任务/搜索/命令动作按钮;确认侧边栏切换**仅在侧边栏折叠时出现**(展开时,- 侧边栏拥有该控件)。 4)切换到Pull requests,Scheduled,- 插件或设置路由并检查同一顶部区域。+ 侧边栏拥有该控件)。 4)切换到 Scheduled、插件或设置路由,+ 并检查同一顶部区域。- **预期**:在聊天路径上,对话顶部栏仅显示标题和操作;它没有模型或 Agent|Plan|Goal 模式控制。左侧输入 Composer 芯片拥有活动会话的 Agent/Plan/Goal 开关,Composer 右侧组合芯片拥有模型和推理选择。的@@ -729,7 +729,7 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备- **先决条件**:macOS 构建;至少安装一个插件。- **步骤**:1) 在默认窗口尺寸下打开插件路由。 2) 检查页面顶部:“插件”标题行、主操作按钮和溢出菜单按钮。 3) 将页面滚到顶部,- 确认没有内容被 46px 带遮挡。 4) 在定时任务和合并请求路由上重复。+ 确认没有内容被 46px 带遮挡。 4) 在定时任务路由上重复。5) 打开某个插件的详情侧面板并检查其标头。- **预期**:页面标头在 macOS 上完整渲染在无框拖拽带下方,与Windows/Linux 一致:标题行不被裁切,已安装 / 插件市场分段控件和@@ -742,24 +742,6 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备- **状态**:已覆盖源级回归测试(`apps/desktop/test/plugins-page-style.test.mjs`);完整 UI 场景为草案-#### E2E-087b:目的页加载与设置焦点保持明确--- **先决条件**:隔离的 Electron 配置、两个本地工作区 fixture,以及可按需- 暂停列表响应的 preload 测试替身;不访问在线 GitHub。-- **步骤**:- 1. 挂载生产设置页面,确认焦点移到搜索框。- 2. 为第一个工作区挂载 Pull requests 并暂停列表响应,检查等待状态。- 3. 切换到第二个工作区并返回列表结果。发起手动刷新、暂停响应,确认现有行仍显示。- 4. 返回刷新响应,最后才完成第一个工作区的旧请求。-- **预期**:设置搜索框在挂载时获得焦点。Pull requests 在首个列表加载期间显示本地化- 状态而非空结果。手动刷新响应期间保留已有行。切换工作区后,旧请求完成不得替换- 第二个工作区的行或过滤计数。Shell 仍会将隐藏聊天设为 inert,但不会对包含焦点的- 后代应用 `aria-hidden`。-- **链接规格**:`04-ux/01-ui-ia.md`(§3.3)、`04-ux/09-interaction-patterns.md`(§7.1)-- **验收**:C(UI)、质量-- **里程碑**:M6+-- **状态**:生产组件 E2E 与源码契约检查已自动化,由- `pnpm test:e2e:settings-scroll` 和 `pnpm test:e2e:destination-loading` 覆盖;完整 Shell 导航场景仍为草稿#### E2E-088:Composer Agent/Plan/Goal 芯片更新会话@@ -5056,7 +5038,7 @@ eleven-tool-round desktop paths are verified by- **关联规范**:`03-runtime/01-ipc-protocol.md` §12a–§12d、`03-runtime/02-agent-runtime.md` §5f、`03-runtime/13-model-catalog-and-selection.md` §2(子智能体编辑器)、- `04-ux/01-ui-ia.md` §3.5–§3.6、+ `04-ux/01-ui-ia.md` §3.4–§3.5、`04-ux/06-settings-ia.md` §2(智能体能力页面)、§4.21–§4.25、`07-plugins/01-plugin-system.md` §12.2–§12.3、`08-meta/decisions-log.md`(D193、D194、D202、D257)、ADR 0112、ADR 0126@@ -5313,9 +5295,9 @@ eleven-tool-round desktop paths are verified by市场连接。- **步骤**:1) 选择会话,输入未发送草稿,从页脚进入插件页,再次点击同一按钮。2) 重开插件页,在已安装列表输入搜索文本,返回后再次打开。3) 在- 导航测试中分别从 `pulls`、`scheduled` 和设置进入;再测试插件前同时存在- 定时任务和设置的历史。4) 前进到插件页后再次点击插件按钮。5) 没有可后退- 历史时打开插件页并点击按钮。+ 导航测试中分别从定时任务和设置进入,并测试插件前同时存在+ 定时任务与设置的历史项。4) 前进到插件页后再次点击插件按钮。+ 5) 没有可后退历史时打开插件页并点击按钮。- **预期**:第二次点击执行一次现有后退操作,不追加返回条目,也不跳过设置。聊天历史条目复用现有会话选择和加载行为,返回后会话及未发送草稿仍可用。无法后退时打开聊天页。按下状态反映插件页是否激活。插件浏览标签、搜索@@ -5583,7 +5565,7 @@ eleven-tool-round desktop paths are verified by### US-UI-03 侧边栏目的地- 预计扩展的主页侧边栏将显示会话和项目,而无需-独立插件、拉取请求或计划行。+独立插件或计划行。- 单击侧栏页脚右侧的插件图标设置,并期望它用专用页面取代主窗格。- 打开设置→项目存档并使用它来打开、切换和关闭本地@@ -5597,7 +5579,7 @@ eleven-tool-round desktop paths are verified by### US-UI-05 区域设置 chrome- 在 zh-CN 系统语言环境中,侧边栏标签以中文呈现(项目/临时会话),- 没有拉取请求或已安排条目。页脚插件图标显示+ 不出现额外的独立目的地行;页脚插件图标显示本地化的可访问名称插件。- 空线英雄和辅助线均为汉化汉化副本;项目当工作区打开时,名称仍然是点下划线操作。@@ -7976,7 +7958,7 @@ runner 会在运行时的隔离临时目录中生成六个插件形态 fixture3. 在布局收起左栏后手动重开左栏。4. 关闭工作面板并确认左栏恢复;再在手动收起左栏后重复一次。5. 用 `ArrowLeft`、`ArrowRight`、`Home`、`End` 重复调整分隔线。- 6. Navigate to the real Plugins, Pull requests, and Scheduled routes with the+ 6. Navigate to the real Plugins and Scheduled routes with thework panel closed, then collapse the sidebar. In light and dark themes,measure both titlebar actions and compare their rest/hover styling with theshared work-panel toggle. Reopen the sidebar, collapse it again, and use@@ -8619,7 +8601,7 @@ the latest destination. These assertions measure work counts, not device FPS.- **预期:** 项目、权限和精确 provider/model 只保存在该任务,重新打开仍显示相同值并实际传到 sidecar,其他任务不受影响;项目、权限和模型控件保持嵌在“指令”框的 Composer 风格底栏中,窄窗口也不产生横向溢出;缺少新增字段的旧记录保持原默认行为。配置持久化并显示下次时间;暂停后不触发;手动与自动入口均调用真实Agent sidecar;历史记录链接到持久化会话;自动执行不依赖渲染器发送提示词。宿主测试补充验证重复准入、错过时段、无效输入和重启恢复。-- **规格:** 04-ux/01-ui-ia §3.4;03-runtime/04-data-storage §4.11;+- **规格:** 04-ux/01-ui-ia §3.3;03-runtime/04-data-storage §4.11;ADR scheduled-desktop-automations;ADR 0305。- **验收:** 定时执行与可恢复的运行历史。- **里程碑:** MVP 后的桌面自动化。@@ -8820,7 +8802,7 @@ the latest destination. These assertions measure work counts, not device FPS.one hour away. Prompt, paused state and saved configuration survive. Renamedoes not reset the interval. RPC tests also cover required Daily/Weekly timesand retention of an existing custom schedule.-- **Specs:** 04-ux/01-ui-ia §3.4.+- **Specs:** 04-ux/01-ui-ia §3.3.- **Acceptance:** C / F — task configuration and persistence.- **Milestone:** Maintenance.- **Status:** `node scripts/e2e-scheduled-hourly-update.mjs` exercises the real@@ -8836,7 +8818,7 @@ the latest destination. These assertions measure work counts, not device FPS.- **Expected:** Each result session and edited task retain the original binding,including no-project tasks. Legacy cadence-only tasks keep their previousfallback until explicitly configured (covered by host RPC tests).-- **Specs:** 04-ux/01-ui-ia §3.4.+- **Specs:** 04-ux/01-ui-ia §3.3.- **Acceptance:** Saved workspace binding across run, edit and restart.- **Milestone:** Maintenance.- **Status:** Automated by `node --experimental-strip-typesdiff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.mdindex 3d8914985..38c55ffb4 100644--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@ -2934,7 +2934,7 @@ D193 和 D194。- 截图装置:插件夹具在页面挂载后重新注入(挂载时的刷新曾把它覆盖掉),注入期间桩掉市场搜索与详情调用,并新增 `pi-plugins-row-details` /`pi-plugins-sheet` 场景。协议、存储与运行时行为不变。细化 D169 的已安装页- 条款及 UI IA §3.5。+ 条款及 UI IA §3.4。## 2026-09-05 —— 滚动条只在悬停或滚动时显示(D300)diff --git a/package.json b/package.jsonindex dfabf9fc8..b16052d71 100644--- a/package.json+++ b/package.json@@ -41,7 +41,6 @@"test:e2e:hosted-search": "node scripts/e2e-hosted-search.mjs","test:e2e:oauth-retry": "node --test apps/desktop/test/anthropic-oauth-retry.test.mjs","test:e2e:boot": "node scripts/e2e-electron-boot.mjs",- "test:e2e:destination-loading": "node scripts/e2e-destination-loading.mjs","test:e2e:settings-scroll": "node scripts/e2e-settings-scroll.mjs","test:e2e:config-sync": "node scripts/e2e-config-sync-multidevice.mjs","test:e2e:layout": "node scripts/e2e-three-column-layout.mjs",diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex 00a39b8c3..e3fe220a6 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -1659,18 +1659,6 @@ sklm: {"notFound": "Projekt nicht gefunden","noProjects": "Noch keine Projekte"},- "pulls": {- "title": "Pull-Anfragen",- "refresh": "Aktualisieren",- "emptyTitle": "Keine Pull-Anfragen",- "review": "Überprüfung mit Agent",- "filters": "Pull-Request-Filter",- "filterOpen": "Offen",- "filterDraft": "Entwurf",- "filterAll": "Alle",- "open": "Offen",- "draft": "Entwurf"- },"scheduled": {"description": "Wiederkehrende Agent-Aufgaben ausführen, solange PI-Desktop geöffnet ist.","edit": "Aufgabe bearbeiten",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex c11cfdf46..3a05faa79 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -1677,18 +1677,6 @@ sklm: {notFound: "Project not found",noProjects: "No projects yet",},- pulls: {- title: "Pull requests",- refresh: "Refresh",- emptyTitle: "No pull requests",- review: "Review with agent",- filters: "Pull request filters",- filterOpen: "Open",- filterDraft: "Draft",- filterAll: "All",- open: "Open",- draft: "Draft",- },scheduled: {description: "Run recurring agent tasks while PI-Desktop is open.",edit: "Edit task",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex c63e7b3f7..5f605dbd3 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -1659,18 +1659,6 @@ sklm: {"notFound": "Proyecto no encontrado","noProjects": "Aún no hay proyectos"},- "pulls": {- "title": "Solicitudes de extracción",- "refresh": "Actualizar",- "emptyTitle": "No hay solicitudes de extracción",- "review": "Revisar con el agente",- "filters": "Filtros de solicitud de extracción",- "filterOpen": "Abierto",- "filterDraft": "Borrador",- "filterAll": "Todos",- "open": "Abierto",- "draft": "Borrador"- },"scheduled": {"description": "Ejecuta tareas recurrentes mientras PI-Desktop está abierto.","edit": "Editar tarea",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex b445386ea..44183e11c 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -1659,18 +1659,6 @@ sklm: {"notFound": "Projet introuvable","noProjects": "Aucun projet pour l'instant"},- "pulls": {- "title": "Demandes d'extraction",- "refresh": "Actualiser",- "emptyTitle": "Aucune demande d'extraction",- "review": "Révision avec l'agent",- "filters": "Filtres de demande d'extraction",- "filterOpen": "Ouvrir",- "filterDraft": "Brouillon",- "filterAll": "Tous",- "open": "Ouvrir",- "draft": "Brouillon"- },"scheduled": {"description": "Exécutez des tâches récurrentes tant que PI-Desktop est ouvert.","edit": "Modifier la tâche",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex 827fd49a4..98871c2c9 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -1674,18 +1674,6 @@ sklm: {notFound: "프로젝트를 찾을 수 없습니다",noProjects: "프로젝트가 아직 없음",},- pulls: {- title: "풀 리퀘스트",- refresh: "새로 고침",- emptyTitle: "풀 리퀘스트 없음",- review: "에이전트로 검토",- filters: "풀 리퀘스트 필터",- filterOpen: "열기",- filterDraft: "초안",- filterAll: "모두",- open: "열기",- draft: "초안",- },scheduled: {description: "PI-Desktop이 열려 있는 동안 반복 에이전트 작업을 실행합니다.",edit: "작업 편집",diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.tsindex 91103e0fc..a16ada7cd 100644--- a/packages/i18n/src/locales/pt-BR/index.ts+++ b/packages/i18n/src/locales/pt-BR/index.ts@@ -1614,18 +1614,6 @@ export const ptBR = {notFound: "Projeto não encontrado",noProjects: "Nenhum projeto ainda"},- pulls: {- title: "Pull requests",- refresh: "Atualizar",- emptyTitle: "Nenhum pull request",- review: "Revisar com o agente",- filters: "Filtros de pull request",- filterOpen: "Abertos",- filterDraft: "Rascunho",- filterAll: "Todos",- open: "Aberto",- draft: "Rascunho",- },scheduled: {description: "Executa tarefas recorrentes do agente enquanto o PI-Desktop estiver aberto.",edit: "Editar tarefa",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex 214acfb62..c60d69284 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -1664,18 +1664,6 @@ sklm: {notFound: "Proje bulunamadı",noProjects: "Henüz proje yok",},- pulls: {- title: "Çekme istekleri",- refresh: "Yenile",- emptyTitle: "Çekme isteği yok",- review: "Ajanla incele",- filters: "Çekme isteği süzgeçleri",- filterOpen: "Açık",- filterDraft: "Taslak",- filterAll: "Tümü",- open: "Açık",- draft: "Taslak",- },scheduled: {description: "PI-Desktop açıkken yinelenen ajan görevlerini çalıştırın.",edit: "Görevi düzenle",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 105c91fdf..aca3fbdba 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -1645,18 +1645,6 @@ sklm: {notFound: "未找到项目",noProjects: "暂无项目",},- pulls: {- title: "拉取请求",- refresh: "刷新",- emptyTitle: "暂无拉取请求",- review: "让智能体审阅",- filters: "拉取请求筛选",- filterOpen: "打开",- filterDraft: "草稿",- filterAll: "全部",- open: "打开",- draft: "草稿",- },scheduled: {description: "应用运行时,按计划自动执行 Agent 任务。",edit: "编辑任务",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 2cffad9e1..956e79cea 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -1645,18 +1645,6 @@ sklm: {notFound: "找不到專案",noProjects: "暫無專案",},- pulls: {- title: "拉取請求",- refresh: "重新整理",- emptyTitle: "暫無拉取請求",- review: "讓智慧體審閱",- filters: "拉取請求篩選",- filterOpen: "開啟",- filterDraft: "草稿",- filterAll: "全部",- open: "開啟",- draft: "草稿",- },scheduled: {description: "應用程式執行時,按排程自動執行 Agent 任務。",edit: "編輯任務",diff --git a/packages/shared/src/protocol.ts b/packages/shared/src/protocol.tsindex 7313e9f1b..da1e81b73 100644--- a/packages/shared/src/protocol.ts+++ b/packages/shared/src/protocol.ts@@ -166,7 +166,6 @@ export const IPC = {projectSet: "pi-desktop/project/set",projectClear: "pi-desktop/project/clear",projectRemove: "pi-desktop/project/remove",- pullsList: "pi-desktop/pulls/list",scheduledList: "pi-desktop/scheduled/list",scheduledCreate: "pi-desktop/scheduled/create",scheduledUpdate: "pi-desktop/scheduled/update",diff --git a/packages/shared/src/types/workspace.ts b/packages/shared/src/types/workspace.tsindex e5055f132..fed9f342d 100644--- a/packages/shared/src/types/workspace.ts+++ b/packages/shared/src/types/workspace.ts@@ -63,17 +63,6 @@ export type ProjectGroupContext = {memory: ProjectMemory;};-export type PullRequestSummary = {- number: number;- title: string;- url: string;- author?: string;- headRefName?: string;- baseRefName?: string;- updatedAt?: string;- isDraft?: boolean;-};-/*** `authKind` for a provider row whose credential is a vendor-account OAuth* login rather than a pasted API key. Shared so main, the sidecar runtime anddiff --git a/scripts/README.md b/scripts/README.mdindex 999780655..aba50fadb 100644--- a/scripts/README.md+++ b/scripts/README.md@@ -53,7 +53,6 @@ they cover are specified in| `e2e-plan.mjs` | `pnpm test:e2e:plan` | Plan state, checkpoint artifact, and approval transitions || `e2e-plan-ui.mjs` | `pnpm test:e2e:plan-ui` | Plan approval through the rendered UI || `e2e-electron-boot.mjs` | `pnpm test:e2e:boot` | Electron boot probe |-| `e2e-destination-loading.mjs` | `pnpm test:e2e:destination-loading` | Production Pull requests component with held preload responses; checks pending, refresh, and stale-workspace loading states without live GitHub access || `e2e-provider-recovery.mjs` | `node scripts/e2e-provider-recovery.mjs` | Isolated desktop with a localhost fault-injection provider: socket failures, interrupted streams, Responses recovery, exhausted retries, Continue, and recovery across eleven real Read calls. Requires a built desktop/runtime and host binary (`PI_DESKTOP_HOST_BIN` when outside the checkout); retains screenshots and JSON under `.artifacts/issue-699/` || `e2e-settings-scroll.mjs` | `pnpm test:e2e:settings-scroll` | Production Settings component navigation, search anchoring, focus-on-mount, and scroll behavior || `e2e-transcript-render.mjs` | `pnpm test:e2e:transcript` | Production transcript render boundaries, runtime status geometry, and deterministic smooth-text cadence |diff --git a/scripts/e2e-destination-loading.mjs b/scripts/e2e-destination-loading.mjsdeleted file mode 100644index 8d8b3796b..000000000--- a/scripts/e2e-destination-loading.mjs+++ /dev/null@@ -1,97 +0,0 @@-#!/usr/bin/env node-/** Production Settings and Pull requests component lifecycle in isolated Electron. */-import assert from "node:assert/strict";-import { spawn } from "node:child_process";-import { createRequire } from "node:module";-import { cp, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";-import { tmpdir } from "node:os";-import { join } from "node:path";-import { repositoryRoot, resolveElectronBinary } from "./e2e/boot.mjs";--const root = repositoryRoot();-const { build } = createRequire(join(root, "packages/agent-runtime/package.json"))("esbuild");-const temp = await mkdtemp(join(tmpdir(), "pi-destination-loading-"));-try {- await build({- entryPoints: [join(root, "scripts/e2e/pull-requests-loading.jsx")],- outfile: join(temp, "renderer.js"),- bundle: true,- platform: "browser",- format: "esm",- jsx: "automatic",- define: { "process.env.NODE_ENV": '"production"' },- alias: {- "@pi-desktop/i18n": join(root, "packages/i18n/src/index.ts"),- react: join(root, "apps/desktop/node_modules/react"),- "react-dom": join(root, "apps/desktop/node_modules/react-dom"),- i18next: join(root, "apps/desktop/node_modules/i18next"),- "react-i18next": join(root, "apps/desktop/node_modules/react-i18next"),- },- nodePaths: [join(root, "apps/desktop/node_modules")],- });-- const renderer = join(root, "apps/desktop/out/renderer");- const appHtml = await readFile(join(renderer, "index.html"), "utf8");- const css = [...appHtml.matchAll(/href="([^" ]+\.css)"/g)].map((match) => match[1]);- assert(css.length, "Run pnpm build:js before this test");- await cp(join(renderer, "assets"), join(temp, "assets"), { recursive: true });- await writeFile(- join(temp, "index.html"),- `<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:">${css.map((path) => `<link rel="stylesheet" href="${path}">`).join("")}</head><body><div id="root"></div><script type="module" src="renderer.js"></script></body></html>`,- );- await writeFile(- join(temp, "main.cjs"),- `-const { app, BrowserWindow } = require("electron");-const path = require("node:path");-app.setPath("userData", path.join(__dirname, "profile"));-app.whenReady().then(async () => {- const window = new BrowserWindow({ show: false, width: 1180, height: 760,- webPreferences: { sandbox: true, contextIsolation: true, nodeIntegration: false, backgroundThrottling: false } });- window.webContents.on("console-message", (event) => console.error(event.message));- try {- await window.loadFile(path.join(__dirname, "index.html"));- const result = await window.webContents.executeJavaScript("window.pullRequestsLoadingProbe()");- console.log("DESTINATION_LOADING_PROBE " + JSON.stringify(result));- app.exit(0);- } catch (error) {- console.error("DESTINATION_LOADING_PROBE " + JSON.stringify({ ok: false, error: String(error) }));- app.exit(1);- }-});-`,- );-- const env = { ...process.env };- delete env.ELECTRON_RUN_AS_NODE;- const child = spawn(resolveElectronBinary(root).electronBinary, [join(temp, "main.cjs")], {- env,- stdio: ["ignore", "pipe", "pipe"],- });- let output = "";- for (const stream of [child.stdout, child.stderr]) {- stream.on("data", (chunk) => {- output += chunk;- });- }- const timer = setTimeout(() => child.kill("SIGKILL"), 45_000);- let code;- try {- code = await new Promise((resolve, reject) => {- child.once("error", reject);- child.once("close", resolve);- });- } finally {- clearTimeout(timer);- }- const line = output- .split(/\r?\n/)- .find((entry) => entry.startsWith("DESTINATION_LOADING_PROBE "));- assert(line, `renderer returned no probe result (exit=${code}): ${output.slice(-3000)}`);- const result = JSON.parse(line.slice("DESTINATION_LOADING_PROBE ".length));- console.log("DESTINATION_LOADING_PROBE " + JSON.stringify(result));- assert.equal(code, 0, output.slice(-6000));- assert.equal(result.ok, true);-} finally {- await rm(temp, { recursive: true, force: true });-}diff --git a/scripts/e2e-three-column-layout.mjs b/scripts/e2e-three-column-layout.mjsindex 438065402..c578ce3dd 100644--- a/scripts/e2e-three-column-layout.mjs+++ b/scripts/e2e-three-column-layout.mjs@@ -1225,7 +1225,7 @@ async function main() {await cdp.send("Input.dispatchMouseEvent", { type: "mouseMoved", x, y });await delay(220);};- for (const route of ["plugins", "pulls", "scheduled"]) {+ for (const route of ["plugins", "scheduled"]) {if ((await measure()).sidebarKind !== "sidebar") await clickSidebarToggle();await rig(`window.__PI_DESKTOP__.setPage(${JSON.stringify(route)})`);await waitFor(diff --git a/scripts/e2e/pull-requests-loading.jsx b/scripts/e2e/pull-requests-loading.jsxdeleted file mode 100644index 9da5d7494..000000000--- a/scripts/e2e/pull-requests-loading.jsx+++ /dev/null@@ -1,154 +0,0 @@-import { createRoot } from "react-dom/client";-import { flushSync } from "react-dom";-import { createInstance } from "i18next";-import { I18nextProvider } from "react-i18next";-import { catalogs, flattenCatalog } from "@pi-desktop/i18n";-import { IPC } from "@pi-desktop/shared";-import { PullRequestsPage } from "../../apps/desktop/src/pages/PullRequestsPage";-import { useAppStore } from "../../apps/desktop/src/stores/app-store";--const firstWorkspace = { path: "/fixtures/first", name: "First project" };-const secondWorkspace = { path: "/fixtures/second", name: "Second project" };-const requests = [];--window.piDesktop = {- platform: "darwin",- on: () => () => {},- async invoke(channel) {- if (channel !== IPC.invoke.pullsList) {- throw new Error(`Unexpected fixture IPC: ${channel}`);- }- const workspacePath = useAppStore.getState().workspace?.path;- return new Promise((resolve) => requests.push({ workspacePath, resolve }));- },-};--const i18n = createInstance();-await i18n.init({- lng: "en",- resources: { en: { translation: flattenCatalog(catalogs.en) } },- interpolation: { escapeValue: false },-});--useAppStore.setState({ workspace: firstWorkspace });-const container = document.createElement("div");-document.body.append(container);-const root = createRoot(container);-flushSync(() =>- root.render(- <I18nextProvider i18n={i18n}>- <PullRequestsPage />- </I18nextProvider>,- ),-);--const frame = () => new Promise(requestAnimationFrame);-async function settle() {- await frame();- await frame();-}-function assert(value, message) {- if (!value) throw new Error(message);-}-async function waitFor(predicate, message) {- for (let attempt = 0; attempt < 120; attempt += 1) {- if (predicate()) return;- await frame();- }- throw new Error(message);-}-function requestsFor(workspacePath) {- return requests.filter((request) => request.workspacePath === workspacePath);-}-function release(request, pulls) {- assert(request, "Expected a held pull request list call");- request.resolve({ ok: true, data: { pulls } });-}--window.pullRequestsLoadingProbe = async () => {- await waitFor(- () => requestsFor(firstWorkspace.path).length === 1,- "First workspace request was not issued",- );- const pending = container.querySelector('[role="status"][aria-busy="true"]');- assert(pending, "Pending list must show its accessible loading status");- assert(- !container.querySelector(".page-empty-icon"),- "Pending list must not look like an empty result",- );-- flushSync(() => useAppStore.setState({ workspace: secondWorkspace }));- await waitFor(- () => requestsFor(secondWorkspace.path).length === 1,- "Second workspace request was not issued",- );- const secondWorkspacePulls = [- {- number: 22,- title: "Second workspace open pull request",- url: "https://example.invalid/pull/22",- author: "fixture",- isDraft: false,- headRefName: "feature/open",- baseRefName: "main",- },- {- number: 23,- title: "Second workspace draft pull request",- url: "https://example.invalid/pull/23",- author: "fixture",- isDraft: true,- headRefName: "feature/draft",- baseRefName: "main",- },- ];- release(requestsFor(secondWorkspace.path)[0], secondWorkspacePulls);- await waitFor(- () => container.textContent?.includes("Second workspace open pull request"),- "Second workspace rows did not render",- );-- const refresh = container.querySelector(".page-header .flex button");- assert(refresh instanceof HTMLButtonElement, "Refresh button must be rendered");- flushSync(() => refresh.click());- await waitFor(- () => requestsFor(secondWorkspace.path).length === 2,- "Explicit refresh request was not issued",- );- assert(- container.textContent?.includes("Second workspace open pull request"),- "Explicit refresh must keep current rows visible",- );- release(requestsFor(secondWorkspace.path)[1], secondWorkspacePulls);- await waitFor(- () => !refresh.disabled,- "Explicit refresh did not finish",- );-- const allTab = [...container.querySelectorAll('[role="tab"]')].find((tab) =>- tab.textContent?.includes("All"),- );- assert(allTab?.textContent?.replace(/\s+/g, "").endsWith("2"), "Filter count must match current workspace rows");- flushSync(() => allTab.click());- release(requestsFor(firstWorkspace.path)[0], [- {- number: 11,- title: "Stale first workspace pull request",- url: "https://example.invalid/pull/11",- isDraft: false,- },- ]);- await settle();- assert(- container.textContent?.includes("Second workspace open pull request") &&- container.textContent.includes("Second workspace draft pull request"),- "Completing an older request must preserve second workspace rows",- );- assert(- !container.textContent?.includes("Stale first workspace pull request"),- "A stale request must not replace current workspace rows",- );-- root.unmount();- return { ok: true, requestCount: requests.length, workspaceRows: 2 };-};diff --git a/scripts/e2e/sidebar-row-states.mjs b/scripts/e2e/sidebar-row-states.mjsindex ab87bdd50..35f8d00e4 100644--- a/scripts/e2e/sidebar-row-states.mjs+++ b/scripts/e2e/sidebar-row-states.mjs@@ -196,7 +196,7 @@ export async function checkSidebarRowStates({ cdp, check, waitFor, seed }) {const chatShell = document.querySelector('.app-chat-shell');const sidebar = chatShell?.querySelector('.sidebar');return {- hidden: chatShell?.hidden === true && chatShell.getAttribute('aria-hidden') === 'true' && chatShell.inert,+ hidden: chatShell?.hidden === true && chatShell.inert,sidebarRetained: sidebar?.isConnected === true,};})()`);