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(settings): keep project archive on one column
vastsa5093b1f945b2
diff --git a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsxindex ef71d06b8..e77db71d6 100644--- a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx+++ b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx@@ -1,3 +1,4 @@+import { type ReactNode } from "react";import { useTranslation } from "react-i18next";import { cx } from "../../components/ui";import { IconFolder, IconStar } from "../../components/icons";@@ -41,6 +42,7 @@ export function ProjectArchiveIndex({openProjectPaths,locale,sessionCounts,+ detail,onSelect,onActivate,}: {@@ -50,6 +52,7 @@ export function ProjectArchiveIndex({openProjectPaths: readonly string[];locale?: string;sessionCounts: Map<string, number>;+ detail?: ReactNode;onSelect: (path: string) => void;onActivate: (path: string) => void;}) {@@ -96,6 +99,7 @@ export function ProjectArchiveIndex({className="projects-row"title={project.path}aria-label={t("project.selectProject", { name: project.name })}+ aria-expanded={selected}aria-current={selected ? "true" : undefined}onClick={() => onSelect(project.path)}onDoubleClick={() => onActivate(project.path)}@@ -128,6 +132,15 @@ export function ProjectArchiveIndex({{formatUpdated(project.openedAt, locale, t("project.updatedNever"))}</span></button>+ {selected && detail ? (+ <div+ className="projects-inspector"+ role="region"+ aria-label={project.name}+ >+ {detail}+ </div>+ ) : null}</div>);})}diff --git a/apps/desktop/src/pages/ProjectsPage.tsx b/apps/desktop/src/pages/ProjectsPage.tsxindex 5a58e065e..a7c55cc48 100644--- a/apps/desktop/src/pages/ProjectsPage.tsx+++ b/apps/desktop/src/pages/ProjectsPage.tsx@@ -16,12 +16,11 @@ import {IconPin,IconPlus,IconSearch,- IconStar,IconSparkles,IconTrash,IconX,} from "../components/icons";-import { loadRecentProjects, projectColor, type RecentProject } from "../lib/recent-projects";+import { loadRecentProjects, type RecentProject } from "../lib/recent-projects";import { collectSessionProjects } from "../lib/session-projects";import { normalizeProjectPath } from "../lib/sidebar-session-groups";import { ProjectInstructionsDialog } from "../components/ProjectInstructionsDialog";@@ -47,7 +46,7 @@ import {type ProjectIndexItem,type SortMode,} from "../lib/project-archive";-import { ProjectArchiveIndex, projectRowId } from "../features/projects/ProjectArchiveIndex";+import { ProjectArchiveIndex } from "../features/projects/ProjectArchiveIndex";export function ProjectsPage() {const { t, i18n } = useTranslation();@@ -332,10 +331,6 @@ export function ProjectsPage() {(path) => normalizeProjectPath(path) === normalizeProjectPath(project.path),);const selectedArchived = project?.archived === true;- const selectedColor = project- ? project.color || projectColor(project.path)- : undefined;-const onIndexKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {if (event.key === "ArrowDown" || event.key === "ArrowUp") {event.preventDefault();@@ -455,8 +450,7 @@ export function ProjectsPage() {tabIndex={0}onKeyDown={onIndexKeyDown}>- <div className="projects-index-pane">- <ProjectArchiveIndex+ <ProjectArchiveIndexgroups={groups}selectedPath={selectedPath}workspacePath={workspace?.path}@@ -468,44 +462,10 @@ export function ProjectsPage() {setMenuFor(null);}}onActivate={(path) => void activate(path)}- />- </div>- <div- className="settings-panel projects-inspector"- role="region"- aria-labelledby={project ? projectRowId(project.path) : undefined}- >- {project ? (- <>+ detail={+ project ? (+ <><div className="projects-inspector-head">- <span className="projects-glyph is-large" style={{ background: selectedColor }}>- {project.pinned ? (- <IconStar size={16} fill="currentColor" aria-hidden />- ) : (- <IconFolder size={16} aria-hidden />- )}- </span>- <div className="projects-inspector-ident">- <div className="projects-inspector-title">- <h3 className="projects-inspector-name">{project.name}</h3>- {selectedActive ? (- <span className="projects-tag is-active">{t("project.active")}</span>- ) : selectedRetained ? (- <span className="projects-tag">{t("project.openTag")}</span>- ) : null}- {project.pinned ? (- <span- className="projects-tag is-pin"- title={t("project.pinnedTag")}- aria-label={t("project.pinnedTag")}- >- <IconPin size={10} />- </span>- ) : null}- {selectedArchived ? (- <span className="projects-tag is-archived">{t("project.archivedTag")}</span>- ) : null}- </div><div className="projects-inspector-meta"><span className="projects-name-path" title={project.path}>{shortenPath(project.path)}@@ -519,7 +479,6 @@ export function ProjectsPage() {</>) : null}</div>- </div><div className="projects-inspector-actions">{selectedActive ? null : (<Button size="sm" variant="primary" onClick={() => void activate(project.path)}>@@ -782,13 +741,9 @@ export function ProjectsPage() {</Button>) : null}</>- ) : (- <div className="projects-inspector-empty">- <div className="projects-empty-title">{t("project.inspectorEmptyTitle")}</div>- <div className="projects-empty-body">{t("project.inspectorEmptyBody")}</div>- </div>- )}- </div>+ ) : null+ }+ /></div>)}{instructionsFor ? (diff --git a/apps/desktop/src/styles/projects.css b/apps/desktop/src/styles/projects.cssindex be5879b48..f5e6430a1 100644--- a/apps/desktop/src/styles/projects.css+++ b/apps/desktop/src/styles/projects.css@@ -1,8 +1,8 @@/*Settings → Project archive — one quiet description line, one toolbar (sort,- search, add project), and a list + inspector workbench. Pinned / projects /- archived stay grouped in the index; folders, chats, and actions live in the- inspector so a long index stays scannable (D455).+ search, add project), and a one-column workbench. Pinned / projects /+ archived stay grouped in the index; folders, chats, and actions open under+ the selected row so a long index stays scannable (D455).*//* ---------- Settings → Project archive ---------- */@@ -220,11 +220,9 @@}.projects-workbench {- display: grid;- grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1.15fr);- gap: 14px;- align-items: start;+ display: flex;min-width: 0;+ flex-direction: column;}.projects-workbench:focus-visible {@@ -232,7 +230,6 @@box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 80%, transparent);}-.projects-index-pane,.projects-index {display: flex;min-width: 0;@@ -337,10 +334,6 @@flex: 0 0 auto;}-.projects-glyph.is-large {- width: 36px;- height: 36px;-}.projects-name-copy {min-width: 0;@@ -438,55 +431,27 @@}.projects-inspector {- position: sticky;- top: 8px;display: flex;min-width: 0;flex-direction: column;gap: 10px;- padding: 16px;+ padding: 0 14px 14px 50px;}.projects-inspector-head {- display: flex;- align-items: flex-start;- gap: 12px;- min-width: 0;-}--.projects-inspector-ident {- min-width: 0;- flex: 1;- display: flex;- flex-direction: column;- gap: 4px;-}--.projects-inspector-title {display: flex;align-items: center;- flex-wrap: wrap;- gap: 6px;- min-width: 0;-}--.projects-inspector-name {- margin: 0;+ justify-content: space-between;+ gap: 12px;min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- color: var(--ds-text-primary);- font-size: var(--text-md-plus);- font-weight: var(--font-weight-medium-plus);- line-height: var(--leading-tight);}.projects-inspector-meta {display: flex;+ min-width: 0;+ flex: 1;align-items: center;gap: 5px;- min-width: 0;color: var(--ds-text-muted);font-size: var(--text-xs-plus);}@@ -498,17 +463,6 @@gap: 4px;}-.projects-inspector-empty {- display: flex;- min-height: 180px;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 6px;- padding: 24px 12px;- text-align: center;-}-.projects-menu-wrap {position: relative;}@@ -810,12 +764,8 @@margin-left: 0;}- .projects-workbench {- grid-template-columns: 1fr;- }-.projects-inspector {- position: static;+ padding-left: 14px;}}diff --git a/apps/desktop/test/settings-project-archive.test.mjs b/apps/desktop/test/settings-project-archive.test.mjsindex 02b613ba6..e83aec742 100644--- a/apps/desktop/test/settings-project-archive.test.mjs+++ b/apps/desktop/test/settings-project-archive.test.mjs@@ -98,6 +98,8 @@ test("project archive renders the intro, toolbar, and list-inspector workbench",assert.equal(projectsPageSource.match(/projects-workbench/g)?.length, 1);assert.match(projectsPageSource, /projects-inspector/);+ assert.match(projectsIndexSource, /projects-inspector/);+ assert.doesNotMatch(projectsPartialSource, /grid-template-columns/);assert.match(projectsIndexSource, /aria-labelledby=\{`projects-group-\$\{group\.id\}`\}/);assert.match(projectsIndexSource, /<h3 className="projects-group-label"/);assert.match(projectsIndexSource, /className="projects-group-rows" role="list"/);diff --git a/docs/adr/0294-project-archive-list-inspector.md b/docs/adr/0294-project-archive-list-inspector.mdindex 5b791d0ed..01a47e21b 100644--- a/docs/adr/0294-project-archive-list-inspector.md+++ b/docs/adr/0294-project-archive-list-inspector.md@@ -35,11 +35,11 @@ must not leave the page.selects the row and keeps Settings open. Double-click, Enter, or theinspector Open action activates the project and returns to chat. Archive andclose still keep Project archive open.-4. **The inspector owns management.** Folders, chats (latest first, batches of- eight), New task, and the existing menu (instructions, memory, edit, pin,- archive/restore, two-step delete, close) live beside the index. Below 720px- the inspector stacks under the index. Archived records stay grouped and- visible; there is still no visibility toggle (D133).+4. **The inspector owns management, in one column.** Folders, chats (latest+ first, batches of eight), New task, and the existing menu (instructions,+ memory, edit, pin, archive/restore, two-step delete, close) open under the+ selected row at full content width. There is no side-by-side pane. Archived+ records stay grouped and visible; there is still no visibility toggle (D133).5. **Search still matches session titles.** A session-title hit keeps theowning project in the index, selects it, and lists the matching chats inthe inspector.@@ -48,7 +48,7 @@ must not leave the page.## Consequences-- Managing many projects no longer requires expanding rows in the index.+- Compact rows stay scannable; only the selected project opens its full-width detail.- A single click no longer leaves Settings, which is the management path; thechat path is Open / double-click / Enter / opening a session.- Source-contract tests for the archive destination now cover the workbenchdiff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.mdindex 707eaf168..991f4ee0b 100644--- a/docs/spec/04-ux/06-settings-ia.md+++ b/docs/spec/04-ux/06-settings-ia.md@@ -576,8 +576,8 @@ system while preserving their different data ownership:is the primary root of one logical project, and the remaining folders areretained as roots of that same project rather than separate project tabs.Chats, project instructions, and project memory are shared by the group.-- The destination is one workbench (D267), revised by D455 into a list +- inspector. A quiet intro line sits above one toolbar above the workbench. It+- The destination is one workbench (D267), revised by D455 into a one-column+ list with an in-row inspector. A quiet intro line sits above one toolbar above the workbench. Itreuses the same composition, control height, and row rhythm as the agentcapability pages (D257) and adds no page-specific chrome.1. **Intro line** — one quiet description line, the same shape as the@@ -588,14 +588,14 @@ system while preserving their different data ownership:2. **Toolbar** — one row carrying the Recent/Name sort as the sharedsegmented control, the search field with a clear affordance and a matchcount while searching, and the primary Add project action right-aligned- 3. **Workbench** — a compact index beside an inspector. The always-visible- index sections run Pinned, All projects, Archived as non-interactive- header strips, each carrying its label and row count. Every section is a- labelled region wrapping its own list, so the strip is never a non-list- child of a list and each row keeps its group name in the accessibility- tree. Empty sections are omitted, and an index with no rows renders one- quiet empty state instead of the workbench. Below 720px the inspector- stacks under the index+ 3. **Workbench** — one column. The always-visible index sections run Pinned,+ All projects, Archived as non-interactive header strips, each carrying its+ label and row count. Every section is a labelled region wrapping its own+ list, so the strip is never a non-list child of a list and each row keeps+ its group name in the accessibility tree. Selecting a row opens its+ inspector under that row at full content width. Empty sections are omitted,+ and an index with no rows renders one quiet empty state instead of the+ workbench- Compact row anatomy: color glyph, project name with one status tag (Active,Open, or Archived), session count, and a relative last-active time. Thecolored glyph uses Folder for ordinary projects and a filled Star for pinned@@ -699,7 +699,7 @@ system while preserving their different data ownership:duplicating the index in the app shell13. Project archive renders one quiet description line — no hero, banner, orpage-level counter run — above one search + sort toolbar and a list +- inspector workbench whose index holds the Pinned / All projects / Archived+ one-column workbench whose index holds the Pinned / All projects / Archivedgroup strips; each strip's count agrees with its rendered rows, a clickselects a row without leaving Settings, sorting reorders rows inside everysection without hiding any, and clearing the search restores the completediff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex a202a9287..e37105946 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -1984,7 +1984,7 @@ identify the platform validation still needed.- **Preconditions**: App running with at least one configured provider, one supported local session store, one retained project, and one archived project.- **Steps**: 1) Open Settings. 2) Inspect the complete settings rail. 3) Open Basics and change the theme in its Appearance card using the searchable theme picker. 4) Open 全局 AI and inspect the Permissions and Defaults cards, including the Command shell row; confirm Context management has no settings card. 5) Open Shortcuts and inspect the Keyboard shortcuts card. 6) Open Instructions and save global instructions. 7) Open Model configuration and inspect the provider studio. 8) Open Import, Project archive, and Info in order. 9) Search Settings for "project" or "archive". 10) In Project archive, compare each group strip's count with its rendered rows. 11) Switch the sort control from Recent to Name. 12) Search for a known session title, confirm the owning project is selected and its inspector lists matching sessions, then reveal more than eight sessions; clear the search with the clear affordance. 13) Open the inspector menu, dismiss it with Escape and with an outside press. 14) Restore the archived project, then activate it. 15) Return to the app shell and open Plugins.-- **Expected**: The rail contains exactly Basics, 全局 AI/AI, Shortcuts, Instructions, Model configuration, Import, Project archive, and Info in that order, each with its semantic Lucide icon (Sliders / Sparkles / Keyboard / FileText / Bot / Download / Archive / Info). The flat directory is visually grouped under four muted, non-interactive headings — Personal / 个人 for Basics, AI, and Shortcuts; Agent / 智能体 for Instructions and Model configuration; Workspace / 工作区 for Import and Project archive; About / 关于 for Info — with whitespace and no divider lines between groups; searching keeps the destination results flat and hides empty groups together with their headings. Appearance remains in Basics, while Permissions, Defaults, and the Command shell row live under 全局 AI; an available selected shell is represented by the selector without a duplicate Configured status, while default, fallback, and no-effective-shell states remain explicit; Context management has no settings card; Keyboard shortcuts and global instructions have their own destinations; Developer lives under Info; Project archive shows active, closed, and archived durable rows without a visibility toggle, grouping them under the always-visible Pinned / All projects / Archived strips (D168/D267/D455) with per-section counts in a list + inspector workbench. The destination renders no hero block and no page-level counter run: the intro is one quiet description line, and each group strip's count agrees with its rendered rows; a click selects a row without leaving Settings; sorting by Name reorders rows inside every section without hiding any; search matches project fields and session titles and reports a match count, a session-title result selects its owning project, lists sessions in the inspector by latest activity with relative update times, and reveals history in batches of eight; clearing the search restores the complete index. The inspector menu closes on Escape and on an outside press. Bootstrap completion and background refreshes do not return Settings or Extensions to the chat home; the destination changes only after an explicit navigation action. Restore keeps the archive open and activation returns to chat with the restored project retained in the sidebar; the home sidebar and global page results have no standalone Projects destination; Settings search finds Project archive; Plugins remains an independent app-shell destination.+- **Expected**: The rail contains exactly Basics, 全局 AI/AI, Shortcuts, Instructions, Model configuration, Import, Project archive, and Info in that order, each with its semantic Lucide icon (Sliders / Sparkles / Keyboard / FileText / Bot / Download / Archive / Info). The flat directory is visually grouped under four muted, non-interactive headings — Personal / 个人 for Basics, AI, and Shortcuts; Agent / 智能体 for Instructions and Model configuration; Workspace / 工作区 for Import and Project archive; About / 关于 for Info — with whitespace and no divider lines between groups; searching keeps the destination results flat and hides empty groups together with their headings. Appearance remains in Basics, while Permissions, Defaults, and the Command shell row live under 全局 AI; an available selected shell is represented by the selector without a duplicate Configured status, while default, fallback, and no-effective-shell states remain explicit; Context management has no settings card; Keyboard shortcuts and global instructions have their own destinations; Developer lives under Info; Project archive shows active, closed, and archived durable rows without a visibility toggle, grouping them under the always-visible Pinned / All projects / Archived strips (D168/D267/D455) with per-section counts in a one-column workbench. The destination renders no hero block and no page-level counter run: the intro is one quiet description line, and each group strip's count agrees with its rendered rows; a click selects a row without leaving Settings; sorting by Name reorders rows inside every section without hiding any; search matches project fields and session titles and reports a match count, a session-title result selects its owning project, lists sessions in the inspector by latest activity with relative update times, and reveals history in batches of eight; clearing the search restores the complete index. The inspector menu closes on Escape and on an outside press. Bootstrap completion and background refreshes do not return Settings or Extensions to the chat home; the destination changes only after an explicit navigation action. Restore keeps the archive open and activation returns to chat with the restored project retained in the sidebar; the home sidebar and global page results have no standalone Projects destination; Settings search finds Project archive; Plugins remains an independent app-shell destination.- **Specs linked**: `04-ux/06-settings-ia.md`, `04-ux/01-ui-ia.md`, `03-runtime/11-provider-model-system.md`- **Acceptance**: B (model configuration), F (session import)- **Milestone**: M4diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex 48e973a53..d6a3b149d 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -170,7 +170,7 @@ Gold source: local Codex electron captures; latest row wins where rows conflict.| D133 | Project index moves to Settings archive | *(five-destination count/order superseded by D166; flat-list presentation superseded by D168)* **The home sidebar no longer has a standalone Projects destination. Settings adds Project archive (zh-CN: 项目归档) after Import and before Info, bringing the compact directory to Basics / Model configuration / Import / Project archive / Info. The archive reuses the durable Projects index and always includes archived records, with search, add, activate, task expansion, pin, archive/restore, and close actions. Project and session groups remain in the home sidebar for active work. Global search exposes the archive as a Settings result, not a standalone page. This supersedes the standalone-destination clauses of D042/D066 and D090's four-destination limit without changing project storage or activation semantics.** | Active project work already lives in retained sidebar groups; moving historical project management into Settings reduces primary navigation while keeping recovery and archive controls discoverable. || D168 | Project archive presentation redesign | *(band layout and per-section panels superseded by D267)* **Project archive renders three stacked bands: an overview banner (intent sentence, primary Add project, and four derived counters for projects, open, archived, sessions), a toolbar (search with clear affordance and live match count, plus a Recent/Name sort segmented control), and a grouped index whose always-visible sections run Pinned / All projects / Archived with per-section counts, one settings panel per section, and hairline row separators. Rows carry a disclosure control, glyph, name with Active/Open/pinned/Archived tags, one meta line (shortened monospace path, branch, session count), relative last-active time, and hover/focus-revealed New task plus row menu; the menu groups create/edit above pin, archive/restore, and destructive Close, and dismisses on Escape or outside press. Archived rows are grouped and softened, never hidden or filtered, so D133's no-visibility-toggle rule still holds. This supersedes D133's flat-list presentation without changing project storage, search matching, session batching, or activation semantics.** | The flat single-list archive gave equal weight to pinned, working, and archived records and hid its disclosure and row actions behind hover, so scanning a long durable index meant reading every row. Grouping with derived counters and an explicit sort makes state legible at a glance while keeping archived history permanently reachable. || D267 | Project archive is one workbench, not three bands | *(row anatomy and inline expansion superseded by D455)* **Revise D168's band layout: Settings → Project archive renders the D257 one-workbench composition — a quiet intro line carrying only the page description, one toolbar (Recent/Name sort on the shared `settings-segment` primitive, search with clear affordance and live match count, primary Add project), and one settings panel whose always-visible Pinned / All projects / Archived groups are non-interactive in-panel header strips with per-section counts instead of one panel per section. The decorative gradient hero band is removed together with the four page-level overview counters it carried, retiring the `project.statProjects`, `project.statOpen`, `project.statArchived`, and `project.statSessions` keys; the per-group counts on the panel's header strips are now the only totals. The external uppercase section labels are removed as well; row geometry matches the capability rows (32px controls, 14px list gap, 28px row glyph). Beyond dropping the four retired counter keys this is presentation only: D168's row anatomy, row menu grouping, search matching, session batching, activation semantics, and accessibility semantics are unchanged, and no ADR is required.** | D168's overview banner used a decorative gradient and `--text-xl` counter tiles, which the design system forbids, and its per-section panels repeated the same elevated frame three times. Demoting the counters to an inline run kept the clutter without earning it: every total they showed is already legible from the per-group strip counts, so restating them above the toolbar duplicated numbers and gave the destination a header no sibling page has. Dropping them leaves the durable index looking and behaving like the agent capability pages. |-| D455 | Project archive is a list + inspector | **Revise D267's expanding rows: Settings → Project archive keeps the quiet intro and toolbar, then a two-pane workbench. The index remains Pinned / All projects / Archived with per-section counts and no visibility toggle (D133). Compact rows show glyph, name, one status tag, session count, and relative time. A click selects and stays in Settings; double-click, Enter, or the inspector Open action activates and returns to chat. Folders, chats (batches of eight), and the row menu live in the inspector, sticky beside the index and stacked below 720px. Search still matches session titles and selects the owning project. Presentation only: no IPC, storage, or host change. See ADR 0294 and E2E-038.** | Inline expansion and per-row menus made a long durable index hard to scan, and clicking a name left Settings instead of managing the project. |+| D455 | Project archive is a list + inspector | **Revise D267's expanding rows: Settings → Project archive keeps the quiet intro and toolbar, then a one-column workbench. The index remains Pinned / All projects / Archived with per-section counts and no visibility toggle (D133). Compact rows show glyph, name, one status tag, session count, and relative time. A click selects and stays in Settings; double-click, Enter, or the inspector Open action activates and returns to chat. Folders, chats (batches of eight), and the row menu open under the selected row at full width. Search still matches session titles and selects the owning project. Presentation only: no IPC, storage, or host change. See ADR 0294 and E2E-038.** | Inline expansion and per-row menus made a long durable index hard to scan, and clicking a name left Settings instead of managing the project. |## E. M5 hardening decisions (0.4.0)@@ -6200,8 +6200,8 @@ that was sitting at the bottom — including after the turn had finished.## 2026-09-20 — Project archive is a list + inspector (D455)- Decision D455 revises D267's expanding rows for Settings → Project archive.- The quiet intro and toolbar stay; the single expanding list becomes a compact- index beside an inspector (ADR 0294).+ The quiet intro and toolbar stay; the single expanding list becomes compact+ rows with a full-width inspector under the selected row (ADR 0294).- Clicking a row selects it and keeps Settings open. Double-click, Enter, orthe inspector Open action activates the project and returns to chat. Archiveand close still keep the destination open (D133 / D267).diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.mdindex aa68782f7..c1d7fbcf7 100644--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md@@ -243,7 +243,7 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历- 始终包含存档记录;归档行被分组,从不隐藏,所以目的地仍然没有可见性切换- 支持项目搜索、添加、选中、激活、置顶、归档/恢复和关闭-- 该目的地是一个工作台(D267),由 D455 修订为「列表 + 检查器」。+- 该目的地是一个工作台(D267),由 D455 修订为单列:精简行,检查器在选中行下方铺满宽度。一条安静的引导行位于单个工具栏之上,工具栏位于工作台之上。它复用与智能体能力页面(D257)相同的构成、控件高度和行节奏,不引入页面专属装饰。@@ -254,10 +254,10 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历2. **工具栏** — 一行承载使用共享分段控件的“最近/名称”排序、带清除可供性并在搜索时显示匹配计数的搜索字段,以及右对齐的主要“添加项目”操作- 3. **工作台** — 精简索引配检查器。始终可见的索引部分按“固定”、- “所有项目”、“已存档”呈现为非交互标题条,每条带有标签和行数。- 每个部分都是包裹自身列表的带标签区域。空部分被省略;- 完全没有行时呈现安静空状态。窄于 720px 时检查器叠在索引下方+ 3. **工作台** — 单列。始终可见的索引部分按“固定”、“所有项目”、+ “已存档”呈现为非交互标题条,每条带有标签和行数。+ 每个部分都是包裹自身列表的带标签区域。选中一行时检查器在该行下方铺满宽度。+ 空部分被省略;完全没有行时呈现安静空状态- 精简行:颜色字形、项目名和一个状态标签(当前 / 已打开 / 已归档)、会话计数、相对上次活动时间。普通项目用文件夹字形,置顶项目用实心星标。单击选中并留在设置页;双击或 Enter 激活项目并返回聊天@@ -337,7 +337,7 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历在应用程序 shell 中复制索引13. 项目存档呈现一条安静的说明行 —— 没有英雄区块、横幅或页面级计数器串 —— 其下方是一个搜索+排序工具栏,以及带有- 固定/所有项目/存档分组条的列表+检查器工作台;每个分组条的计数与其呈现的行数一致,+ 固定/所有项目/存档分组条的单列工作台;每个分组条的计数与其呈现的行数一致,单击选中行且不离开设置页,排序对每个部分内的行重新排序而不隐藏任何内容,清除搜索即可恢复完整索引14.信息呈现禁用、检查、最新、可用、下载、diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.mdindex 1d43d60dd..a5e42b7b7 100644--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@ -173,7 +173,7 @@| D133 | 项目索引移至设置存档 | *(五个目的地 count/order 被 D166 取代;平面列表演示被 D168 取代)* **主页侧边栏不再具有独立的项目目的地。设置在导入之后、信息之前添加项目归档(zh-CN: 项目归档),将压缩目录带到基础/模型配置/导入/项目归档/信息。存档重用持久的项目索引,并且始终包含存档记录,包括搜索、添加、激活、任务扩展、固定、archive/restore 和关闭操作。项目和会话组仍保留在主侧边栏中以进行积极的工作。全局搜索将存档公开为“设置”结果,而不是独立页面。这取代了 D042/D066 的独立目标子句和 D090 的四个目标限制,而不更改项目存储或激活语义。** | 活跃的项目工作已经存在于保留的侧边栏组中;将历史项目管理移至“设置”可减少主要导航,同时保持恢复和存档控件可发现。 || D168 | 项目档案演示重新设计 | *(堆叠带布局与每部分面板被 D267 取代)* **项目存档呈现三个堆叠带:一个概述横幅(意图句、主要添加项目以及用于项目、打开、存档、会话的四个派生计数器)、一个工具栏(具有清晰的可见性和实时匹配计数的搜索,以及 Recent/Name 排序分段控件),以及一个分组索引,其始终可见的部分运行“固定/所有项目/存档”,每个部分计数、每个部分一个设置面板和细线行分隔符。行包含公开控件、字形、带有 Active/Open/pinned/Archived 标签的名称、一条元行(缩短的等宽路径、分支、会话计数)、相对最后活动时间和 hover/focus-revealed 新任务加行菜单;菜单将 create/edit 置于引脚上方、archive/restore 和破坏性关闭中,并在 Escape 或外部按下时关闭。存档的行被分组和软化,从不隐藏或过滤,因此 D133 的不可见性切换规则仍然有效。这取代了 D133 的平面列表演示,而无需更改项目存储、搜索匹配、会话批处理或激活语义。** | 平面单列表存档对固定、工作和存档记录给予同等重视,并将其披露和行操作隐藏在悬停后面,因此扫描长期持久索引意味着读取每一行。使用派生计数器进行分组并进行显式排序,使状态一目了然,同时保持存档历史记录永久可访问。 || D267 | 项目存档是一个工作台,而不是三个堆叠带 | *(行剖析与行内展开被 D455 取代)* **修订 D168 的堆叠带布局:设置 → 项目存档改为呈现 D257 的一个工作台构成 —— 一条仅承载页面说明的安静引导行、一个工具栏(使用共享 `settings-segment` 基元的“最近/名称”排序、带清除可供性与实时匹配计数的搜索、主要“添加项目”),以及一个设置面板,其始终可见的固定/所有项目/存档分组是面板内带每部分计数的非交互标题条,而不是每部分一个面板。装饰渐变英雄带被移除,它承载的四个页面级概览计数器也一并移除,并停用 `project.statProjects`、`project.statOpen`、`project.statArchived` 和 `project.statSessions` 键;面板标题条上的分组计数现在是唯一的总计。外部大写部分标签也被移除;行几何与能力页面行一致(32px 控件、14px 列表间距、28px 行字形)。除停用上述四个计数器键外,其余仅为演示层变更:D168 的行剖析、行菜单分组、搜索匹配、会话批处理、激活语义和无障碍语义均不变,且不需要新的 ADR。** | D168 的概述横幅使用了装饰渐变和 `--text-xl` 计数器格,而设计系统明确禁止两者,且其每部分面板把同一个高架框重复了三次。把计数器降级为内联串只是保留了杂乱而没有换来价值:它们展示的每个总计都已能从分组条计数中读出,因此在工具栏上方重述这些数字既重复了数字,也让该目的地拥有了兄弟页面都没有的页头。移除它们后,持久索引在外观和行为上都与智能体能力页面一致。 |-| D455 | 项目存档改为列表 + 检查器 | **修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,随后是双栏工作台。索引仍按已置顶 / 全部项目 / 已归档分组并显示计数,且没有可见性开关(D133)。精简行显示字形、名称、一个状态标签、会话计数和相对时间。单击选中并留在设置页;双击、Enter 或检查器的打开操作激活项目并返回聊天。文件夹、对话(每批 8 条)和行菜单放在检查器中,宽屏时贴在索引旁,窄于 720px 时叠在下方。搜索仍匹配会话标题并选中所属项目。仅演示层:无 IPC、存储或宿主改动。见 ADR 0294 与 E2E-038。** | 行内展开和行菜单让长索引难以扫读,单击名称还会离开设置页,不利于管理。 |+| D455 | 项目存档改为列表 + 检查器 | **修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,随后是单列工作台。索引仍按已置顶 / 全部项目 / 已归档分组并显示计数,且没有可见性开关(D133)。精简行显示字形、名称、一个状态标签、会话计数和相对时间。单击选中并留在设置页;双击、Enter 或检查器的打开操作激活项目并返回聊天。文件夹、对话(每批 8 条)和行菜单在选中行下方铺满宽度打开。搜索仍匹配会话标题并选中所属项目。仅演示层:无 IPC、存储或宿主改动。见 ADR 0294 与 E2E-038。** | 行内展开和行菜单让长索引难以扫读,单击名称还会离开设置页,不利于管理。 |## E.M5 强化决策 (0.4.0)@@ -4453,7 +4453,7 @@ that amendment are retired by ADR 0268; the upstream work-panel lifecycle stays.## 2026-09-20 —— 项目存档改为列表 + 检查器(D455)-- 决策 D455 修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,把单一展开列表改成精简索引加检查器(ADR 0294)。+- 决策 D455 修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,把单一展开列表改成精简行,检查器在选中行下方铺满宽度(ADR 0294)。- 单击行会选中并留在设置页。双击、Enter 或检查器的打开操作激活项目并返回聊天。归档和关闭仍使该目的地保持打开(D133 / D267)。- 文件夹、对话(按最新活动、每批 8 条)和原有菜单放在检查器中。归档记录仍分组可见。- 仅演示层:无 IPC、存储或宿主协议改动。见 `04-ux/06-settings-ia.md` 与 E2E-038。