Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
refactor(settings): open project cards on demand and drop the page prose
vastsa84245ee0c2d0
diff --git a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsxindex 83c1c4840..c94a373cf 100644--- a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx+++ b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx@@ -31,7 +31,6 @@ export function projectRowId(path: string) {*/export function ProjectArchiveIndex({groups,- selectedPath,openPath,workspacePath,openProjectPaths,@@ -42,8 +41,7 @@ export function ProjectArchiveIndex({onActivate,}: {groups: { id: GroupId; rows: ProjectIndexItem[] }[];- selectedPath: string | null;- /** Path whose card is open. `null` when the selected row's card is closed. */+ /** Path whose card is open, or `null` while the index is only a list. */openPath: string | null;workspacePath?: string | null;openProjectPaths: readonly string[];@@ -70,7 +68,6 @@ export function ProjectArchiveIndex({</div><div className="projects-group-rows" role="list">{group.rows.map((project) => {- const selected = selectedPath === project.path;const open = openPath === project.path;const status = projectStatus({project,@@ -86,7 +83,6 @@ export function ProjectArchiveIndex({role="listitem"className={cx("projects-row-block",- selected && "selected",open && "open",status === "active" && "active",status === "archived" && "archived",@@ -98,7 +94,7 @@ export function ProjectArchiveIndex({title={project.path}aria-label={t("project.selectProject", { name: project.name })}aria-expanded={open}- aria-current={selected ? "true" : undefined}+ aria-current={open ? "true" : undefined}onClick={() => onSelect(project.path)}onDoubleClick={() => onActivate(project.path)}>diff --git a/apps/desktop/src/lib/project-archive.ts b/apps/desktop/src/lib/project-archive.tsindex e54e3b5b5..d6b5c2132 100644--- a/apps/desktop/src/lib/project-archive.ts+++ b/apps/desktop/src/lib/project-archive.ts@@ -169,28 +169,16 @@ export function projectStatus(args: {}/**- * Whether one project's card is open. Kept apart from the selection so the- * disclosure indicator can mean what it looks like: the selected row stays the- * current row while its card is closed again.+ * One row click, resolved: the row whose card is already open closes it, and+ * any other row opens its card. There is no separate selection to keep — the+ * open card *is* the current row — so nothing is expanded until the user asks+ * for it, and the disclosure indicator can mean exactly what it shows.*/-export type ArchiveCardState = { selectedPath: string; open: boolean };--/**- * One row click, resolved. The row whose card is already open closes it, any- * other row becomes the selection and opens. Without this the index had no- * collapse path at all: clicking the open row re-selected it and the card- * stayed up, while the rotating indicator promised otherwise.- */-export function toggleArchiveRow(args: {- selectedPath: string | null;- open: boolean;- clickedPath: string;-}): ArchiveCardState {- const { selectedPath, open, clickedPath } = args;- if (clickedPath === selectedPath && open) {- return { selectedPath: clickedPath, open: false };- }- return { selectedPath: clickedPath, open: true };+export function nextArchiveOpenPath(+ openPath: string | null,+ clickedPath: string,+): string | null {+ return openPath === clickedPath ? null : clickedPath;}export function compareProjects(@@ -289,36 +277,17 @@ export function displayedProjectSessions(}/**- * Keep the current row when it still matches. Otherwise prefer the live- * workspace, then the first visible row. An empty index has no selection.+ * The row `delta` steps from `currentPath` in the rendered order, clamped to+ * the ends. With no row current yet the first press lands on the first row+ * whichever way it points, so an arrow key always has somewhere to go.*/-export function resolveSelectedPath(args: {- selectedPath: string | null;- filtered: readonly ProjectIndexItem[];- preferredPath?: string | null;-}) {- const { selectedPath, filtered, preferredPath } = args;- if (filtered.length === 0) return null;- if (selectedPath && filtered.some((project) => project.path === selectedPath)) {- return selectedPath;- }- const preferred = normalizeProjectPath(preferredPath);- if (preferred) {- const match = filtered.find(- (project) => normalizeProjectPath(project.path) === preferred,- );- if (match) return match.path;- }- return filtered[0]?.path ?? null;-}-export function neighborPath(filtered: readonly ProjectIndexItem[],- selectedPath: string | null,+ currentPath: string | null,delta: number,) {if (filtered.length === 0) return null;- const index = filtered.findIndex((project) => project.path === selectedPath);+ const index = filtered.findIndex((project) => project.path === currentPath);const from = index >= 0 ? index : delta > 0 ? -1 : 0;const next = Math.min(filtered.length - 1, Math.max(0, from + delta));return filtered[next]?.path ?? null;diff --git a/apps/desktop/src/pages/ProjectsPage.tsx b/apps/desktop/src/pages/ProjectsPage.tsxindex 39387b60c..a5fefa181 100644--- a/apps/desktop/src/pages/ProjectsPage.tsx+++ b/apps/desktop/src/pages/ProjectsPage.tsx@@ -37,9 +37,8 @@ import {filterArchiveItems,groupArchiveRows,neighborPath,- resolveSelectedPath,+ nextArchiveOpenPath,sessionMatchesIndexProject,- toggleArchiveRow,type ProjectIndexItem,type SessionIndexRecord,type SortMode,@@ -76,11 +75,10 @@ export function ProjectsPage() {const [loadingProjects, setLoadingProjects] = useState(true);const [query, setQuery] = useState("");const [sort, setSort] = useState<SortMode>("recent");- const [selectedPath, setSelectedPath] = useState<string | null>(null);+ // The row whose card is open. Closed until the user asks for one.+ const [openPath, setOpenPath] = useState<string | null>(null);const [visibleSessionCounts, setVisibleSessionCounts] = useState<Record<string, number>>({});const [menuFor, setMenuFor] = useState<string | null>(null);- // The card under the selected row: closed again by clicking that same row.- const [cardOpen, setCardOpen] = useState(true);// Which row menu item is armed for its second, confirming click.const { armed: armedDelete, setArmed: setArmedDelete } = useArmedDelete();const [renameFor, setRenameFor] = useState<SessionIndexRecord | null>(null);@@ -167,16 +165,15 @@ export function ProjectsPage() {[groups],);+ // An open card cannot outlive its row: a search that no longer matches the+ // project drops it from the list, and the card closes with it.useEffect(() => {- const next = resolveSelectedPath({- selectedPath,- filtered,- preferredPath: workspace?.path,- });- if (next !== selectedPath) setSelectedPath(next);- }, [filtered, selectedPath, workspace?.path]);+ if (openPath && !filtered.some((item) => item.path === openPath)) {+ setOpenPath(null);+ }+ }, [filtered, openPath]);- const project = filtered.find((item) => item.path === selectedPath) ?? null;+ const project = filtered.find((item) => item.path === openPath) ?? null;const selectedSessions = project? displayedProjectSessions(sessions, project, query): { related: [] as SessionIndexRecord[], displayed: [] as SessionIndexRecord[], sessionSearchMatch: false };@@ -363,12 +360,11 @@ export function ProjectsPage() {event.preventDefault();const next = neighborPath(renderedRows,- selectedPath,+ openPath,event.key === "ArrowDown" ? 1 : -1,);- if (!next || next === selectedPath) return;- setSelectedPath(next);- setCardOpen(true);+ if (!next || next === openPath) return;+ setOpenPath(next);setMenuFor(null);document.getElementById(projectRowId(next))@@ -376,18 +372,14 @@ export function ProjectsPage() {?.focus();return;}- if (event.key === "Enter" && selectedPath) {+ if (event.key === "Enter" && openPath) {event.preventDefault();- void activate(selectedPath);+ void activate(openPath);}};return (- <div className="settings-stack settings-project-archive">- <div className="projects-intro">- <p className="projects-intro-desc">{t("project.archiveSubtitle")}</p>- </div>-+ <div className="settings-stack"><div className="projects-toolbar"><divclassName="settings-segment projects-sort"@@ -497,20 +489,13 @@ export function ProjectsPage() {<div className="projects-workbench" tabIndex={0} onKeyDown={onIndexKeyDown}><ProjectArchiveIndexgroups={groups}- openPath={cardOpen ? selectedPath : null}- selectedPath={selectedPath}+ openPath={openPath}workspacePath={workspace?.path}openProjectPaths={openProjectPaths}locale={locale}sessionCounts={sessionCounts}onSelect={(path) => {- const next = toggleArchiveRow({- selectedPath,- open: cardOpen,- clickedPath: path,- });- setSelectedPath(next.selectedPath);- setCardOpen(next.open);+ setOpenPath((current) => nextArchiveOpenPath(current, path));setMenuFor(null);}}onActivate={(path) => void activate(path)}diff --git a/apps/desktop/src/styles/projects.css b/apps/desktop/src/styles/projects.cssindex ed0bf0f3a..50df7032b 100644--- a/apps/desktop/src/styles/projects.css+++ b/apps/desktop/src/styles/projects.css@@ -1,37 +1,16 @@/*- Settings → Project archive — one quiet description line, one toolbar (sort,- search, add project), and a one-column workbench (D455).+ Settings → Project archive — one toolbar (sort, search, add project) and a+ one-column workbench (D455). Nothing is expanded until a row is clicked, and+ clicking that row again closes it.The workbench is an iOS-style inset grouped index: a quiet section label, thenrows that read left-to-right as identity (glyph, name, path) and right-to-left- as detail (sessions, last active, disclosure). The selected row is the header- of its own card, so its detail opens under the row and never repeats the name.+ as detail (sessions, last active, disclosure). The open row is the header of+ its own card, so its detail opens under the row and never repeats the name.Separators are spacing, never rules — tiles carry the structure (D297).*//* ---------- Settings → Project archive ---------- */-.settings-project-archive {- gap: 14px;-}--/* One quiet description line, same as `.agent-capability-intro` on the sibling- capability pages. The workbench below carries the per-group counts. */-.projects-intro {- display: flex;- max-width: 92ch;- flex-wrap: wrap;- align-items: baseline;- gap: 2px 10px;- margin: -12px 0 0;- padding: 0 1px;-}--.projects-intro-desc {- margin: 0;- color: var(--ds-text-secondary);- font-size: var(--text-md);- line-height: var(--leading-body);-}/*One toolbar owns sort, search, the live match count, and the primary action.@@ -119,12 +98,12 @@display: inline-flex;height: var(--projects-control-height);min-width: 0;- flex: 1 1 200px;- max-width: 380px;+ flex: 1 1 180px;+ max-width: 320px;align-items: center;gap: 6px;border-radius: var(--radius-full);- background: var(--ds-tile-hover);+ background: var(--ds-field-inset-bg);padding: 0 11px;color: var(--ds-text-muted);transition:@@ -133,8 +112,8 @@}.projects-search-wrap:focus-within {- background: var(--ds-raised);- box-shadow: 0 0 0 1px color-mix(in oklab, var(--ds-accent) 40%, transparent);+ background: var(--ds-field-inset-focus-bg);+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--ds-accent) 45%, transparent);}.projects-search-wrap > svg {@@ -270,12 +249,13 @@background: var(--ds-tile-hover);}-/* The open project is the deepest tile; selection uses a quiet accent ring. */+/* The live project is the deepest tile; the row whose card is open carries a+ quiet accent ring. Nothing else is highlighted, so a closed index is quiet. */.projects-row-block.active {background: var(--ds-tile-deep);}-.projects-row-block.selected {+.projects-row-block.open {background: var(--ds-tile-deep);box-shadow: 0 0 0 1px color-mix(in oklab, var(--ds-accent) 34%, transparent);}@@ -294,9 +274,9 @@display: flex;width: 100%;align-items: center;- gap: 10px;+ gap: 12px;min-width: 0;- padding: 7px 10px 7px 12px;+ padding: 8px 14px;text-align: left;border-radius: var(--radius-md-plus);cursor: pointer;@@ -378,13 +358,13 @@}/* Trailing detail column, mirrored against the identity column. */+/* Trailing detail is one line, mirrored against the identity column. */.projects-row-meta {display: flex;min-width: 0;flex: 0 0 auto;- flex-direction: column;- align-items: flex-end;- gap: 1px;+ align-items: baseline;+ gap: 8px;margin-left: 4px;}@@ -400,8 +380,13 @@color: var(--ds-text-muted);}+/*+ Muted, not faint: `--ds-text-faint` is #afafaf in light mode, which lands at+ 2.2:1 on the card and makes a timestamp the user actually reads unreadable.+ Quietness comes from size and the trailing column instead.+*/.projects-updated {- color: var(--ds-text-faint);+ color: var(--ds-text-muted);}/* Disclosure indicator: points at the row, turns down once its detail is open. */@@ -412,7 +397,7 @@flex: 0 0 auto;align-items: center;justify-content: center;- color: var(--ds-text-faint);+ color: var(--ds-text-muted);transition: transform var(--motion-duration-fast) var(--motion-ease-out);}@@ -420,7 +405,6 @@closed again must point right, or the indicator lies about the state. */.projects-row-block.open .projects-row-disclosure {transform: rotate(90deg);- color: var(--ds-text-muted);}.projects-tag {@@ -458,7 +442,7 @@min-width: 0;flex-direction: column;gap: 8px;- padding: 0 14px 12px 50px;+ padding: 0 14px 12px 54px;animation: projects-detail-in var(--motion-duration-fast) var(--motion-ease-out);}diff --git a/apps/desktop/test/project-archive.test.mjs b/apps/desktop/test/project-archive.test.mjsindex dafb69aa2..0e6f78e37 100644--- a/apps/desktop/test/project-archive.test.mjs+++ b/apps/desktop/test/project-archive.test.mjs@@ -7,14 +7,13 @@ import {filterArchiveItems,groupArchiveRows,neighborPath,+ nextArchiveOpenPath,projectBucket,projectMatchesQuery,- resolveSelectedPath,sessionMatchesIndexProject,sessionMatchesQuery,sessionTimestamp,shortenPath,- toggleArchiveRow,} from "../src/lib/project-archive.ts";test("the archive never hides archived rows behind a filter", () => {@@ -101,21 +100,19 @@ test("search keeps a project when a session title matches", () => {assert.equal(shown.displayed[0]?.id, "s1");});-test("selection stays on the current row, then the live workspace, then the first match", () => {+test("the arrow keys walk the rows the user can see", () => {const rows = [{ path: "/a", name: "A", openedAt: 1, groupId: "a", roots: [], legacy: false },{ path: "/b", name: "B", openedAt: 2, groupId: "b", roots: [], legacy: false },];- assert.equal(resolveSelectedPath({ selectedPath: "/b", filtered: rows }), "/b");- assert.equal(- resolveSelectedPath({ selectedPath: "/gone", filtered: rows, preferredPath: "/a" }),- "/a",- );- assert.equal(resolveSelectedPath({ selectedPath: null, filtered: rows }), "/a");- assert.equal(resolveSelectedPath({ selectedPath: "/a", filtered: [] }), null);assert.equal(neighborPath(rows, "/a", 1), "/b");assert.equal(neighborPath(rows, "/b", 1), "/b");assert.equal(neighborPath(rows, "/b", -1), "/a");+ // With nothing open yet the first key press lands on the first row, either+ // direction, and an empty index has nowhere to go.+ assert.equal(neighborPath(rows, null, 1), "/a");+ assert.equal(neighborPath(rows, null, -1), "/a");+ assert.equal(neighborPath([], null, 1), null);});test("the index merges durable groups ahead of recents and session seeds", () => {@@ -151,30 +148,13 @@ test("the index merges durable groups ahead of recents and session seeds", () =>assert.ok(sessionTimestamp("2026-01-02T00:00:00.000Z") > 0);});-test("one row click toggles that row's card and opens any other", () => {- // The open card closes again: this is the path the index was missing, where- // clicking the selected row re-selected it and the card stayed up.- assert.deepEqual(- toggleArchiveRow({ selectedPath: "/a", open: true, clickedPath: "/a" }),- { selectedPath: "/a", open: false },- );- // Clicking the closed row reopens it rather than collapsing "nothing".- assert.deepEqual(- toggleArchiveRow({ selectedPath: "/a", open: false, clickedPath: "/a" }),- { selectedPath: "/a", open: true },- );- // Any other row becomes the selection and opens, whichever row was open.- assert.deepEqual(- toggleArchiveRow({ selectedPath: "/a", open: true, clickedPath: "/b" }),- { selectedPath: "/b", open: true },- );- assert.deepEqual(- toggleArchiveRow({ selectedPath: "/a", open: false, clickedPath: "/b" }),- { selectedPath: "/b", open: true },- );- // First click with nothing selected yet opens that row.- assert.deepEqual(- toggleArchiveRow({ selectedPath: null, open: false, clickedPath: "/a" }),- { selectedPath: "/a", open: true },- );+test("one row click opens that row's card and closes the open one", () => {+ // Nothing is expanded to begin with, so the first click opens a card.+ assert.equal(nextArchiveOpenPath(null, "/a"), "/a");+ // Any other row takes the open card with it.+ assert.equal(nextArchiveOpenPath("/a", "/b"), "/b");+ // Clicking the open row closes it again. This is the path the index was+ // missing: the click re-selected the row and the card stayed up.+ assert.equal(nextArchiveOpenPath("/a", "/a"), null);+ assert.equal(nextArchiveOpenPath(null, "/a"), "/a");});diff --git a/apps/desktop/test/settings-project-archive.test.mjs b/apps/desktop/test/settings-project-archive.test.mjsindex 7b4ebd9e0..71873ffb5 100644--- a/apps/desktop/test/settings-project-archive.test.mjs+++ b/apps/desktop/test/settings-project-archive.test.mjs@@ -75,11 +75,15 @@ test("project archive is no longer a standalone app page", () => {assert.doesNotMatch(appSource, /page === "projects"/);});-test("project archive renders the intro, toolbar, and list-inspector workbench", () => {- assert.match(projectsPageSource, /projects-intro-desc/);- assert.match(projectsPageSource, /project\.archiveSubtitle/);+test("project archive is a toolbar over a list, with no page-level prose", () => {+ // Sibling destinations carry no description line, so this one does not+ // either: the toolbar is the first thing under the title, and the intro+ // element and its catalog key are gone rather than merely hidden.+ assert.doesNotMatch(projectsPageSource, /projects-intro/);+ assert.doesNotMatch(projectsPageSource, /project\.archiveSubtitle/);+ assert.doesNotMatch(projectArchiveSource, /archiveSubtitle/);assert.doesNotMatch(projectsPageSource, /projects-intro-stat/);- assert.doesNotMatch(projectsPageSource, /project\.stat[A-Z]/);+ assert.doesNotMatch(archiveUiSource, /archiveSubtitle/);assert.match(projectsPageSource, /projects-search-clear/);assert.match(projectsPageSource, /project\.clearSearch/);@@ -140,17 +144,20 @@ test("the index row carries identity and the selected row is its own card headertest("the selected row's card can be closed again", () => {// One click resolves through the shared toggle, so clicking the open row- // closes it instead of re-selecting it and leaving the card up.- assert.match(projectsPageSource, /toggleArchiveRow\(\{/);- assert.match(projectArchiveSource, /export function toggleArchiveRow\(/);- // Selection and the open card are separate: the ring stays on the current- // row while the card is closed, and only the open row renders the panel.+ // closes it instead of re-selecting it and leaving the card up. The open card+ // is the only state the index knows, so nothing is highlighted by default.+ assert.match(projectsPageSource, /nextArchiveOpenPath\(current, path\)/);+ assert.match(projectArchiveSource, /export function nextArchiveOpenPath\(/);+ assert.match(+ projectsPageSource,+ /const \[openPath, setOpenPath\] = useState<string \| null>\(null\)/,+ );assert.match(projectsIndexSource, /const open = openPath === project\.path/);assert.match(projectsIndexSource, /aria-expanded=\{open\}/);assert.match(projectsIndexSource, /\{open && detail \? \(/);- assert.match(projectsPageSource, /openPath=\{cardOpen \? selectedPath : null\}/);- // Moving the selection with the keyboard always opens the row it landed on.- assert.match(projectsPageSource, /setSelectedPath\(next\);\n\s+setCardOpen\(true\);/);+ assert.match(projectsPageSource, /openPath=\{openPath\}/);+ // Moving with the keyboard opens the row it landed on.+ assert.match(projectsPageSource, /setOpenPath\(next\);/);});test("the selected row is selected by one shared status helper", () => {@@ -191,7 +198,9 @@ test("project archive row menu closes on escape and outside press", () => {});test("project archive styles group archived rows instead of hiding them", () => {- assert.match(projectsStyleSource, /\.projects-intro-desc\s*\{/);+ // The old description line and its page wrapper are gone, not hidden.+ assert.doesNotMatch(projectsPartialSource, /projects-intro/);+ assert.doesNotMatch(projectsPartialSource, /settings-project-archive/);assert.match(projectsStyleSource, /\.projects-sort-btn\.active\s*\{/);assert.match(projectsStyleSource, /\.projects-group-head\s*\{/);assert.match(projectsPartialSource, /\.projects-workbench\s*\{/);diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.mdindex 4ba009abb..a9280fb96 100644--- a/docs/spec/04-ux/06-settings-ia.md+++ b/docs/spec/04-ux/06-settings-ia.md@@ -580,23 +580,24 @@ system while preserving their different data ownership:- The destination is one workbench (D267), revised by D455 into a one-columnlist with an in-row inspector, and revised again into an inset grouped indexin the iOS sense: the selected row is the header of its own card, so the- detail opens under the row and repeats nothing the row already states. A- quiet intro line sits above one toolbar above the workbench. It reuses the- same composition, control height, and row rhythm as the agent capability- pages (D257) and adds no page-specific chrome.- 1. **Intro line** — one quiet description line, the same shape as the- capability pages' intro. The destination shows no page-level totals: there- is no hero block, decorative gradient, counter banner, or inline counter- run. The per-group counts on the index header strips are the only totals,- so a number is never repeated in two places- 2. **Toolbar** — one row carrying the Recent/Name sort as the shared+ detail opens under the row and repeats nothing the row already states. One+ toolbar leads the page and nothing is expanded in it: like the capability and+ Import destinations, the destination carries no description line, so no+ sentence sits between the page title and the controls. It reuses the same+ composition, control height, and row rhythm as the agent capability pages+ (D257) and adds no page-specific chrome.+ 1. **Toolbar** — one row carrying the Recent/Name sort as the sharedsegmented control, the search field with a clear affordance and a match- count while searching, and the primary Add project action right-aligned- 3. **Workbench** — one column. The always-visible index sections run Pinned,- All projects, Archived as non-interactive header strips, each carrying its+ count while searching, and the primary Add project action right-aligned.+ The destination shows no page-level totals: there is no hero block,+ decorative gradient, counter banner, or inline counter run. The per-group+ counts on the index sections are the only totals, so a number is never+ repeated in two places+ 2. **Workbench** — one column. The always-visible index sections run Pinned,+ All projects, Archived as non-interactive header lines, each carrying itslabel 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 expands its card+ list, so the header is never a non-list child of a list and each row keeps+ its group name in the accessibility tree. Clicking a row opens its cardunder that row at full content width, and that row's disclosure indicatorturns down while the card is open. Empty sections are omitted, and an indexwith no rows renders one quiet empty state instead of the workbench@@ -606,11 +607,11 @@ system while preserving their different data ownership:projects apart, then the right-aligned session count and relative last-activetime, closed by the row's disclosure indicator. The colored glyph uses Folderfor ordinary projects and a filled Star for pinned projects. Rows are tiles- separated by the row gap, never by rules. A click selects the row and keeps- Settings open, and a click on the row whose card is already open closes that- card again; the disclosure indicator turns down only while the card is open,- so it never claims a closed card is open. Double-click or Enter activates the- project and returns to chat+ separated by the row gap, never by rules. The index starts closed: clicking a+ row opens its card and keeps Settings open, clicking that row again closes the+ card, and clicking any other row moves the open card to it. The disclosure+ indicator turns down only while the card is open, so it never claims a closed+ card is open. Double-click or Enter activates the project and returns to chat- The card under the selected row is the detail panel, and it repeats nothingthe row already states — no second copy of the name, the path, or the statustag. It opens with an action bar (New task, Open while the project is not the@@ -624,9 +625,9 @@ system while preserving their different data ownership:supports adding entries, shows an empty state, and keeps Cancel/Saveactions. Saved entries are scoped to that project's path and are availablein later chats for the project.-- Project search also matches session titles. Matching a session retains and- selects its owning project; the inspector lists matching sessions ordered by- latest activity, shows a count and relative update time, and reveals+- Project search also matches session titles. Matching a session keeps its+ owning project in the index; opening that project lists the matching sessions+ ordered by latest activity, shows a count and relative update time, and revealsadditional rows in batches of eight rather than silently truncating thehistory- Activating a project or project session returns to chat; archive and close@@ -709,13 +710,13 @@ system while preserving their different data ownership:the page does not gain horizontal overflow12. Project archive always exposes archived records and can restore them withoutduplicating the index in the app shell-13. Project archive renders one quiet description line — no hero, banner, or- page-level counter run — above one search + sort toolbar and a list +- one-column workbench whose index holds the Pinned / All projects / Archived- group strips; each strip's count agrees with its rendered rows, a click- selects a row without leaving Settings, sorting reorders rows inside every- section without hiding any, and clearing the search restores the complete- index+13. Project archive renders no description line — no hero, banner, or page-level+ counter run — above one search + sort toolbar and a list + one-column+ workbench whose index holds the Pinned / All projects / Archived section+ headers; each header's count agrees with its rendered rows, the index starts+ with nothing expanded and a click opens one row's card without leaving+ Settings, sorting reorders rows inside every section without hiding any, and+ clearing the search restores the complete index14. Info renders disabled, checking, up-to-date, available, downloading,downloaded, and error update states without adding another destination15. Native select option lists remain readable in both light and dark themes,diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.mdindex 52326bf11..3e8c41df4 100644--- a/docs/spec/04-ux/07-ui-design-system.md+++ b/docs/spec/04-ux/07-ui-design-system.md@@ -1308,8 +1308,8 @@ Full component contract and usage rules: [08-component-spec.md §17](08-componenis embedded in Settings with no duplicate page title or outer page padding;the earlier standalone Projects destination and card grid (D042) aresuperseded by D133. Per D267 the destination is composed exactly like the- agent capability pages (D257): a quiet description-only intro line, one- toolbar (sort segment, search, primary action), and one index whose+ agent capability pages (D257): one toolbar (sort segment, search, primary+ action) and one index whosePinned / All projects / Archived groups are plain section header linescarrying the only counts on the page. Per D455 it stays one column with noside-by-sidediff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex df89fd9ea..f026211cb 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -6299,6 +6299,22 @@ that was sitting at the bottom — including after the turn had finished.down only while the card is really open. Moving the selection with the arrowkeys always opens the row it landed on.Presentation only: no IPC, storage, host-protocol, or- Presentation only: no IPC, storage, host-protocol, oractivation-semantics change. See `04-ux/06-settings-ia.md`,`04-ux/07-ui-design-system.md`, and ADR 0294.++## 2026-09-20 — Project archive opens closed and keeps no page-level prose++- The destination renders no description line: the toolbar is the first thing+ under the page title, the same shape as the agent capability and Import+ destinations. The `project.archiveSubtitle` key is retired from every catalog+ rather than left behind unused.+- Nothing is expanded until the user clicks a row. Selection and the open card+ were two states; they collapse into one, so a closed index highlights nothing,+ `aria-expanded` and the rotating disclosure indicator describe the open card+ only, and a row whose project leaves the list (a search that no longer matches+ it) closes with it. `resolveSelectedPath`, which always resolved a selection+ (the live workspace first, then the first row), is removed together with the+ auto-expansion it existed to serve.+- Presentation only: no IPC, storage, host-protocol, or activation-semantics+ change. Search still matches session titles and keeps the owning project in+ the index. See `04-ux/06-settings-ia.md`.diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.mdindex 294528a31..051979d0f 100644--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md@@ -243,26 +243,26 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历- 该目的地是一个工作台(D267),由 D455 修订为单列:精简行,检查器在选中行下方铺满宽度;现进一步改为 iOS 意义上的内嵌分组索引:选中行就是它自己卡片的表头,因此详情在该行下方展开,且不重复行上已有的信息。- 一条安静的引导行位于单个工具栏之上,工具栏位于工作台之上。+ 一个工具栏领起页面,且默认不展开任何内容:与能力页面和导入目的地一样,+ 该目的地不带说明行,页面标题与控制之间没有整句文字。它复用与智能体能力页面(D257)相同的构成、控件高度和行节奏,不引入页面专属装饰。- 1. **引导行** — 一条安静的说明行,形态与能力页面的引导区相同。- 该目的地不展示页面级总计:没有英雄区块、装饰渐变、计数器横幅或- 内联计数器串。索引标题条上的分组计数是唯一的总计,- 因此同一个数字绝不会在两处重复出现- 2. **工具栏** — 一行承载使用共享分段控件的“最近/名称”排序、+ 1. **工具栏** — 一行承载使用共享分段控件的“最近/名称”排序、带清除可供性并在搜索时显示匹配计数的搜索字段,以及右对齐的- 主要“添加项目”操作- 3. **工作台** — 单列。始终可见的索引部分按“固定”、“所有项目”、- “已存档”呈现为非交互标题条,每条带有标签和行数。- 每个部分都是包裹自身列表的带标签区域。- 选中一行时其卡片在该行下方铺满宽度展开,该行的展开指示器随之转向下方。+ 主要“添加项目”操作。该目的地不展示页面级总计:没有英雄区块、+ 装饰渐变、计数器横幅或内联计数器串。索引分组上的计数是唯一的总计,+ 因此同一个数字绝不会在两处重复出现+ 2. **工作台** — 单列。始终可见的索引部分按“固定”、“所有项目”、+ “已存档”呈现为非交互标题行,每条带有标签和行数。+ 每个部分都是包裹自身列表的带标签区域,标题行绝不会作为列表的非列表子项。+ 单击一行时其卡片在该行下方铺满宽度展开,该行的展开指示器随之转向下方。空部分被省略;完全没有行时呈现安静空状态- 行的信息自左向右是身份、自右向左是细节:颜色字形、项目名和一个状态标签(当前 / 已打开 / 已归档)、用于区分同名项目的缩短等宽路径,然后是右对齐的会话计数与相对上次活动时间,最后是该行的展开指示器。普通项目用文件夹字形,置顶项目用实心星标。行靠行间距分隔,从不使用分隔线。- 单击选中并留在设置页,再次单击已展开卡片的那一行则收起该卡片;+ 单击一行打开其卡片并留在设置页,再次单击该行则收起卡片,+ 单击其他行则把打开的卡片移过去;索引初始即为收起状态。展开指示器只在卡片展开时转向下方,不会把已收起的卡片说成展开。双击或 Enter 激活项目并返回聊天- 选中行下方的卡片即详情面板,它不重复行上已有的信息 —— 不会有第二份名称、@@ -270,8 +270,8 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历以及更多菜单),接着是只读的文件夹与分支信息、会话计数,最后是会话列表本身。更多菜单将创建/编辑放在置顶、归档/恢复和关闭之上,并在 Escape 或外部点击时关闭-- 项目搜索还匹配会话标题。匹配的会话会保留并选中所属项目;- 检查器按最新活动列出匹配会话,以 8 条一批显示,而不是截断历史+- 项目搜索还匹配会话标题。匹配的会话会使其所属项目留在索引中;+ 打开该项目后按最新活动列出匹配会话,以 8 条一批显示,而不是截断历史- 激活项目或项目会话返回聊天;归档和关闭仍使项目归档页保持打开### 信息@@ -341,10 +341,11 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历页面没有水平溢出12. 项目归档始终公开归档记录,并且可以在无需修复的情况下恢复它们在应用程序 shell 中复制索引-13. 项目存档呈现一条安静的说明行 —— 没有英雄区块、横幅或页面级- 计数器串 —— 其下方是一个搜索+排序工具栏,以及带有- 固定/所有项目/存档分组条的单列工作台;每个分组条的计数与其呈现的行数一致,- 单击选中行且不离开设置页,排序对每个部分内的行重新排序而不隐藏任何内容,+13. 项目存档不呈现说明行 —— 没有英雄区块、横幅或页面级计数器串 ——+ 其下方是一个搜索+排序工具栏,以及带有+ 固定/所有项目/存档分组标题的单列工作台;每个分组的计数与其呈现的行数一致,+ 索引初始不展开任何内容,单击一行打开其卡片且不离开设置页,+ 排序对每个部分内的行重新排序而不隐藏任何内容,清除搜索即可恢复完整索引14.信息呈现禁用、检查、最新、可用、下载、已下载,并且错误更新状态而不添加其他目标diff --git a/docs/zh-CN/spec/04-ux/07-ui-design-system.md b/docs/zh-CN/spec/04-ux/07-ui-design-system.mdindex 12a583feb..2d5fe79cc 100644--- a/docs/zh-CN/spec/04-ux/07-ui-design-system.md+++ b/docs/zh-CN/spec/04-ux/07-ui-design-system.md@@ -1177,8 +1177,7 @@ Linux 保留淡入淡出和滑动退出。嵌入“设置”中,没有重复的页面标题或外部页面填充;早期的独立项目目的地和卡片网格(D042)是被 D133 取代。根据 D267,该目的地的构成与智能体能力页面(D257)- 完全一致:一条仅含说明的安静引导行;- 一个工具栏(排序分段控件、搜索、主要操作);以及一个索引,+ 完全一致:一个工具栏(排序分段控件、搜索、主要操作);以及一个索引,其固定/所有项目/已存档分组是纯标签式的分组标题行,并承载页面上唯一的计数。根据 D455 它保持单列、没有并排面板,且该索引是 iOS 意义上的内嵌分组列表:每行自左向右是身份(字形、项目名、状态标签、路径),自右向左是细节diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.mdindex 4f63cbbba..5436f66e5 100644--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@ -4521,5 +4521,15 @@ that amendment are retired by ADR 0268; the upstream work-panel lifecycle stays.两个独立状态:当前行在卡片收起时仍保留选中环,展开指示器只在卡片真正展开时转向下方。用方向键移动选中时总会展开落点所在的那一行。仅演示层:无 IPC、存储、宿主协议或激活语义改动。见 `04-ux/06-settings-ia.md`、- 仅演示层:无 IPC、存储、宿主协议或激活语义改动。见 `04-ux/06-settings-ia.md`、`04-ux/07-ui-design-system.md` 与 ADR 0294。++## 2026-09-20 —— 项目档案默认收起,且不再带页面级说明文字++- 该目的地不再呈现说明行:工具栏是页面标题下的第一个元素,形态与智能体能力页面和+ 导入目的地一致。`project.archiveSubtitle` 键从全部语言目录中退役,而不是留作未使用。+- 用户单击某一行之前不展开任何内容。选中与卡片展开原本是两个状态,现合并为一个:+ 收起的索引不高亮任何行,`aria-expanded` 与旋转的展开指示器只描述展开的卡片,+ 项目从列表中消失(搜索不再匹配)时卡片随之关闭。`resolveSelectedPath`+ (总会解析出一个选中项:优先当前工作区、其次首行)随它所服务的自动展开一并移除。+- 仅演示层:无 IPC、存储、宿主协议或激活语义改动。搜索仍匹配会话标题,并让所属项目+ 留在索引中。见 `04-ux/06-settings-ia.md`。diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex eed9324fa..3bba4d4fe 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -1247,7 +1247,6 @@ sklm: {"clearSearch": "Suche löschen","resultCount_one": "{{count}} von {{total}} Projekt","resultCount_other": "{{count}} von {{total}} Projekten",- "archiveSubtitle": "Geöffnete Ordner und ihre Chats.","groupPinned": "Angepinnt","groupProjects": "Alle Projekte","groupArchived": "Archiviert",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex aec682061..55b9672c3 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -1268,7 +1268,6 @@ sklm: {clearSearch: "Clear search",resultCount_one: "{{count}} of {{total}} project",resultCount_other: "{{count}} of {{total}} projects",- archiveSubtitle: "Opened folders and their chats.",groupPinned: "Pinned",groupProjects: "All projects",groupArchived: "Archived",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex 665a6d725..217e6e25a 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -1247,7 +1247,6 @@ sklm: {"clearSearch": "Borrar búsqueda","resultCount_one": "{{count}} de {{total}} proyecto","resultCount_other": "{{count}} de {{total}} proyectos",- "archiveSubtitle": "Carpetas abiertas y sus chats.","groupPinned": "Fijado","groupProjects": "Todos los proyectos","groupArchived": "Archivado",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex d326ccb12..7512fd016 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -1247,7 +1247,6 @@ sklm: {"clearSearch": "Effacer la recherche","resultCount_one": "{{count}} de {{total}} projet","resultCount_other": "{{count}} sur {{total}} projets",- "archiveSubtitle": "Dossiers ouverts et leurs discussions.","groupPinned": "Épinglé","groupProjects": "Tous les projets","groupArchived": "Archivé",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex 849033dfb..26188bc65 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -1267,7 +1267,6 @@ sklm: {clearSearch: "검색 지우기",resultCount_one: "프로젝트 {{total}}개 중 {{count}}개",resultCount_other: "프로젝트 {{total}}개 중 {{count}}개",- archiveSubtitle: "열어 본 폴더와 채팅입니다.",groupPinned: "고정됨",groupProjects: "모든 프로젝트",groupArchived: "보관됨",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex 379e6c4f1..4cf39eb7d 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -1267,7 +1267,6 @@ sklm: {clearSearch: "Aramayı temizle",resultCount_one: "{{total}} projeden {{count}}",resultCount_other: "{{total}} projeden {{count}}",- archiveSubtitle: "Açılan klasörler ve sohbetleri.",groupPinned: "Sabitlenen",groupProjects: "Tüm projeler",groupArchived: "Arşivlenen",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 59e610c4e..3cfb0a84b 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -1250,7 +1250,6 @@ sklm: {clearSearch: "清除搜索",resultCount_one: "{{total}} 个项目中的 {{count}} 个",resultCount_other: "{{total}} 个项目中的 {{count}} 个",- archiveSubtitle: "已打开的文件夹及其对话。",groupPinned: "已置顶",groupProjects: "全部项目",groupArchived: "已归档",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 8d025d90d..7257efe3f 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -1250,7 +1250,6 @@ sklm: {clearSearch: "清除搜尋",resultCount_one: "{{total}} 個專案中的 {{count}} 個",resultCount_other: "{{total}} 個專案中的 {{count}} 個",- archiveSubtitle: "已開啟的資料夾及其對話。",groupPinned: "已置頂",groupProjects: "全部專案",groupArchived: "已歸檔",diff --git a/packages/i18n/test/user-facing-copy.test.mjs b/packages/i18n/test/user-facing-copy.test.mjsindex e73e5f836..792700b7f 100644--- a/packages/i18n/test/user-facing-copy.test.mjs+++ b/packages/i18n/test/user-facing-copy.test.mjs@@ -94,13 +94,6 @@ test("Plan mode and Auto permission copy stay explicit in both locales", () => {assert.match(chinese["plan.autoWarning"], /可能修改文件/);});-test("page copy keeps actions and removes redundant explanatory paragraphs", () => {- assert.equal(english["project.archiveSubtitle"], "Opened folders and their chats.");- assert.equal(chinese["project.archiveSubtitle"], "已打开的文件夹及其对话。");- assert.doesNotMatch(english["project.archiveSubtitle"], /without losing|Activate|archive the rest/);- assert.doesNotMatch(chinese["project.archiveSubtitle"], /可以|而不丢失/);-});-/*** E2E-024X: a page may not restate its own title as a subtitle, and a setting* may not explain an obvious control. These keys were rendered once and are@@ -108,6 +101,7 @@ test("page copy keeps actions and removes redundant explanatory paragraphs", ()*/const REMOVED_EXPLANATORY_KEYS = ["project.subtitle",+ "project.archiveSubtitle","project.emptyIndexBody","scheduled.emptyBody","chat.emptyHint",