Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

feat(settings): redesign the project archive as an inset grouped card list

vastsad03fb08a31f8
diff --git a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx
index e77db71d6..f0e0d0fc1 100644
--- a/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx
+++ b/apps/desktop/src/features/projects/ProjectArchiveIndex.tsx
@@ -1,40 +1,34 @@
import { type ReactNode } from "react";
import { useTranslation } from "react-i18next";
import { cx } from "../../components/ui";
-import { IconFolder, IconStar } from "../../components/icons";
+import { IconChevronRight, IconFolder, IconStar } from "../../components/icons";
import { projectColor } from "../../lib/recent-projects";
-import { normalizeProjectPath } from "../../lib/sidebar-session-groups";
import {
formatUpdated,
GROUP_LABEL_KEYS,
+ PROJECT_STATUS_LABEL_KEYS,
+ projectStatus,
+ shortenPath,
type GroupId,
type ProjectIndexItem,
} from "../../lib/project-archive";
+/**
+ * Row element id. Encoded rather than slugged: two projects whose paths differ
+ * only in separators (`/w/api-server` vs `/w/api/server`) slugged to one id, so
+ * `getElementById` returned whichever row came first in the document.
+ */
export function projectRowId(path: string) {
- return `projects-row-${path.replace(/[^a-zA-Z0-9]+/g, "-")}`;
-}
-
-function rowStatus(args: {
- project: ProjectIndexItem;
- workspacePath?: string | null;
- openProjectPaths: readonly string[];
-}): "active" | "open" | "archived" | null {
- const { project, workspacePath, openProjectPaths } = args;
- if (project.archived === true) return "archived";
- if (normalizeProjectPath(workspacePath) === normalizeProjectPath(project.path)) {
- return "active";
- }
- if (
- openProjectPaths.some(
- (path) => normalizeProjectPath(path) === normalizeProjectPath(project.path),
- )
- ) {
- return "open";
- }
- return null;
+ return `projects-row-${encodeURIComponent(path)}`;
}
+/*
+ The index is one inset grouped list in the iOS sense: a quiet section label,
+ then rows that read left-to-right as identity (glyph, name, path) and
+ right-to-left as detail (session count, last active, disclosure). Selecting a
+ row expands its detail in place under the row, so the row itself is always the
+ header of the open card and no name is ever repeated inside it (D455).
+*/
export function ProjectArchiveIndex({
groups,
selectedPath,
@@ -74,7 +68,7 @@ export function ProjectArchiveIndex({
<div className="projects-group-rows" role="list">
{group.rows.map((project) => {
const selected = selectedPath === project.path;
- const status = rowStatus({
+ const status = projectStatus({
project,
workspacePath,
openProjectPaths,
@@ -86,7 +80,6 @@ export function ProjectArchiveIndex({
key={project.path}
id={projectRowId(project.path)}
role="listitem"
- aria-selected={selected}
className={cx(
"projects-row-block",
selected && "selected",
@@ -114,22 +107,26 @@ export function ProjectArchiveIndex({
<span className="projects-name-copy">
<span className="projects-name-title">
<span className="projects-name-text">{project.name}</span>
- {status === "active" ? (
- <span className="projects-tag is-active">{t("project.active")}</span>
- ) : status === "open" ? (
- <span className="projects-tag">{t("project.openTag")}</span>
- ) : status === "archived" ? (
- <span className="projects-tag is-archived">{t("project.archivedTag")}</span>
+ {status ? (
+ <span className={cx("projects-tag", status !== "open" && `is-${status}`)}>
+ {t(PROJECT_STATUS_LABEL_KEYS[status])}
+ </span>
) : null}
</span>
- <span className="projects-name-meta">
- <span className="projects-name-sessions">
- {t("project.sessionsCount", { count: totalSessions })}
- </span>
+ <span className="projects-name-path">
+ {shortenPath(project.path)}
+ </span>
+ </span>
+ <span className="projects-row-meta">
+ <span className="projects-name-sessions">
+ {t("project.sessionsCount", { count: totalSessions })}
+ </span>
+ <span className="projects-updated">
+ {formatUpdated(project.openedAt, locale, t("project.updatedNever"))}
</span>
</span>
- <span className="projects-updated">
- {formatUpdated(project.openedAt, locale, t("project.updatedNever"))}
+ <span className="projects-row-disclosure" aria-hidden>
+ <IconChevronRight size={14} />
</span>
</button>
{selected && detail ? (
diff --git a/apps/desktop/src/features/projects/ProjectDetailPanel.tsx b/apps/desktop/src/features/projects/ProjectDetailPanel.tsx
new file mode 100644
index 000000000..111074c7e
--- /dev/null
+++ b/apps/desktop/src/features/projects/ProjectDetailPanel.tsx
@@ -0,0 +1,159 @@
+import { type ReactNode } from "react";
+import { useTranslation } from "react-i18next";
+import { Button, TooltipButton } from "../../components/ui";
+import { IconBranch, IconChat, IconFolder, IconPencil, IconPlus } from "../../components/icons";
+import {
+ formatUpdated,
+ sessionTimestamp,
+ shortenPath,
+ type ProjectIndexItem,
+ type SessionIndexRecord,
+} from "../../lib/project-archive";
+
+/*
+ The detail half of the selected project card. The selected row above already
+ carries the name, the status tag, and the path, so this panel never repeats
+ them: it opens with the action bar, then the read-only facts (folders and
+ branch), then the sessions section. Actions arrive as a node because the
+ anchored menu is owned by the page that holds the project state.
+*/
+export function ProjectDetailPanel({
+ project,
+ sessions,
+ displayedCount,
+ hiddenCount,
+ initialCount,
+ locale,
+ actions,
+ onOpenSession,
+ onNewTask,
+ onRenameSession,
+ onShowMore,
+ onShowLess,
+}: {
+ project: ProjectIndexItem;
+ /** Already sliced to the visible batch. */
+ sessions: readonly SessionIndexRecord[];
+ /** Rows the session list is allowed to render (matches the section label). */
+ displayedCount: number;
+ hiddenCount: number;
+ initialCount: number;
+ locale?: string;
+ actions?: ReactNode;
+ onOpenSession: (sessionId: string) => void;
+ onNewTask: () => void;
+ onRenameSession: (session: SessionIndexRecord) => void;
+ onShowMore: () => void;
+ onShowLess: () => void;
+}) {
+ const { t } = useTranslation();
+ return (
+ <>
+ <div className="projects-detail-bar">
+ <Button
+ size="sm"
+ variant="ghost"
+ className="projects-detail-new"
+ onClick={onNewTask}
+ >
+ <IconPlus size={13} />
+ {t("project.newTask")}
+ </Button>
+ {actions}
+ </div>
+
+ <div className="projects-detail-facts">
+ <div
+ className="projects-detail-roots"
+ role="group"
+ aria-label={t("project.foldersLabel")}
+ >
+ {project.roots.map((root) => (
+ <span className="projects-detail-root" key={root.path} title={root.path}>
+ <IconFolder size={12} aria-hidden />
+ <span>{shortenPath(root.path)}</span>
+ </span>
+ ))}
+ </div>
+ {project.branch ? (
+ <span className="projects-detail-root is-branch" title={project.branch}>
+ <IconBranch size={12} aria-hidden />
+ <span>{project.branch}</span>
+ </span>
+ ) : null}
+ </div>
+
+ <div className="projects-detail-header">
+ <div className="projects-detail-label">
+ {t("project.sessionsCount", { count: displayedCount })}
+ </div>
+ </div>
+
+ {displayedCount === 0 ? (
+ <div className="projects-detail-empty">{t("project.noSessions")}</div>
+ ) : (
+ <div className="projects-detail-tasks">
+ {sessions.map((session) => {
+ const title = session.title || session.id;
+ return (
+ <div
+ key={session.id}
+ className="projects-detail-task-row"
+ onContextMenu={(event) => {
+ event.preventDefault();
+ onRenameSession(session);
+ }}
+ >
+ <button
+ type="button"
+ className="projects-detail-task"
+ onClick={() => onOpenSession(session.id)}
+ title={title}
+ >
+ <IconChat size={13} className="projects-detail-task-icon" />
+ <span className="projects-detail-task-title">{title}</span>
+ <span className="projects-detail-task-updated">
+ {formatUpdated(
+ sessionTimestamp(session.updatedAt),
+ locale,
+ t("project.updatedNever"),
+ )}
+ </span>
+ </button>
+ <TooltipButton
+ type="button"
+ className="projects-detail-task-rename"
+ tooltip={t("session.renameAction", { title })}
+ ariaLabel={t("session.renameAction", { title })}
+ onClick={() => onRenameSession(session)}
+ >
+ <IconPencil size={13} aria-hidden />
+ </TooltipButton>
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {hiddenCount > 0 ? (
+ <Button
+ size="sm"
+ variant="ghost"
+ className="projects-detail-more"
+ onClick={onShowMore}
+ >
+ {t("project.showMoreSessions", { count: hiddenCount })}
+ </Button>
+ ) : displayedCount > initialCount ? (
+ <Button
+ size="sm"
+ variant="ghost"
+ className="projects-detail-more"
+ onClick={onShowLess}
+ >
+ {t("project.showFewerSessions")}
+ </Button>
+ ) : null}
+ </>
+ );
+}
diff --git a/apps/desktop/src/lib/project-archive.ts b/apps/desktop/src/lib/project-archive.ts
index 042afb802..3666e889b 100644
--- a/apps/desktop/src/lib/project-archive.ts
+++ b/apps/desktop/src/lib/project-archive.ts
@@ -135,6 +135,39 @@ export function projectBucket(project: ProjectIndexItem): GroupId {
return "projects";
}
+/**
+ * Row state of one project. Archived outranks both live states so a record can
+ * never read as "active" while it sits in the Archived group, and the live
+ * workspace outranks a merely retained project. `null` is a plain project.
+ */
+export type ProjectStatus = "active" | "open" | "archived";
+
+export const PROJECT_STATUS_LABEL_KEYS: Record<ProjectStatus, string> = {
+ active: "project.active",
+ open: "project.openTag",
+ archived: "project.archivedTag",
+};
+
+export function projectStatus(args: {
+ project: Pick<ProjectIndexItem, "path" | "archived">;
+ workspacePath?: string | null;
+ openProjectPaths: readonly string[];
+}): ProjectStatus | null {
+ const { project, workspacePath, openProjectPaths } = args;
+ if (project.archived === true) return "archived";
+ if (normalizeProjectPath(workspacePath) === normalizeProjectPath(project.path)) {
+ return "active";
+ }
+ if (
+ openProjectPaths.some(
+ (path) => normalizeProjectPath(path) === normalizeProjectPath(project.path),
+ )
+ ) {
+ return "open";
+ }
+ return null;
+}
+
export function compareProjects(
a: ProjectIndexItem,
b: ProjectIndexItem,
diff --git a/apps/desktop/src/pages/ProjectsPage.tsx b/apps/desktop/src/pages/ProjectsPage.tsx
index f208e8034..4b861c007 100644
--- a/apps/desktop/src/pages/ProjectsPage.tsx
+++ b/apps/desktop/src/pages/ProjectsPage.tsx
@@ -10,7 +10,6 @@ import {
IconArchiveRestore,
IconChat,
IconFileText,
- IconFolder,
IconMore,
IconPencil,
IconPin,
@@ -36,18 +35,16 @@ import {
countProjectSessions,
displayedProjectSessions,
filterArchiveItems,
- formatUpdated,
groupArchiveRows,
neighborPath,
resolveSelectedPath,
sessionMatchesIndexProject,
- sessionTimestamp,
- shortenPath,
type ProjectIndexItem,
type SessionIndexRecord,
type SortMode,
} from "../lib/project-archive";
-import { ProjectArchiveIndex } from "../features/projects/ProjectArchiveIndex";
+import { ProjectArchiveIndex, projectRowId } from "../features/projects/ProjectArchiveIndex";
+import { ProjectDetailPanel } from "../features/projects/ProjectDetailPanel";
export function ProjectsPage() {
const { t, i18n } = useTranslation();
@@ -68,11 +65,14 @@ export function ProjectsPage() {
const setPage = useAppStore((s) => s.setPage);
const setSettingsTab = useAppStore((s) => s.setSettingsTab);
const renameSession = useAppStore((s) => s.renameSession);
- const showToast = useAppStore((s) => s.showToast);
const sessions = useAppStore((s) => s.sessions);
const runningSessions = useAppStore((s) => s.runningSessions);
+ const showToast = useAppStore((s) => s.showToast);
const [recents, setRecents] = useState<RecentProject[]>(() => loadRecentProjects());
const [durableProjects, setDurableProjects] = useState<ProjectGroupRecord[]>([]);
+ // The host listing is the slow half of the index; until it settles an empty
+ // index means "not loaded yet" rather than "no projects".
+ const [loadingProjects, setLoadingProjects] = useState(true);
const [query, setQuery] = useState("");
const [sort, setSort] = useState<SortMode>("recent");
const [selectedPath, setSelectedPath] = useState<string | null>(null);
@@ -119,6 +119,9 @@ export function ProjectsPage() {
})
.catch(() => {
// Session-derived entries below keep the index useful if host listing fails.
+ })
+ .finally(() => {
+ if (!canceled) setLoadingProjects(false);
});
return () => {
canceled = true;
@@ -154,6 +157,13 @@ export function ProjectsPage() {
[filtered, items, locale, sessions, sort],
);
+ // The order the user sees: section order with each section's active sort
+ // already applied, which is what the arrow keys must follow.
+ const renderedRows = useMemo(
+ () => groups.flatMap((group) => group.rows),
+ [groups],
+ );
+
useEffect(() => {
const next = resolveSelectedPath({
selectedPath,
@@ -332,11 +342,34 @@ export function ProjectsPage() {
(path) => normalizeProjectPath(path) === normalizeProjectPath(project.path),
);
const selectedArchived = project?.archived === true;
+
+ /*
+ The index is one selectable list, so the arrow keys walk it and Enter takes
+ the chat path. Selection moves real focus with it, otherwise the next arrow
+ key would keep firing from wherever the user last clicked.
+
+ Two bounds keep the handler from stealing its own children's keys. It walks
+ the rows in rendered order — the section order and the active sort, not the
+ index build order — and it stays out of the open card entirely, so Enter on
+ a session row or the overflow trigger stays that control's own action
+ instead of being answered as "activate this project".
+ */
const onIndexKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {
+ if ((event.target as HTMLElement).closest(".projects-inspector")) return;
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
event.preventDefault();
- const next = neighborPath(filtered, selectedPath, event.key === "ArrowDown" ? 1 : -1);
- if (next) setSelectedPath(next);
+ const next = neighborPath(
+ renderedRows,
+ selectedPath,
+ event.key === "ArrowDown" ? 1 : -1,
+ );
+ if (!next || next === selectedPath) return;
+ setSelectedPath(next);
+ setMenuFor(null);
+ document
+ .getElementById(projectRowId(next))
+ ?.querySelector<HTMLButtonElement>(".projects-row")
+ ?.focus();
return;
}
if (event.key === "Enter" && selectedPath) {
@@ -374,7 +407,7 @@ export function ProjectsPage() {
))}
</div>
<div className="projects-search-wrap">
- <IconSearch size={13} aria-hidden="true" />
+ <IconSearch size={14} aria-hidden="true" />
<input
ref={searchRef}
className="projects-search"
@@ -426,15 +459,26 @@ export function ProjectsPage() {
{groups.length === 0 ? (
<div className="settings-panel projects-empty">
<span className="projects-empty-icon" aria-hidden>
- <IconArchive size={18} />
+ {items.length === 0 && loadingProjects ? (
+ <span className="route-pending-indicator" />
+ ) : (
+ <IconArchive size={18} />
+ )}
</span>
<div className="projects-empty-title">
- {items.length === 0 ? t("project.noProjects") : t("project.noSearchResults")}
+ {items.length === 0 && loadingProjects
+ ? t("common.loading")
+ : items.length === 0
+ ? t("project.noProjects")
+ : t("project.noSearchResults")}
</div>
+ {/* A pending host listing must not silence the hint for the one
+ case that still has rows to talk about: a query that matched
+ nothing. */}
{items.length === 0 ? null : (
<div className="projects-empty-body">{t("project.noSearchResultsBody")}</div>
)}
- {items.length === 0 ? (
+ {items.length === 0 && loadingProjects ? null : items.length === 0 ? (
<Button variant="primary" onClick={addProject}>
<IconPlus size={14} />
{t("project.add")}
@@ -446,305 +490,205 @@ export function ProjectsPage() {
)}
</div>
) : (
- <div
- className="projects-workbench"
- tabIndex={0}
- onKeyDown={onIndexKeyDown}
- >
+ <div className="projects-workbench" tabIndex={0} onKeyDown={onIndexKeyDown}>
<ProjectArchiveIndex
- groups={groups}
- selectedPath={selectedPath}
- workspacePath={workspace?.path}
- openProjectPaths={openProjectPaths}
- locale={locale}
- sessionCounts={sessionCounts}
- onSelect={(path) => {
- setSelectedPath(path);
- setMenuFor(null);
- }}
- onActivate={(path) => void activate(path)}
- detail={
- project ? (
- <>
- <div className="projects-inspector-head">
- <div className="projects-inspector-meta">
- <span className="projects-name-path" title={project.path}>
- {shortenPath(project.path)}
- </span>
- {project.branch ? (
- <>
- <span className="projects-meta-dot" aria-hidden>
- ·
- </span>
- <span className="projects-name-branch">{project.branch}</span>
- </>
- ) : null}
- </div>
- <div className="projects-inspector-actions">
- {selectedActive ? null : (
- <Button size="sm" variant="primary" onClick={() => void activate(project.path)}>
- {t("project.open")}
- </Button>
- )}
- <TooltipButton
- type="button"
- className="projects-icon-btn"
- tooltip={t("project.newTask")}
- ariaLabel={t("project.newTask")}
- onClick={() => void startTask(project.path)}
- >
- <IconPlus size={15} />
- </TooltipButton>
- <AnchoredMenu
- className="projects-menu-wrap"
- open={menuOpen}
- onClose={() => setMenuFor(null)}
- menuClassName="projects-menu"
- label={t("project.openActions", { name: project.name })}
- role="menu"
- align="end"
- trigger={(ref) => (
- <TooltipButton
- ref={ref}
- type="button"
- className="projects-icon-btn"
- tooltip={t("project.openActions", { name: project.name })}
- ariaLabel={t("project.openActions", { name: project.name })}
- aria-haspopup="menu"
- aria-expanded={menuOpen}
- onClick={() =>
- setMenuFor((cur) => (cur === project.path ? null : project.path))
- }
+ groups={groups}
+ selectedPath={selectedPath}
+ workspacePath={workspace?.path}
+ openProjectPaths={openProjectPaths}
+ locale={locale}
+ sessionCounts={sessionCounts}
+ onSelect={(path) => {
+ setSelectedPath(path);
+ setMenuFor(null);
+ }}
+ onActivate={(path) => void activate(path)}
+ detail={
+ project ? (
+ <ProjectDetailPanel
+ project={project}
+ sessions={visibleSessions}
+ displayedCount={displayedSessions.length}
+ hiddenCount={hiddenSessionCount}
+ initialCount={INITIAL_VISIBLE_SESSION_COUNT}
+ locale={locale}
+ onOpenSession={(sessionId) =>
+ void openProjectSession(project.path, sessionId)
+ }
+ onNewTask={() => void startTask(project.path)}
+ onRenameSession={setRenameFor}
+ onShowMore={() =>
+ setVisibleSessionCounts((prev) => ({
+ ...prev,
+ [project.path]: visibleCount + INITIAL_VISIBLE_SESSION_COUNT,
+ }))
+ }
+ onShowLess={() =>
+ setVisibleSessionCounts((prev) => ({
+ ...prev,
+ [project.path]: INITIAL_VISIBLE_SESSION_COUNT,
+ }))
+ }
+ actions={
+ <>
+ {selectedActive ? null : (
+ <Button
+ size="sm"
+ variant="primary"
+ onClick={() => void activate(project.path)}
>
- <IconMore size={16} />
- </TooltipButton>
+ {t("project.open")}
+ </Button>
)}
- >
- <button
- type="button"
- role="menuitem"
- onClick={() => {
- setMenuFor(null);
- void startTask(project.path);
- }}
- >
- <IconChat size={14} />
- {t("project.newTask")}
- </button>
- <button
- type="button"
- role="menuitem"
- onClick={() => {
- setMenuFor(null);
- setInstructionsFor({
- name: project.name,
- path: project.path,
- groupId: project.groupId,
- legacy: project.legacy,
- });
- }}
- >
- <IconFileText size={14} />
- {t("project.editInstructions")}
- </button>
- <button
- type="button"
- role="menuitem"
- onClick={() => {
- setMenuFor(null);
- setMemoryFor({
- name: project.name,
- path: project.path,
- groupId: project.groupId,
- legacy: project.legacy,
- });
- }}
- >
- <IconSparkles size={14} />
- {t("project.editMemory")}
- </button>
- <button
- type="button"
- role="menuitem"
- data-action="edit-project"
- onClick={() => {
- setMenuFor(null);
- setEditProjectFor({
- path: project.path,
- name: project.name,
- groupId: project.groupId,
- roots: project.roots,
- legacy: project.legacy,
- });
- }}
- >
- <IconPencil size={14} />
- {t("project.edit", { defaultValue: "Edit project" })}
- </button>
- <div className="projects-menu-sep" role="separator" />
- <button
- type="button"
- role="menuitem"
- onClick={() => {
- toggleProjectPinned(project.path, !project.pinned);
- setMenuFor(null);
- }}
- >
- <IconPin size={14} />
- {project.pinned ? t("project.unpin") : t("project.pin")}
- </button>
- <button
- type="button"
- role="menuitem"
- onClick={() => void toggleProjectArchive(project)}
- >
- {selectedArchived ? (
- <IconArchiveRestore size={14} />
- ) : (
- <IconArchive size={14} />
- )}
- {selectedArchived ? t("project.restore") : t("project.archive")}
- </button>
- <button
- type="button"
- role="menuitem"
- className={cx(
- "danger",
- armedDelete === projectDeleteKey(project.path) && "is-armed",
+ <AnchoredMenu
+ className="projects-menu-wrap"
+ open={menuOpen}
+ onClose={() => setMenuFor(null)}
+ menuClassName="projects-menu"
+ label={t("project.openActions", { name: project.name })}
+ role="menu"
+ align="end"
+ trigger={(ref) => (
+ <TooltipButton
+ ref={ref}
+ type="button"
+ className="projects-icon-btn"
+ tooltip={t("project.openActions", { name: project.name })}
+ ariaLabel={t("project.openActions", { name: project.name })}
+ aria-haspopup="menu"
+ aria-expanded={menuOpen}
+ onClick={() =>
+ setMenuFor((cur) => (cur === project.path ? null : project.path))
+ }
+ >
+ <IconMore size={16} />
+ </TooltipButton>
)}
- data-action="delete-project"
- data-armed={
- armedDelete === projectDeleteKey(project.path) ? "true" : undefined
- }
- onClick={() => void requestDeleteProject(project, totalSessions)}
>
- <IconTrash size={14} />
- {armedDelete === projectDeleteKey(project.path)
- ? t("project.deleteMenuConfirm")
- : t("project.delete")}
- </button>
- {selectedRetained ? (
<button
type="button"
role="menuitem"
- className="danger"
onClick={() => {
setMenuFor(null);
- void closeProjectFromIndex(project.path);
+ void startTask(project.path);
}}
>
- <IconX size={14} />
- {t("project.close")}
+ <IconChat size={14} />
+ {t("project.newTask")}
</button>
- ) : null}
- </AnchoredMenu>
- </div>
- </div>
-
- <div
- className="projects-detail-roots"
- aria-label={t("project.foldersLabel", { defaultValue: "Project folders" })}
- >
- {project.roots.map((root) => (
- <span className="projects-detail-root" key={root.path} title={root.path}>
- <IconFolder size={12} aria-hidden />
- <span>{shortenPath(root.path)}</span>
- </span>
- ))}
- </div>
-
- <div className="projects-detail-header">
- <div className="projects-detail-label">
- {t("project.sessionsCount", { count: displayedSessions.length })}
- </div>
- <Button
- size="sm"
- variant="ghost"
- className="projects-detail-new"
- onClick={() => void startTask(project.path)}
- >
- <IconPlus size={13} />
- {t("project.newTask")}
- </Button>
- </div>
- {displayedSessions.length === 0 ? (
- <div className="projects-detail-empty">{t("project.noSessions")}</div>
- ) : (
- <div className="projects-detail-tasks">
- {visibleSessions.map((s) => {
- const title = s.title || s.id;
- return (
- <div
- key={s.id}
- className="projects-detail-task-row"
- onContextMenu={(event) => {
- event.preventDefault();
- setRenameFor(s);
+ <button
+ type="button"
+ role="menuitem"
+ onClick={() => {
+ setMenuFor(null);
+ setInstructionsFor({
+ name: project.name,
+ path: project.path,
+ groupId: project.groupId,
+ legacy: project.legacy,
+ });
+ }}
+ >
+ <IconFileText size={14} />
+ {t("project.editInstructions")}
+ </button>
+ <button
+ type="button"
+ role="menuitem"
+ onClick={() => {
+ setMenuFor(null);
+ setMemoryFor({
+ name: project.name,
+ path: project.path,
+ groupId: project.groupId,
+ legacy: project.legacy,
+ });
+ }}
+ >
+ <IconSparkles size={14} />
+ {t("project.editMemory")}
+ </button>
+ <button
+ type="button"
+ role="menuitem"
+ data-action="edit-project"
+ onClick={() => {
+ setMenuFor(null);
+ setEditProjectFor({
+ path: project.path,
+ name: project.name,
+ groupId: project.groupId,
+ roots: project.roots,
+ legacy: project.legacy,
+ });
+ }}
+ >
+ <IconPencil size={14} />
+ {t("project.edit", { defaultValue: "Edit project" })}
+ </button>
+ <div className="projects-menu-sep" role="separator" />
+ <button
+ type="button"
+ role="menuitem"
+ onClick={() => {
+ toggleProjectPinned(project.path, !project.pinned);
+ setMenuFor(null);
}}
>
+ <IconPin size={14} />
+ {project.pinned ? t("project.unpin") : t("project.pin")}
+ </button>
+ <button
+ type="button"
+ role="menuitem"
+ onClick={() => void toggleProjectArchive(project)}
+ >
+ {selectedArchived ? (
+ <IconArchiveRestore size={14} />
+ ) : (
+ <IconArchive size={14} />
+ )}
+ {selectedArchived ? t("project.restore") : t("project.archive")}
+ </button>
+ <button
+ type="button"
+ role="menuitem"
+ className={cx(
+ "danger",
+ armedDelete === projectDeleteKey(project.path) && "is-armed",
+ )}
+ data-action="delete-project"
+ data-armed={
+ armedDelete === projectDeleteKey(project.path) ? "true" : undefined
+ }
+ onClick={() => void requestDeleteProject(project, totalSessions)}
+ >
+ <IconTrash size={14} />
+ {armedDelete === projectDeleteKey(project.path)
+ ? t("project.deleteMenuConfirm")
+ : t("project.delete")}
+ </button>
+ {selectedRetained ? (
<button
type="button"
- className="projects-detail-task"
- onClick={() => void openProjectSession(project.path, s.id)}
- title={title}
+ role="menuitem"
+ className="danger"
+ onClick={() => {
+ setMenuFor(null);
+ void closeProjectFromIndex(project.path);
+ }}
>
- <IconChat size={13} className="projects-detail-task-icon" />
- <span className="projects-detail-task-title">{title}</span>
- <span className="projects-detail-task-updated">
- {formatUpdated(
- sessionTimestamp(s.updatedAt),
- locale,
- t("project.updatedNever"),
- )}
- </span>
+ <IconX size={14} />
+ {t("project.close")}
</button>
- <TooltipButton
- type="button"
- className="projects-detail-task-rename"
- tooltip={t("session.renameAction", { title })}
- ariaLabel={t("session.renameAction", { title })}
- onClick={() => setRenameFor(s)}
- >
- <IconPencil size={13} aria-hidden />
- </TooltipButton>
- </div>
- );
- })}
- </div>
- )}
- {hiddenSessionCount > 0 ? (
- <Button
- size="sm"
- variant="ghost"
- className="projects-detail-more"
- onClick={() =>
- setVisibleSessionCounts((prev) => ({
- ...prev,
- [project.path]: visibleCount + INITIAL_VISIBLE_SESSION_COUNT,
- }))
- }
- >
- {t("project.showMoreSessions", { count: hiddenSessionCount })}
- </Button>
- ) : displayedSessions.length > INITIAL_VISIBLE_SESSION_COUNT ? (
- <Button
- size="sm"
- variant="ghost"
- className="projects-detail-more"
- onClick={() =>
- setVisibleSessionCounts((prev) => ({
- ...prev,
- [project.path]: INITIAL_VISIBLE_SESSION_COUNT,
- }))
- }
- >
- {t("project.showFewerSessions")}
- </Button>
- ) : null}
- </>
- ) : null
- }
- />
+ ) : null}
+ </AnchoredMenu>
+ </>
+ }
+ />
+ ) : null
+ }
+ />
</div>
)}
{instructionsFor ? (
diff --git a/apps/desktop/src/styles/projects.css b/apps/desktop/src/styles/projects.css
index f5e6430a1..5c87d8601 100644
--- a/apps/desktop/src/styles/projects.css
+++ b/apps/desktop/src/styles/projects.css
@@ -1,8 +1,12 @@
/*
Settings → Project archive — one quiet description line, one toolbar (sort,
- 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).
+ search, add project), and a one-column workbench (D455).
+
+ The workbench is an iOS-style inset grouped index: a quiet section label, then
+ rows 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.
+ Separators are spacing, never rules — tiles carry the structure (D297).
*/
/* ---------- Settings → Project archive ---------- */
@@ -64,6 +68,7 @@
}
.projects-result-count {
+ flex: 0 0 auto;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
font-variant-numeric: tabular-nums;
@@ -108,14 +113,14 @@
/*
One search field for the whole index. The fill lives on the wrapper because
the clear button sits inside it, matching `.agent-capability-search-wrap`.
- Filled at rest, accent ring only while focused (D297).
+ Filled at rest, accent ring only while focused (D297/D297 search language).
*/
.projects-search-wrap {
display: inline-flex;
height: var(--projects-control-height);
min-width: 0;
- flex: 1 1 180px;
- max-width: 320px;
+ flex: 1 1 200px;
+ max-width: 380px;
align-items: center;
gap: 6px;
border-radius: var(--radius-full);
@@ -180,14 +185,14 @@
color: var(--ds-text-primary);
}
-/* Group label above its rows: Pinned, Projects, Archived — and how many. It
- is a bare label, not a banded strip (D297). */
+/* Section label above its rows: Pinned, All projects, Archived — and how many.
+ One quiet label line, never a tinted band (D297). */
.projects-group-head {
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
- padding: 0 4px 8px;
+ padding: 0 4px 6px;
}
.projects-group-label {
@@ -235,9 +240,6 @@
min-width: 0;
flex-direction: column;
gap: 16px;
-}
-
-.projects-index {
outline: none;
}
@@ -252,6 +254,8 @@
gap: 4px;
}
+/* One project is one tile; selecting it grows the tile into the card that
+ carries its detail below the row. */
.projects-row-block {
position: relative;
border-radius: var(--radius-md-plus);
@@ -292,7 +296,7 @@
align-items: center;
gap: 10px;
min-width: 0;
- padding: 8px 12px;
+ padding: 7px 10px 7px 12px;
text-align: left;
border-radius: var(--radius-md-plus);
cursor: pointer;
@@ -330,17 +334,16 @@
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
- color: #fff;
+ color: var(--gray-0);
flex: 0 0 auto;
}
-
.projects-name-copy {
min-width: 0;
display: flex;
flex: 1;
flex-direction: column;
- gap: 2px;
+ gap: 1px;
}
.projects-name-title {
@@ -361,33 +364,61 @@
white-space: nowrap;
}
-.projects-name-meta {
- display: flex;
- align-items: center;
- gap: 5px;
+/* The path is the row's second line: it is what disambiguates two projects with
+ the same display name, so it is readable without selecting the row. */
+.projects-name-path {
min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
color: var(--ds-text-muted);
+ font-family: var(--font-mono);
font-size: var(--text-xs-plus);
line-height: var(--leading-normal);
}
-.projects-name-path {
+/* Trailing detail column, mirrored against the identity column. */
+.projects-row-meta {
+ display: flex;
min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
+ flex: 0 0 auto;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 1px;
+ margin-left: 4px;
+}
+
+.projects-name-sessions,
+.projects-updated {
white-space: nowrap;
- font-family: var(--font-mono);
+ font-size: var(--text-xs-plus);
+ line-height: var(--leading-normal);
+ font-variant-numeric: tabular-nums;
}
-.projects-name-branch,
.projects-name-sessions {
- flex: 0 0 auto;
- white-space: nowrap;
+ color: var(--ds-text-muted);
+}
+
+.projects-updated {
+ color: var(--ds-text-faint);
}
-.projects-meta-dot {
+/* Disclosure indicator: points at the row, turns down once its detail is open. */
+.projects-row-disclosure {
+ display: inline-flex;
+ width: 18px;
+ height: 18px;
flex: 0 0 auto;
+ align-items: center;
+ justify-content: center;
color: var(--ds-text-faint);
+ transition: transform var(--motion-duration-fast) var(--motion-ease-out);
+}
+
+.projects-row-block.selected .projects-row-disclosure {
+ transform: rotate(90deg);
+ color: var(--ds-text-muted);
}
.projects-tag {
@@ -409,92 +440,30 @@
color: var(--ds-accent);
}
-.projects-tag.is-pin {
- padding: 2px;
- color: var(--ds-text-muted);
-}
-
.projects-tag.is-archived {
background: var(--ds-tile-deep);
color: var(--ds-text-muted);
}
-.projects-updated {
- flex: 0 0 auto;
- margin-left: auto;
- padding-left: 8px;
- color: var(--ds-text-muted);
- font-size: var(--text-sm);
- font-variant-numeric: tabular-nums;
- text-align: right;
- white-space: nowrap;
-}
+/* ---------- Selected project card ---------- */
+/*
+ The detail panel is inset to the row's text column, so its sections read as
+ children of the project above them rather than as a second surface.
+*/
.projects-inspector {
display: flex;
min-width: 0;
flex-direction: column;
- gap: 10px;
- padding: 0 14px 14px 50px;
-}
-
-.projects-inspector-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- min-width: 0;
-}
-
-.projects-inspector-meta {
- display: flex;
- min-width: 0;
- flex: 1;
- align-items: center;
- gap: 5px;
- color: var(--ds-text-muted);
- font-size: var(--text-xs-plus);
-}
-
-.projects-inspector-actions {
- display: flex;
- flex: 0 0 auto;
- align-items: center;
- gap: 4px;
-}
-
-.projects-menu-wrap {
- position: relative;
-}
-
-.projects-menu {
- position: fixed;
- top: 0;
- left: 0;
- right: auto;
- bottom: auto;
- z-index: 20;
- min-width: 196px;
- border-radius: var(--radius-md-plus);
- background: var(--ds-bg-elevated-opaque, var(--ds-bg-primary));
- box-shadow: 0 0 0 0.5px var(--ds-border-default), 0 12px 32px rgba(0, 0, 0, 0.2);
- padding: 5px;
- opacity: 0;
- pointer-events: none;
- visibility: hidden;
-}
-
-.projects-menu.is-open {
- opacity: 1;
- pointer-events: auto;
- visibility: visible;
- animation: projects-menu-in var(--motion-duration-fast) var(--motion-ease-out) both;
+ gap: 8px;
+ padding: 0 14px 12px 50px;
+ animation: projects-detail-in var(--motion-duration-fast) var(--motion-ease-out);
}
-@keyframes projects-menu-in {
+@keyframes projects-detail-in {
from {
opacity: 0;
- transform: translateY(-4px);
+ transform: translateY(-3px);
}
to {
opacity: 1;
@@ -502,58 +471,29 @@
}
}
-@media (prefers-reduced-motion: reduce) {
- .projects-menu.is-open {
- animation: none;
- }
-}
-
-.projects-menu button {
+/* Actions sit on one quiet bar above the read-only facts. */
+.projects-detail-bar {
display: flex;
- width: 100%;
align-items: center;
- gap: 9px;
- text-align: left;
- border-radius: var(--radius-2xs);
- padding: 7px 10px;
- color: var(--ds-text-primary);
- font-size: var(--text-sm-plus);
- cursor: pointer;
- transition: background var(--motion-duration-fast) var(--motion-ease-out);
-}
-
-.projects-menu button > svg {
- color: var(--ds-text-muted);
- flex: 0 0 auto;
-}
-
-.projects-menu button:hover {
- background: var(--ds-bg-hover);
-}
-
-.projects-menu button.danger,
-.projects-menu button.danger > svg {
- color: var(--ds-error);
-}
-
-.projects-menu button.danger:hover {
- background: color-mix(in oklab, var(--ds-error) 12%, transparent);
-}
-
-/* An armed delete item names its second click, so the swap stays obvious. */
-.projects-menu button.danger.is-armed {
- background: color-mix(in oklab, var(--ds-error) 14%, transparent);
+ justify-content: flex-end;
+ gap: 4px;
+ min-height: 26px;
+ min-width: 0;
}
-/* Menu sections are separated by space, not a rule (D297). */
-.projects-menu-sep {
- height: 6px;
+.projects-detail-facts {
+ display: flex;
+ min-width: 0;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 4px 12px;
}
.projects-detail-roots {
display: flex;
+ min-width: 0;
flex-wrap: wrap;
- gap: 6px 12px;
+ gap: 4px 12px;
}
.projects-detail-root {
@@ -565,6 +505,10 @@
font-size: var(--text-xs);
}
+.projects-detail-root.is-branch {
+ font-family: var(--font-mono);
+}
+
.projects-detail-root span {
overflow: hidden;
text-overflow: ellipsis;
@@ -576,14 +520,14 @@
align-items: center;
justify-content: space-between;
gap: 12px;
- min-height: 26px;
- margin-top: 4px;
+ min-height: 20px;
+ margin-top: 2px;
}
.projects-detail-label {
color: var(--ds-text-muted);
- font-size: var(--text-xs);
- font-weight: var(--font-weight-medium);
+ font-size: var(--text-2xs);
+ font-weight: var(--font-weight-strong);
letter-spacing: var(--tracking-wide);
text-transform: uppercase;
}
@@ -594,11 +538,12 @@
}
.projects-detail-more {
- margin-top: 4px;
+ align-self: flex-start;
+ margin-top: 2px;
}
.projects-detail-empty {
- padding: 4px 2px 6px;
+ padding: 2px 2px 4px;
color: var(--ds-text-muted);
font-size: var(--text-sm-plus);
}
@@ -625,7 +570,7 @@
gap: 9px;
text-align: left;
border-radius: var(--radius-2xs);
- padding: 7px 8px;
+ padding: 6px 8px;
color: var(--ds-text-secondary);
font-size: var(--text-sm-plus);
cursor: pointer;
@@ -650,7 +595,7 @@
flex: 0 0 auto;
margin-left: auto;
padding-left: 10px;
- color: var(--ds-text-muted);
+ color: var(--ds-text-faint);
font-size: var(--text-xs-plus);
font-variant-numeric: tabular-nums;
white-space: nowrap;
@@ -665,6 +610,11 @@
color: var(--ds-text-muted);
}
+.projects-detail-task:focus-visible {
+ outline: none;
+ box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ds-accent) 70%, transparent);
+}
+
.projects-detail-task-rename {
display: inline-flex;
width: 26px;
@@ -693,6 +643,89 @@
color: var(--ds-text-primary);
}
+/* ---------- Index menu ---------- */
+
+.projects-menu-wrap {
+ position: relative;
+}
+
+.projects-menu {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: auto;
+ bottom: auto;
+ z-index: 20;
+ min-width: 196px;
+ border-radius: var(--radius-md-plus);
+ background: var(--ds-bg-elevated-opaque, var(--ds-bg-primary));
+ box-shadow: 0 0 0 0.5px var(--ds-border-default), 0 12px 32px rgba(0, 0, 0, 0.2);
+ padding: 5px;
+ opacity: 0;
+ pointer-events: none;
+ visibility: hidden;
+}
+
+.projects-menu.is-open {
+ opacity: 1;
+ pointer-events: auto;
+ visibility: visible;
+ animation: projects-menu-in var(--motion-duration-fast) var(--motion-ease-out) both;
+}
+
+@keyframes projects-menu-in {
+ from {
+ opacity: 0;
+ transform: translateY(-4px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.projects-menu button {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ gap: 9px;
+ text-align: left;
+ border-radius: var(--radius-2xs);
+ padding: 7px 10px;
+ color: var(--ds-text-primary);
+ font-size: var(--text-sm-plus);
+ cursor: pointer;
+ transition: background var(--motion-duration-fast) var(--motion-ease-out);
+}
+
+.projects-menu button > svg {
+ color: var(--ds-text-muted);
+ flex: 0 0 auto;
+}
+
+.projects-menu button:hover {
+ background: var(--ds-bg-hover);
+}
+
+.projects-menu button.danger,
+.projects-menu button.danger > svg {
+ color: var(--ds-error);
+}
+
+.projects-menu button.danger:hover {
+ background: color-mix(in oklab, var(--ds-error) 12%, transparent);
+}
+
+/* An armed delete item names its second click, so the swap stays obvious. */
+.projects-menu button.danger.is-armed {
+ background: color-mix(in oklab, var(--ds-error) 14%, transparent);
+}
+
+/* Menu sections are separated by space, not a rule (D297). */
+.projects-menu-sep {
+ height: 6px;
+}
+
/* Quiet in-panel empty state: centered glyph + copy, no decorative frame. */
.projects-empty {
display: flex;
@@ -736,7 +769,7 @@
margin-top: 3px;
}
-/* Narrow content panes stack the toolbar and the workbench. */
+/* Narrow content panes stack the toolbar above the workbench. */
@media (max-width: 720px) {
.projects-toolbar {
align-items: stretch;
@@ -764,6 +797,10 @@
margin-left: 0;
}
+ .projects-row-meta {
+ display: none;
+ }
+
.projects-inspector {
padding-left: 14px;
}
@@ -773,10 +810,16 @@
.projects-row-block,
.projects-icon-btn,
.projects-search-wrap,
+ .projects-row-disclosure,
.projects-detail-task,
.projects-detail-task-rename {
transition: none;
}
+
+ .projects-inspector,
+ .projects-menu.is-open {
+ animation: none;
+ }
}
/*
@@ -841,5 +884,5 @@
}
.project-delete-dialog-confirm:hover:not(:disabled) {
- background: color-mix(in oklab, var(--ds-error) 85%, #000);
+ background: color-mix(in oklab, var(--ds-error) 85%, var(--gray-1000));
}
diff --git a/apps/desktop/test/session-rename.test.mjs b/apps/desktop/test/session-rename.test.mjs
index 10490f542..c3e8a3a00 100644
--- a/apps/desktop/test/session-rename.test.mjs
+++ b/apps/desktop/test/session-rename.test.mjs
@@ -5,24 +5,38 @@ import test from "node:test";
import { loadStyles } from "./helpers/styles.mjs";
const read = (path) => readFile(new URL(path, import.meta.url), "utf8");
-const [sidebarSource, projectsSource, dialogSource, storeSource, apiSource, hostSource, rpcSource, styles] =
- await Promise.all([
- read("../src/components/Sidebar.tsx"),
- read("../src/pages/ProjectsPage.tsx"),
- read("../src/components/SessionRenameDialog.tsx"),
- readStoreSource(),
- read("../src/lib/api.ts"),
- read("../../../crates/host-core/src/sessions.rs"),
- read("../../../crates/host-core/src/rpc/mod.rs"),
- loadStyles(),
- ]);
+const [
+ sidebarSource,
+ projectsPageSource,
+ projectsDetailSource,
+ dialogSource,
+ storeSource,
+ apiSource,
+ hostSource,
+ rpcSource,
+ styles,
+] = await Promise.all([
+ read("../src/components/Sidebar.tsx"),
+ read("../src/pages/ProjectsPage.tsx"),
+ // The archive's task rows live in the detail panel the workbench renders.
+ read("../src/features/projects/ProjectDetailPanel.tsx"),
+ read("../src/components/SessionRenameDialog.tsx"),
+ readStoreSource(),
+ read("../src/lib/api.ts"),
+ read("../../../crates/host-core/src/sessions.rs"),
+ read("../../../crates/host-core/src/rpc/mod.rs"),
+ loadStyles(),
+]);
test("session rename is available from sidebar and project archive task rows", () => {
assert.match(sidebarSource, /data-action="rename-session"/);
assert.match(sidebarSource, /setRenameFor\(session\)/);
- assert.match(projectsSource, /projects-detail-task-rename/);
- assert.match(projectsSource, /setRenameFor\(s\)/);
- assert.match(projectsSource, /onContextMenu=/);
+ assert.match(projectsDetailSource, /projects-detail-task-rename/);
+ assert.match(projectsDetailSource, /onRenameSession\(session\)/);
+ assert.match(projectsDetailSource, /onContextMenu=/);
+ // The panel only forwards the intent, so the page side of the wiring is
+ // asserted too: a no-op prop would keep the panel green and the pencil dead.
+ assert.match(projectsPageSource, /onRenameSession=\{setRenameFor\}/);
assert.match(styles, /\.projects-detail-task-row\s*\{/);
});
diff --git a/apps/desktop/test/settings-project-archive.test.mjs b/apps/desktop/test/settings-project-archive.test.mjs
index e83aec742..144ce636f 100644
--- a/apps/desktop/test/settings-project-archive.test.mjs
+++ b/apps/desktop/test/settings-project-archive.test.mjs
@@ -13,6 +13,10 @@ const projectsIndexSource = await readFile(
new URL("../src/features/projects/ProjectArchiveIndex.tsx", import.meta.url),
"utf8",
);
+const projectsDetailSource = await readFile(
+ new URL("../src/features/projects/ProjectDetailPanel.tsx", import.meta.url),
+ "utf8",
+);
const projectArchiveSource = await readFile(
new URL("../src/lib/project-archive.ts", import.meta.url),
"utf8",
@@ -31,7 +35,7 @@ const projectsPartialSource = await readFile(
new URL("../src/styles/projects.css", import.meta.url),
"utf8",
);
-const archiveUiSource = `${projectsPageSource}\n${projectsIndexSource}\n${projectArchiveSource}`;
+const archiveUiSource = `${projectsPageSource}\n${projectsIndexSource}\n${projectsDetailSource}\n${projectArchiveSource}`;
test("settings owns the project archive destination", () => {
assert.match(settingsSearchSource, /id: "projects"/);
@@ -60,10 +64,10 @@ test("project archive makes project sessions searchable and progressively visibl
);
assert.doesNotMatch(archiveUiSource, /\.slice\(0, 4\)/);
assert.match(projectArchiveSource, /INITIAL_VISIBLE_SESSION_COUNT = 8/);
- assert.match(projectsPageSource, /project\.sessionsCount/);
- assert.match(projectsPageSource, /project\.showMoreSessions/);
- assert.match(projectsPageSource, /project\.showFewerSessions/);
- assert.match(projectsPageSource, /projects-detail-task-updated/);
+ assert.match(projectsDetailSource, /project\.sessionsCount/);
+ assert.match(projectsDetailSource, /project\.showMoreSessions/);
+ assert.match(projectsDetailSource, /project\.showFewerSessions/);
+ assert.match(projectsDetailSource, /projects-detail-task-updated/);
});
test("project archive is no longer a standalone app page", () => {
@@ -97,7 +101,7 @@ test("project archive renders the intro, toolbar, and list-inspector workbench",
assert.match(projectsPageSource, /projects-empty/);
assert.equal(projectsPageSource.match(/projects-workbench/g)?.length, 1);
- assert.match(projectsPageSource, /projects-inspector/);
+ assert.match(projectsPageSource, /<ProjectDetailPanel/);
assert.match(projectsIndexSource, /projects-inspector/);
assert.doesNotMatch(projectsPartialSource, /grid-template-columns/);
assert.match(projectsIndexSource, /aria-labelledby=\{`projects-group-\$\{group\.id\}`\}/);
@@ -109,6 +113,53 @@ test("project archive renders the intro, toolbar, and list-inspector workbench",
assert.match(projectsPageSource, /onActivate=\{\(path\) => void activate\(path\)\}/);
});
+test("the index row carries identity and the selected row is its own card header", () => {
+ // Identity reads left to right: glyph, name, then the path that tells two
+ // same-named projects apart without selecting either of them.
+ assert.match(projectsIndexSource, /projects-glyph/);
+ assert.match(projectsIndexSource, /projects-name-text/);
+ assert.match(projectsIndexSource, /projects-name-path/);
+ assert.match(projectsIndexSource, /shortenPath\(project\.path\)/);
+ // Detail reads right to left, capped by a disclosure indicator that turns
+ // down once the row owns an open card.
+ assert.match(projectsIndexSource, /projects-row-meta/);
+ assert.match(projectsIndexSource, /projects-row-disclosure/);
+ assert.match(
+ projectsPartialSource,
+ /\.projects-row-block\.selected \.projects-row-disclosure\s*\{[^}]*rotate\(90deg\)/,
+ );
+ // The open card is headed by that same row, so the detail never repeats the
+ // name, the path, or the status tag: no second source of truth on screen.
+ assert.match(projectsDetailSource, /projects-detail-bar/);
+ assert.match(projectsDetailSource, /projects-detail-roots/);
+ assert.match(projectsDetailSource, /project\.foldersLabel/);
+ assert.doesNotMatch(projectsDetailSource, /projects-name-text/);
+ assert.doesNotMatch(projectsDetailSource, /projects-name-path/);
+ assert.doesNotMatch(projectsDetailSource, /projects-tag/);
+});
+
+test("the selected row is selected by one shared status helper", () => {
+ assert.match(projectArchiveSource, /export function projectStatus\(/);
+ assert.match(projectArchiveSource, /active: "project\.active"/);
+ assert.match(projectArchiveSource, /open: "project\.openTag"/);
+ assert.match(projectArchiveSource, /archived: "project\.archivedTag"/);
+ assert.match(projectsIndexSource, /projectStatus\(\{/);
+ // The component no longer owns a second copy of the row-state ladder.
+ assert.doesNotMatch(projectsIndexSource, /function rowStatus\(/);
+});
+
+test("keyboard selection follows the rendered order and yields to the open card", () => {
+ // The arrow keys must walk what the user sees: section order with the active
+ // sort applied, not the order the index was built in.
+ assert.match(projectsPageSource, /groups\.flatMap\(\(group\) => group\.rows\)/);
+ assert.match(projectsPageSource, /neighborPath\(\s*\n?\s*renderedRows,/);
+ // Enter inside the detail is that control's own action, never "activate".
+ assert.match(projectsPageSource, /closest\("\.projects-inspector"\)/);
+ // Row ids are encoded, so two paths that differ only in separators cannot
+ // collide and send focus to the wrong row.
+ assert.match(projectsIndexSource, /projects-row-\$\{encodeURIComponent\(path\)\}/);
+});
+
test("pinned projects use a distinct star glyph", () => {
assert.match(projectsIndexSource, /IconStar/);
assert.match(
@@ -137,3 +188,14 @@ test("project archive styles group archived rows instead of hiding them", () =>
assert.doesNotMatch(projectsPartialSource, /projects-stat/);
assert.doesNotMatch(projectsPartialSource, /linear-gradient/);
});
+
+test("the project archive honors reduced motion for every animated transition", () => {
+ const reduced = projectsPartialSource.slice(
+ projectsPartialSource.indexOf("@media (prefers-reduced-motion: reduce)"),
+ );
+ assert.match(reduced, /\.projects-row-block,/);
+ assert.match(reduced, /\.projects-row-disclosure,/);
+ assert.match(reduced, /\.projects-inspector,/);
+ // The expanded card must not slide in for a user who asked for stillness.
+ assert.match(reduced, /\.projects-inspector,\s*\.projects-menu\.is-open\s*\{\s*animation:\s*none;/);
+});
diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.md
index 07ed480fe..d7037efa3 100644
--- a/docs/spec/04-ux/06-settings-ia.md
+++ b/docs/spec/04-ux/06-settings-ia.md
@@ -578,9 +578,12 @@ system while preserving their different data ownership:
retained 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 one-column
- list with an in-row inspector. 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.
+ list with an in-row inspector, and revised again into an inset grouped index
+ in 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
@@ -593,20 +596,25 @@ system while preserving their different data ownership:
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. The
- colored glyph uses Folder for ordinary projects and a filled Star for pinned
- projects. A click selects the row and keeps Settings open; double-click or
- Enter activates the project and returns to chat
-- The inspector shows the selected project's name and tags (Active, Open,
- pinned, Archived), shortened monospace path and branch, Open and New task
- actions, folders, and chats. The inspector menu groups create/edit actions
- above pin, archive/restore, and the destructive Close action, and closes on
- Escape or any outside press
+ its group name in the accessibility tree. Selecting a row expands its card
+ under that row at full content width, and that row's disclosure indicator
+ turns down while the card is open. Empty sections are omitted, and an index
+ with no rows renders one quiet empty state instead of the workbench
+- Row anatomy reads left to right as identity and right to left as detail: the
+ color glyph, the project name with one status tag (Active, Open, or
+ Archived), and the shortened monospace path that tells two same-named
+ projects apart, then the right-aligned session count and relative last-active
+ time, closed by the row's disclosure indicator. The colored glyph uses Folder
+ for 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; double-click or Enter activates the project and returns to chat
+- The card under the selected row is the detail panel, and it repeats nothing
+ the row already states — no second copy of the name, the path, or the status
+ tag. It opens with an action bar (New task, Open while the project is not the
+ live workspace, and the overflow menu), continues with the read-only folder
+ and branch facts and the sessions count, and ends with the chats themselves.
+ The overflow menu groups create/edit actions above pin, archive/restore, and
+ the destructive Close action, and closes on Escape or any outside press
- The inspector menu includes Project memory. Its editor is a compact
viewport-level dialog with a list of editable memory cards. Each card
supports an optional title, multiline content, and removal; the dialog also
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.md
index e3e8a1600..52326bf11 100644
--- a/docs/spec/04-ux/07-ui-design-system.md
+++ b/docs/spec/04-ux/07-ui-design-system.md
@@ -1309,10 +1309,16 @@ Full component contract and usage rules: [08-component-spec.md §17](08-componen
the earlier standalone Projects destination and card grid (D042) are
superseded 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 elevated panel whose
- Pinned / All projects / Archived groups are in-panel header strips carrying
- the only counts on the page. It has no hero block, no decorative gradient,
- and no page-level counter run
+ toolbar (sort segment, search, primary action), and one index whose
+ Pinned / All projects / Archived groups are plain section header lines
+ carrying the only counts on the page. Per D455 it stays one column with no
+ side-by-side
+ pane, and the index is an inset grouped list in the iOS sense: each row reads
+ left to right as identity (glyph, name, status tag, path) and right to left as
+ detail (session count, last active, disclosure indicator), and the selected
+ row is the header of the card that opens under it — so the detail repeats no
+ name, path, or tag. It has no hero block, no decorative gradient, and no
+ page-level counter run
- **Settings**: full-page Codex shell per D063/D090/D133/D166 (275px compact
navigation rail sharing the main sidebar material, elevated content cards, Back to app);
per D092, the content cards fill the pane width available from the current
diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.md
index 0c8b3b690..3126cf93e 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 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. |
+| D455 | Project archive is a list + inspector | *(row anatomy superseded by the same-day "Project archive reads as an inset grouped card list" entry)* **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. |
| D456 | Session thinking-parameter omission | **Amend ADR 0194 / ADR 0144 / ADR 0221: session `thinkingLevel` accepts `omit` in addition to the seven canonical levels. Composer prepends `omit` on a reasoning model. Runtime bookkeeping stays `off` and uses the low-level provider stream so no thinking override is synthesized. Binding/catalog capability lists stay canonical. Schema v19 widens the session CHECK to include `omit`. Handshake protocol version is unchanged. See ADR 0295 and E2E-203a.** | Explicit `off` still serializes a disable; users need a session-level do-not-send matching subagents. |
## E. M5 hardening decisions (0.4.0)
@@ -6262,3 +6262,26 @@ that was sitting at the bottom — including after the turn had finished.
- See `03-runtime/04-data-storage.md`, `03-runtime/06-host-rpc-protocol.md`,
E2E-SESSION-outbox-poison-does-not-drop-history.
+## 2026-09-20 — Project archive reads as an inset grouped card list
+
+- Revise D455's presentation only: the destination stays one column with the
+ detail under the selected row and no side-by-side pane, but the index is now
+ an inset grouped list in the iOS sense. Each row reads left to right as
+ identity (color glyph, name, one status tag, shortened monospace path) and
+ right to left as detail (session count, relative last-active time, disclosure
+ indicator). Rows stay tiles separated by the row gap, never by rules.
+- The selected row is the header of its own card, so the detail panel repeats no
+ name, path, or status tag: it opens with an action bar (New task, Open while
+ the project is not the live workspace, overflow menu), then the read-only
+ folder and branch facts and the sessions count, then the chats. The overflow
+ menu keeps its items, its ordering, and its two-step delete.
+- Arrow-key selection walks the rendered order (section order with the active
+ sort) instead of the index build order and moves real focus to the row it
+ selected, and the handler yields to the open card so Enter inside the detail
+ stays that control's own action. Row element ids are encoded, so two paths
+ that differ only in separators can no longer collide. An empty index shows the
+ pending indicator until the host listing settles instead of "no projects yet",
+ and the expanded card and the disclosure indicator honor reduced motion.
+ Presentation only: no IPC, storage, host-protocol, or
+ activation-semantics change. See `04-ux/06-settings-ia.md`,
+ `04-ux/07-ui-design-system.md`, and ADR 0294.
diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.md
index 497a4d32a..ad122e9cb 100644
--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md
+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md
@@ -240,7 +240,9 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
- 始终包含存档记录;归档行被分组,从不隐藏,所以
目的地仍然没有可见性切换
- 支持项目搜索、添加、选中、激活、置顶、归档/恢复和关闭
-- 该目的地是一个工作台(D267),由 D455 修订为单列:精简行,检查器在选中行下方铺满宽度。
+- 该目的地是一个工作台(D267),由 D455 修订为单列:精简行,检查器在选中行下方铺满宽度;
+ 现进一步改为 iOS 意义上的内嵌分组索引:选中行就是它自己卡片的表头,
+ 因此详情在该行下方展开,且不重复行上已有的信息。
一条安静的引导行位于单个工具栏之上,工具栏位于工作台之上。
它复用与智能体能力页面(D257)相同的构成、控件高度和行节奏,
不引入页面专属装饰。
@@ -253,13 +255,18 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
主要“添加项目”操作
3. **工作台** — 单列。始终可见的索引部分按“固定”、“所有项目”、
“已存档”呈现为非交互标题条,每条带有标签和行数。
- 每个部分都是包裹自身列表的带标签区域。选中一行时检查器在该行下方铺满宽度。
+ 每个部分都是包裹自身列表的带标签区域。
+ 选中一行时其卡片在该行下方铺满宽度展开,该行的展开指示器随之转向下方。
空部分被省略;完全没有行时呈现安静空状态
-- 精简行:颜色字形、项目名和一个状态标签(当前 / 已打开 / 已归档)、
- 会话计数、相对上次活动时间。普通项目用文件夹字形,置顶项目用实心星标。
+- 行的信息自左向右是身份、自右向左是细节:颜色字形、项目名和一个状态标签
+ (当前 / 已打开 / 已归档)、用于区分同名项目的缩短等宽路径,
+ 然后是右对齐的会话计数与相对上次活动时间,最后是该行的展开指示器。
+ 普通项目用文件夹字形,置顶项目用实心星标。行靠行间距分隔,从不使用分隔线。
单击选中并留在设置页;双击或 Enter 激活项目并返回聊天
-- 检查器展示选中项目的名称与标签、缩短的等宽路径和分支、打开/新任务,
- 以及文件夹和对话。检查器菜单将创建/编辑放在置顶、归档/恢复和关闭之上,
+- 选中行下方的卡片即详情面板,它不重复行上已有的信息 —— 不会有第二份名称、
+ 路径或状态标签。它先是一个操作栏(新任务、项目不是当前工作区时的“打开”、
+ 以及更多菜单),接着是只读的文件夹与分支信息、会话计数,
+ 最后是会话列表本身。更多菜单将创建/编辑放在置顶、归档/恢复和关闭之上,
并在 Escape 或外部点击时关闭
- 项目搜索还匹配会话标题。匹配的会话会保留并选中所属项目;
检查器按最新活动列出匹配会话,以 8 条一批显示,而不是截断历史
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.md
index b70ecabe9..12a583feb 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
@@ -1178,9 +1178,12 @@ Linux 保留淡入淡出和滑动退出。
早期的独立项目目的地和卡片网格(D042)是
被 D133 取代。根据 D267,该目的地的构成与智能体能力页面(D257)
完全一致:一条仅含说明的安静引导行;
- 一个工具栏(排序分段控件、搜索、主要操作);以及一个高架面板,
- 其固定/所有项目/已存档分组是面板内标题条,并承载页面上唯一的计数。
- 它没有英雄区块、装饰渐变,也没有页面级计数器串
+ 一个工具栏(排序分段控件、搜索、主要操作);以及一个索引,
+ 其固定/所有项目/已存档分组是纯标签式的分组标题行,并承载页面上唯一的计数。
+ 根据 D455 它保持单列、没有并排面板,且该索引是 iOS 意义上的内嵌分组列表:
+ 每行自左向右是身份(字形、项目名、状态标签、路径),自右向左是细节
+ (会话计数、上次活动、展开指示器),选中的行就是在其下方展开的卡片的表头 ——
+ 因此详情不会重复名称、路径或标签。它没有英雄区块、装饰渐变,也没有页面级计数器串
- **设置**:按照 D063/D090/D133/D166 的全页 Codex shell(275 像素紧凑型
与主侧栏共享材质的导航、高架内容卡、返回应用程序);
根据 D092,内容卡填充当前可用的窗格宽度
diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.md
index c858dc603..2a9dfd428 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 条)和行菜单在选中行下方铺满宽度打开。搜索仍匹配会话标题并选中所属项目。仅演示层:无 IPC、存储或宿主改动。见 ADR 0294 与 E2E-038。** | 行内展开和行菜单让长索引难以扫读,单击名称还会离开设置页,不利于管理。 |
+| D455 | 项目存档改为列表 + 检查器 | *(行剖析被同日的「项目档案呈现为内嵌分组卡片列表」条目取代)* **修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,随后是单列工作台。索引仍按已置顶 / 全部项目 / 已归档分组并显示计数,且没有可见性开关(D133)。精简行显示字形、名称、一个状态标签、会话计数和相对时间。单击选中并留在设置页;双击、Enter 或检查器的打开操作激活项目并返回聊天。文件夹、对话(每批 8 条)和行菜单在选中行下方铺满宽度打开。搜索仍匹配会话标题并选中所属项目。仅演示层:无 IPC、存储或宿主改动。见 ADR 0294 与 E2E-038。** | 行内展开和行菜单让长索引难以扫读,单击名称还会离开设置页,不利于管理。 |
| D456 | 会话思考参数不发送 | **修订 ADR 0194 / ADR 0144 / ADR 0221:会话 `thinkingLevel` 在七个规范档位之外接受 `omit`。Composer 在推理模型上把 `omit` 放在菜单最前。运行时记账仍为 `off`,走低层 provider 流,不合成思考覆盖。绑定/目录能力列表保持规范档位。Schema v19 把会话 CHECK 扩到包含 `omit`。握手协议版本不变。见 ADR 0295 与 E2E-203a。** | 显式 `off` 仍会序列化为关闭思考;用户需要与子智能体一致的会话级不发送。 |
## E.M5 强化决策 (0.4.0)
@@ -4492,3 +4492,19 @@ that amendment are retired by ADR 0268; the upstream work-panel lifecycle stays.
- 见 `03-runtime/04-data-storage.md`、`03-runtime/06-host-rpc-protocol.md`、
E2E-SESSION-outbox-poison-does-not-drop-history。
+## 2026-09-20 —— 项目档案呈现为内嵌分组卡片列表
+
+- 仅修订 D455 的呈现:该目的地仍为单列,详情在选中行下方,没有并排面板;
+ 但索引改为 iOS 意义上的内嵌分组列表。每行自左向右是身份(颜色字形、项目名、
+ 一个状态标签、缩短的等宽路径),自右向左是细节(会话计数、相对上次活动时间、
+ 展开指示器)。行仍以行间距分隔,从不使用分隔线。
+- 选中的行就是它自己卡片的表头,因此详情面板不重复名称、路径或状态标签:
+ 它先是操作栏(新任务、项目不是当前工作区时的「打开」、更多菜单),
+ 接着是只读的文件夹与分支信息、会话计数,最后是会话列表。更多菜单的条目、
+ 顺序与两步删除保持不变。
+- 方向键选中改为沿渲染顺序(分组顺序 + 当前排序)移动,而不是索引构建顺序,并把真实
+ 焦点移到该行;该处理器会让位于展开的卡片,因此详情内的 Enter 仍是该控件自身的操作。
+ 行元素 id 经过编码,只靠分隔符区分的两条路径不会再撞车。索引为空时在宿主列表返回前
+ 显示等待指示器,而不是「暂无项目」;展开的卡片与展开指示器遵循减少动效设置。
+ 仅演示层:无 IPC、存储、宿主协议或激活语义改动。见 `04-ux/06-settings-ia.md`、
+ `04-ux/07-ui-design-system.md` 与 ADR 0294。