Skip to content

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

refactor(settings): organize destinations by subject

vastsa836ccd084147
diff --git a/apps/desktop/electron/main/bootstrap/window.ts b/apps/desktop/electron/main/bootstrap/window.ts
index 82739262a..1db58f43b 100644
--- a/apps/desktop/electron/main/bootstrap/window.ts
+++ b/apps/desktop/electron/main/bootstrap/window.ts
@@ -1903,7 +1903,7 @@ export async function createWindow({
await new Promise((r) => setTimeout(r, 800));
await shot("pi-dark-project-archive");
await setPage("settings");
- await setSettingsTab("general");
+ await setSettingsTab("appearance");
await new Promise((r) => setTimeout(r, 800));
await shot("pi-dark-settings");
await setTheme("light");
@@ -2103,9 +2103,10 @@ export async function createWindow({
window.__PI_DESKTOP__?.seedPluginThemes?.(2)`,
);
await setPage("settings");
- // The general tab carries the theme picker, including plugin themes
- // (D175); earlier scenes leave the sidebar on the archive tab.
- await setSettingsTab("general");
+ // The appearance destination carries the theme picker, including
+ // plugin themes (D175); earlier scenes leave the rail on the
+ // archive destination.
+ await setSettingsTab("appearance");
// Seeding plugin themes activates one of them, which drags the
// shell dark; the settings tabs are documented in light.
await setTheme("light");
diff --git a/apps/desktop/src/features/app/useAppShellRuntime.tsx b/apps/desktop/src/features/app/useAppShellRuntime.tsx
index 373068dc9..6200f4b7d 100644
--- a/apps/desktop/src/features/app/useAppShellRuntime.tsx
+++ b/apps/desktop/src/features/app/useAppShellRuntime.tsx
@@ -25,6 +25,7 @@ import {
loadSidebarWidth,
saveSidebarWidth,
} from "../../lib/sidebar-preferences";
+import { DEFAULT_SETTINGS_TAB } from "../../lib/settings-search";
import { sidebarWidthBudget } from "../../lib/sidebar-resize";
import { commitWorkPanelPresentation } from "../../lib/work-panel-presentation";
import {
@@ -431,7 +432,7 @@ export function useAppShellRuntime() {
await store.openProject();
break;
case "openSettings":
- store.setSettingsTab("general");
+ store.setSettingsTab(DEFAULT_SETTINGS_TAB);
break;
case "openSearch":
setSearchOpen(true);
diff --git a/apps/desktop/src/features/settings/SettingsPage.tsx b/apps/desktop/src/features/settings/SettingsPage.tsx
index 860ad3fd8..aead1808b 100644
--- a/apps/desktop/src/features/settings/SettingsPage.tsx
+++ b/apps/desktop/src/features/settings/SettingsPage.tsx
@@ -2,13 +2,13 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, typ
import { useTranslation } from "react-i18next";
import type {
AppSettings,
- GlobalPermissionMode,
PluginScenicThemesDestinationMeta,
ShortcutPlatform,
} from "@pi-desktop/shared";
import { useAppStore } from "../../stores/app-store";
import { api } from "../../lib/api";
import {
+ DEFAULT_SETTINGS_TAB,
isSettingsDestinationHidden,
SETTINGS_NAV_GROUP_LABELS,
visibleSettingsNav,
@@ -19,11 +19,13 @@ import {
IconArchive,
IconBookOpen,
IconBot,
+ IconChat,
IconChevronLeft,
IconFileText,
IconGlobe,
IconInfo,
IconKeyboard,
+ IconMonitor,
IconPalette,
IconSearch,
IconServer,
@@ -32,44 +34,23 @@ import {
IconCloudDown,
IconMic,
} from "../../components/icons";
-import { Badge, Button, cx, SegmentedControl, SettingsToggle } from "../../components/ui";
+import { Badge, Button, cx } from "../../components/ui";
import { ModelConfigPage } from "../../components/settings/ModelConfigPage";
import { KeyboardShortcutsSection } from "../../components/settings/KeyboardShortcutsSection";
-import { FontFamilyRow } from "../../components/settings/FontFamilyRow";
-import { ShowThinkingRow } from "../../components/settings/ShowThinkingRow";
-import { TranscriptDisplayModeRow } from "../../components/settings/TranscriptDisplayModeRow";
-import {
- AutoCollapseSettledGroupsRow,
- AutoCollapseThinkingRow,
-} from "../../components/settings/TranscriptFoldingRows";
-import { RadialMenuSettings } from "../../components/settings/RadialMenuSettings";
-import { FontSizeRow } from "../../components/settings/FontSizeRow";
-import { LanguageRow } from "../../components/settings/LanguageRow";
-import { SettingsMenuSelect } from "../../components/settings/SettingsMenuSelect";
-import { ThemeRow } from "../../components/settings/ThemeRow";
-import { MacosWindowTranslucencyRow } from "../../components/settings/MacosWindowTranslucencyRow";
-import { StartupAnimationRows } from "../../components/settings/StartupAnimationRows";
-import { NetworkProxySection } from "../../components/settings/NetworkProxySection";
import { ProjectsPage } from "../../pages/ProjectsPage";
import { AgentSkillsPage } from "../../components/settings/AgentSkillsPage";
import { AgentMcpPage } from "../../components/settings/AgentMcpPage";
import { AgentSubagentsPage } from "../../components/settings/AgentSubagentsPage";
import { RemoteHostsPage } from "../../components/settings/RemoteHostsPage";
import { VoiceSettingsSection } from "./voice/VoiceSettingsSection";
-import { ComputerUseSettings } from "./computer-use/ComputerUseSettings";
-import {
- CommandShellRow,
- ContextUsageDisplayRow,
- LargePasteThresholdRow,
- LinkOpenTargetRow,
- SettingsCard,
- SettingsRow,
-} from "./primitives";
-import { AgentInstructionsSection, UpdatesRow } from "./agent-sections";
-import { CloseBehaviorSection, DeveloperSection } from "./developer-sections";
+import { AgentInstructionsSection } from "./agent-sections";
import { PluginScenicThemesDestination } from "../../components/settings/PluginScenicThemesDestination";
import { ConfigSyncPage } from "../../components/settings/ConfigSyncPage";
-import { StorageSettingsSection } from "./StorageSettingsSection";
+import { AboutSettings } from "./pages/AboutSettings";
+import { AgentBehaviorSettings } from "./pages/AgentBehaviorSettings";
+import { AppearanceSettings } from "./pages/AppearanceSettings";
+import { ConversationSettings } from "./pages/ConversationSettings";
+import { SystemSettings } from "./pages/SystemSettings";
type SettingsTab = ReturnType<typeof useAppStore.getState>["settingsTab"];
@@ -77,6 +58,7 @@ type NavItem = {
id: SettingsTab;
labelKey: string;
titleKey: string;
+ subtitleKey?: string;
icon: ReactNode;
group: SettingsNavGroupId;
experimentalBadgeKey?: string;
@@ -93,7 +75,6 @@ export function SettingsPage() {
const setSettingsAnchor = useAppStore((s) => s.setSettingsAnchor);
const setPage = useAppStore((s) => s.setPage);
const settings = useAppStore((s) => s.settings);
- const version = useAppStore((s) => s.version);
const refreshProviders = useAppStore((s) => s.refreshProviders);
const platform = (window.piDesktop?.platform ?? "darwin") as ShortcutPlatform;
@@ -148,16 +129,16 @@ export function SettingsPage() {
useEffect(() => {
if (activeExtension && !extensions.some((entry) => entry.ref === activeExtension.ref)) {
setActiveExtension(null);
- setSettingsTab("general");
+ setSettingsTab(DEFAULT_SETTINGS_TAB);
}
}, [activeExtension, extensions, setSettingsTab]);
// A hidden destination must not keep rendering: leave the page the rail no
// longer offers (for example Cloud sync or Remote Hosts after developer mode
- // is switched off) and fall back to General.
+ // is switched off) and fall back to the default destination.
useEffect(() => {
if (!settings || !tabHidden) return;
- setSettingsTab("general");
+ setSettingsTab(DEFAULT_SETTINGS_TAB);
}, [settings, tabHidden, setSettingsTab]);
const recoverSettings = useCallback(async () => {
@@ -239,24 +220,27 @@ export function SettingsPage() {
const navItems: NavItem[] = useMemo(() => {
const iconFor: Record<SettingsTab, ReactNode> = {
// Semantic Lucide glyphs for the settings destinations.
- general: <IconSliders size={14} />,
- ai: <IconSparkles size={14} />,
+ appearance: <IconPalette size={14} />,
+ chat: <IconChat size={14} />,
shortcuts: <IconKeyboard size={14} />,
- instructions: <IconFileText size={14} />,
+ voice: <IconMic size={14} />,
+ behavior: <IconSliders size={14} />,
agent: <IconBot size={14} />,
+ instructions: <IconFileText size={14} />,
skills: <IconBookOpen size={14} />,
mcp: <IconServer size={14} />,
- subagents: <IconBot size={14} />,
+ subagents: <IconSparkles size={14} />,
projects: <IconArchive size={14} />,
+ system: <IconMonitor size={14} />,
sync: <IconCloudDown size={14} />,
remoteHosts: <IconGlobe size={14} />,
- voice: <IconMic size={14} />,
about: <IconInfo size={14} />,
};
return navEntries.map((entry) => ({
id: entry.id,
labelKey: entry.labelKey,
titleKey: entry.titleKey,
+ subtitleKey: entry.subtitleKey,
icon: iconFor[entry.id],
group: entry.group,
experimentalBadgeKey: entry.experimentalBadgeKey,
@@ -265,7 +249,7 @@ export function SettingsPage() {
}, [navEntries]);
// Search matches the tab label and the titles of the rows inside it, so
- // typing e.g. "theme" or "主题" surfaces Basics even though the tab is
+ // typing e.g. "theme" or "主题" surfaces Appearance even though the tab is
// named differently.
const filteredItems = useMemo(() => {
const q = query.trim().toLowerCase();
@@ -278,7 +262,7 @@ export function SettingsPage() {
}, [navItems, query, t]);
// Keep the destination index flat for search, while giving the rail titled
- // visual clusters so the eight rows do not read as one dense block.
+ // visual clusters so the rows do not read as one dense block.
const filteredGroups = useMemo(() => {
const groups = new Map<SettingsNavGroupId, NavItem[]>();
for (const item of filteredItems) {
@@ -291,7 +275,7 @@ export function SettingsPage() {
const activeNavItem = navItems.find((item) => item.id === tab);
const activeTitleKey = activeNavItem?.titleKey ?? "settings.title";
- const tabNeedsSettings = ["general", "ai", "shortcuts", "agent"].includes(tab);
+ const tabNeedsSettings = ["appearance", "chat", "behavior", "system", "shortcuts", "agent"].includes(tab);
return (
<div className="settings-shell settings-shell-full">
@@ -386,12 +370,33 @@ export function SettingsPage() {
<div className="settings-content" ref={contentRef}>
<div className="settings-content-inner">
<div className="settings-content-enter">
- <h1 className="settings-section-title">
- <span>{activeExtension?.label ?? t(activeTitleKey)}</span>
- {!activeExtension && activeNavItem?.experimentalBadgeKey ? (
- <Badge tone="warning">{t(activeNavItem.experimentalBadgeKey)}</Badge>
- ) : null}
- </h1>
+ {/*
+ The page opens by saying where you are and what the destination
+ decides (D684): the rail's glyph again at page scale, the title,
+ and one line of orientation for destinations whose own content does
+ not already start with a description.
+ */}
+ <header className="settings-page-header">
+ <span className="settings-page-icon" aria-hidden="true">
+ {activeExtension
+ ? (() => {
+ const ExtensionIcon = pluginViewIcon(activeExtension.icon) ?? IconPalette;
+ return <ExtensionIcon size={18} />;
+ })()
+ : activeNavItem?.icon}
+ </span>
+ <div className="settings-page-heading">
+ <h1 className="settings-section-title">
+ <span>{activeExtension?.label ?? t(activeTitleKey)}</span>
+ {!activeExtension && activeNavItem?.experimentalBadgeKey ? (
+ <Badge tone="warning">{t(activeNavItem.experimentalBadgeKey)}</Badge>
+ ) : null}
+ </h1>
+ {!activeExtension && activeNavItem?.subtitleKey ? (
+ <p className="settings-page-subtitle">{t(activeNavItem.subtitleKey)}</p>
+ ) : null}
+ </div>
+ </header>
{activeExtension ? (
<PluginScenicThemesDestination destination={activeExtension} selectTheme={selectPluginTheme} />
@@ -415,225 +420,28 @@ export function SettingsPage() {
</div>
) : null}
- {tab === "general" && settings && (
- <div className="settings-stack">
- <SettingsCard title={t("settings.appearance")}>
- <ThemeRow settings={settings} saveSettings={saveSettings} />
- <LanguageRow settings={settings} saveSettings={saveSettings} />
- <FontFamilyRow settings={settings} saveSettings={saveSettings} />
- <FontSizeRow settings={settings} saveSettings={saveSettings} />
- {platform === "darwin" && (
- <MacosWindowTranslucencyRow settings={settings} saveSettings={saveSettings} />
- )}
- <StartupAnimationRows settings={settings} saveSettings={saveSettings} />
- </SettingsCard>
-
- <SettingsCard title={t("settings.sidebar")}>
- <SettingsRow
- title={t("settings.sidebarRunningIndicators")}
- description={t("settings.sidebarRunningIndicatorsDesc")}
- >
- <SettingsToggle
- checked={settings.sidebarRunningIndicators === true}
- label={t("settings.sidebarRunningIndicators")}
- onChange={() => void saveSettings({
- sidebarRunningIndicators: settings.sidebarRunningIndicators !== true,
- })}
- />
- </SettingsRow>
- {/*
- The two sub-switches are gated by the master switch. They keep
- their stored value while disabled, so turning the master back
- on restores the previous choice instead of resetting it.
- */}
- <SettingsRow title={t("settings.sidebarRunningBadge")}>
- <SettingsToggle
- checked={settings.sidebarRunningBadge === true}
- label={t("settings.sidebarRunningBadge")}
- disabled={settings.sidebarRunningIndicators !== true}
- onChange={() => void saveSettings({
- sidebarRunningBadge: settings.sidebarRunningBadge !== true,
- })}
- />
- </SettingsRow>
- <SettingsRow title={t("settings.sidebarRunningRail")}>
- <SettingsToggle
- checked={settings.sidebarRunningRail === true}
- label={t("settings.sidebarRunningRail")}
- disabled={settings.sidebarRunningIndicators !== true}
- onChange={() => void saveSettings({
- sidebarRunningRail: settings.sidebarRunningRail !== true,
- })}
- />
- </SettingsRow>
- <SettingsRow title={t("settings.sidebarSessionTime")}>
- <SettingsToggle
- checked={settings.sidebarSessionTime === true}
- label={t("settings.sidebarSessionTime")}
- onChange={() => void saveSettings({
- sidebarSessionTime: settings.sidebarSessionTime !== true,
- })}
- />
- </SettingsRow>
- </SettingsCard>
-
- <SettingsCard title={t("settings.scheduledTasks")}>
- <SettingsRow
- title={t("settings.scheduledTasks")}
- description={t("settings.scheduledTasksDesc")}
- >
- <SettingsToggle
- checked={settings.scheduledTasksEnabled !== false}
- label={t("settings.scheduledTasks")}
- onChange={() => void saveSettings({
- scheduledTasksEnabled: settings.scheduledTasksEnabled === false,
- })}
- />
- </SettingsRow>
- </SettingsCard>
-
- <RadialMenuSettings
- settings={settings}
- saveSettings={saveSettings}
- />
+ {tab === "appearance" && settings && (
+ <AppearanceSettings
+ settings={settings}
+ saveSettings={saveSettings}
+ platform={platform}
+ />
+ )}
- <NetworkProxySection settings={settings} saveSettings={saveSettings} />
-
- <StorageSettingsSection />
-
- <SettingsCard title={t("settings.power")}>
- <SettingsRow
- title={t("settings.keepAwakeWhileRunning")}
- description={t("settings.keepAwakeWhileRunningDesc")}
- >
- <SettingsToggle
- checked={settings.keepAwakeWhileRunning === true}
- label={t("settings.keepAwakeWhileRunning")}
- onChange={() => void saveSettings({
- keepAwakeWhileRunning: settings.keepAwakeWhileRunning !== true,
- })}
- />
- </SettingsRow>
- <SettingsRow
- title={t("settings.preventScreenSleep")}
- description={t("settings.preventScreenSleepDesc")}
- >
- <SettingsToggle
- checked={settings.preventScreenSleep === true}
- label={t("settings.preventScreenSleep")}
- onChange={() => void saveSettings({ preventScreenSleep: !settings.preventScreenSleep })}
- />
- </SettingsRow>
- </SettingsCard>
-
- {platform !== "darwin" && <CloseBehaviorSection />}
- </div>
+ {tab === "chat" && settings && (
+ <ConversationSettings settings={settings} saveSettings={saveSettings} />
)}
- {tab === "ai" && settings && (
- <div className="settings-stack">
- <SettingsCard title={t("settings.permissions")}>
- <SettingsRow
- title={t("settings.permissionMode")}
- description={t("settings.permissionModeDesc")}
- >
- <SettingsMenuSelect
- className="settings-permission-select"
- label={t("settings.permissionMode")}
- value={settings.defaultPermissionMode ?? "ask"}
- onChange={(mode) =>
- void saveSettings({
- defaultPermissionMode: mode as GlobalPermissionMode,
- })
- }
- options={[
- { id: "ask", label: t("settings.permissionModeAsk") },
- {
- id: "accept-edits",
- label: t("settings.permissionModeAcceptEdits"),
- },
- { id: "auto", label: t("settings.permissionModeAuto") },
- ]}
- />
- </SettingsRow>
- </SettingsCard>
-
- <SettingsCard title={t("settings.defaultsTitle")}>
- <SettingsRow title={t("settings.mode")} description={t("settings.modeDesc")}>
- <SegmentedControl
- value={settings.defaultMode ?? "agent"}
- onChange={(value) => void saveSettings({ defaultMode: value })}
- options={[
- { value: "agent", label: t("settings.modeAgent") },
- { value: "plan", label: t("settings.modePlan") },
- { value: "goal", label: t("settings.modeGoal") },
- ]}
- label={t("settings.mode")}
- role="group"
- />
- </SettingsRow>
- <CommandShellRow settings={settings} saveSettings={saveSettings} />
- <LinkOpenTargetRow settings={settings} saveSettings={saveSettings} />
- <ShowThinkingRow settings={settings} saveSettings={saveSettings} />
- <AutoCollapseThinkingRow settings={settings} saveSettings={saveSettings} />
- <TranscriptDisplayModeRow settings={settings} saveSettings={saveSettings} />
- <AutoCollapseSettledGroupsRow settings={settings} saveSettings={saveSettings} />
- <ContextUsageDisplayRow
- settings={settings}
- saveSettings={saveSettings}
- />
- <SettingsRow
- title={t("settings.enterToSend")}
- description={t("settings.enterToSendDesc")}
- >
- <SettingsToggle
- checked={settings.enterToSend}
- label={t("settings.enterToSend")}
- onChange={() => void saveSettings({ enterToSend: !settings.enterToSend })}
- />
- </SettingsRow>
- <SettingsRow
- title={t("settings.infiniteProviderRetry")}
- description={t("settings.infiniteProviderRetryDesc")}
- >
- <SettingsToggle
- checked={settings.infiniteProviderRetry === true}
- label={t("settings.infiniteProviderRetry")}
- onChange={() => void saveSettings({ infiniteProviderRetry: settings.infiniteProviderRetry !== true })}
- />
- </SettingsRow>
- <SettingsRow
- title={t("settings.smoothStreaming")}
- description={t("settings.smoothStreamingDesc")}
- >
- <SettingsToggle
- checked={settings.smoothStreaming !== false}
- label={t("settings.smoothStreaming")}
- onChange={() => void saveSettings({ smoothStreaming: !(settings.smoothStreaming !== false) })}
- />
- </SettingsRow>
- <SettingsRow
- title={t("settings.inlineVisualizations")}
- description={t("settings.inlineVisualizationsDesc")}
- >
- <SettingsToggle
- checked={settings.inlineVisualizations === true}
- label={t("settings.inlineVisualizations")}
- onChange={() =>
- void saveSettings({
- inlineVisualizations: settings.inlineVisualizations !== true,
- })
- }
- />
- </SettingsRow>
- <LargePasteThresholdRow
- settings={settings}
- saveSettings={saveSettings}
- />
- </SettingsCard>
-
- <ComputerUseSettings t={t} settings={settings} saveSettings={saveSettings} />
- </div>
+ {tab === "behavior" && settings && (
+ <AgentBehaviorSettings settings={settings} saveSettings={saveSettings} />
+ )}
+
+ {tab === "system" && settings && (
+ <SystemSettings
+ settings={settings}
+ saveSettings={saveSettings}
+ platform={platform}
+ />
)}
{tab === "voice" && !tabHidden && settings && (
@@ -672,46 +480,7 @@ export function SettingsPage() {
{tab === "remoteHosts" && !tabHidden && <RemoteHostsPage />}
{tab === "about" && (
- <div className="settings-stack">
- <div className="settings-about-hero">
- <div className="settings-about-hero-name">
- {version?.name || "PI-Desktop"}
- </div>
- <div className="settings-about-hero-version">
- {t("settings.aboutVersion", { version: version?.version ?? "" })}
- </div>
- <div className="settings-about-hero-meta">
- protocol {version?.protocolVersion} · host {version?.hostVersion}
- </div>
- </div>
- <UpdatesRow
- currentVersion={version?.version}
- settings={settings ?? null}
- saveSettings={saveSettings}
- />
- <SettingsCard>
- <SettingsRow title={t("settings.logs")}>
- <Button variant="secondary" onClick={() => void api.openLogs()}>
- {t("settings.openLogs")}
- </Button>
- </SettingsRow>
- <SettingsRow
- title={t("settings.feedback")}
- description={t("settings.feedbackDesc")}
- >
- <Button
- variant="secondary"
- onClick={() => void api.openFeedback().catch(() => undefined)}
- >
- {t("settings.openFeedback")}
- </Button>
- </SettingsRow>
- </SettingsCard>
-
- {settings && (
- <DeveloperSection settings={settings} saveSettings={saveSettings} />
- )}
- </div>
+ <AboutSettings settings={settings ?? null} saveSettings={saveSettings} />
)}
</>}
diff --git a/apps/desktop/src/features/settings/pages/AboutSettings.tsx b/apps/desktop/src/features/settings/pages/AboutSettings.tsx
new file mode 100644
index 000000000..24451daa3
--- /dev/null
+++ b/apps/desktop/src/features/settings/pages/AboutSettings.tsx
@@ -0,0 +1,64 @@
+/**
+ * Info destination: what is installed, how it updates, and the two ways out of
+ * a problem (logs, bug report). The Developer card stays here because the
+ * things it unlocks are diagnostics, not preferences.
+ */
+import type { AppSettings } from "@pi-desktop/shared";
+import { useTranslation } from "react-i18next";
+import { api } from "../../../lib/api";
+import { useAppStore } from "../../../stores/app-store";
+import { Button } from "../../../components/ui";
+import { UpdatesRow } from "../agent-sections";
+import { DeveloperSection } from "../developer-sections";
+import { SettingsCard, SettingsRow } from "../primitives";
+
+export function AboutSettings({
+ settings,
+ saveSettings,
+}: {
+ settings: AppSettings | null;
+ saveSettings: (patch: Partial<AppSettings>) => Promise<void>;
+}) {
+ const { t } = useTranslation();
+ const version = useAppStore((s) => s.version);
+ return (
+ <div className="settings-stack">
+ <div className="settings-about-hero">
+ <div className="settings-about-hero-name">{version?.name || "PI-Desktop"}</div>
+ <div className="settings-about-hero-version">
+ {t("settings.aboutVersion", { version: version?.version ?? "" })}
+ </div>
+ <div className="settings-about-hero-meta">
+ protocol {version?.protocolVersion} · host {version?.hostVersion}
+ </div>
+ </div>
+ <UpdatesRow
+ currentVersion={version?.version}
+ settings={settings}
+ saveSettings={saveSettings}
+ />
+ <SettingsCard>
+ <SettingsRow title={t("settings.logs")}>
+ <Button variant="secondary" onClick={() => void api.openLogs()}>
+ {t("settings.openLogs")}
+ </Button>
+ </SettingsRow>
+ <SettingsRow
+ title={t("settings.feedback")}
+ description={t("settings.feedbackDesc")}
+ >
+ <Button
+ variant="secondary"
+ onClick={() => void api.openFeedback().catch(() => undefined)}
+ >
+ {t("settings.openFeedback")}
+ </Button>
+ </SettingsRow>
+ </SettingsCard>
+
+ {settings && (
+ <DeveloperSection settings={settings} saveSettings={saveSettings} />
+ )}
+ </div>
+ );
+}
diff --git a/apps/desktop/src/features/settings/pages/AgentBehaviorSettings.tsx b/apps/desktop/src/features/settings/pages/AgentBehaviorSettings.tsx
new file mode 100644
index 000000000..1b0ececdd
--- /dev/null
+++ b/apps/desktop/src/features/settings/pages/AgentBehaviorSettings.tsx
@@ -0,0 +1,98 @@
+/**
+ * Agent behavior destination (D684): what a new conversation starts with, and
+ * what the agent is allowed to do while it runs.
+ *
+ * Session defaults and Execution replace the old Defaults card, which had
+ * grown into the page's catch-all: it mixed these decisions with transcript
+ * presentation and composer input, which are now the Conversation
+ * destination.
+ */
+import type { AppSettings, GlobalPermissionMode } from "@pi-desktop/shared";
+import { useTranslation } from "react-i18next";
+import { SegmentedControl, SettingsToggle } from "../../../components/ui";
+import { SettingsMenuSelect } from "../../../components/settings/SettingsMenuSelect";
+import { ComputerUseSettings } from "../computer-use/ComputerUseSettings";
+import { CommandShellRow, SettingsCard, SettingsRow } from "../primitives";
+
+export function AgentBehaviorSettings({
+ settings,
+ saveSettings,
+}: {
+ settings: AppSettings;
+ saveSettings: (patch: Partial<AppSettings>) => Promise<void>;
+}) {
+ const { t } = useTranslation();
+ return (
+ <div className="settings-stack">
+ <SettingsCard
+ title={t("settings.sessionDefaults")}
+ caption={t("settings.sessionDefaultsCaption")}
+ >
+ <SettingsRow title={t("settings.mode")} description={t("settings.modeDesc")}>
+ <SegmentedControl
+ value={settings.defaultMode ?? "agent"}
+ onChange={(value) => void saveSettings({ defaultMode: value })}
+ options={[
+ { value: "agent", label: t("settings.modeAgent") },
+ { value: "plan", label: t("settings.modePlan") },
+ { value: "goal", label: t("settings.modeGoal") },
+ ]}
+ label={t("settings.mode")}
+ role="group"
+ />
+ </SettingsRow>
+ <SettingsRow
+ title={t("settings.permissionMode")}
+ description={t("settings.permissionModeDesc")}
+ >
+ <SettingsMenuSelect
+ className="settings-permission-select"
+ label={t("settings.permissionMode")}
+ value={settings.defaultPermissionMode ?? "ask"}
+ onChange={(mode) =>
+ void saveSettings({
+ defaultPermissionMode: mode as GlobalPermissionMode,
+ })
+ }
+ options={[
+ { id: "ask", label: t("settings.permissionModeAsk") },
+ {
+ id: "accept-edits",
+ label: t("settings.permissionModeAcceptEdits"),
+ },
+ { id: "auto", label: t("settings.permissionModeAuto") },
+ ]}
+ />
+ </SettingsRow>
+ <CommandShellRow settings={settings} saveSettings={saveSettings} />
+ </SettingsCard>
+
+ <SettingsCard title={t("settings.execution")}>
+ <SettingsRow
+ title={t("settings.infiniteProviderRetry")}
+ description={t("settings.infiniteProviderRetryDesc")}
+ >
+ <SettingsToggle
+ checked={settings.infiniteProviderRetry === true}
+ label={t("settings.infiniteProviderRetry")}
+ onChange={() => void saveSettings({ infiniteProviderRetry: settings.infiniteProviderRetry !== true })}
+ />
+ </SettingsRow>
+ <SettingsRow
+ title={t("settings.scheduledTasks")}
+ description={t("settings.scheduledTasksDesc")}
+ >
+ <SettingsToggle
+ checked={settings.scheduledTasksEnabled !== false}
+ label={t("settings.scheduledTasks")}
+ onChange={() => void saveSettings({
+ scheduledTasksEnabled: settings.scheduledTasksEnabled === false,
+ })}
+ />
+ </SettingsRow>
+ </SettingsCard>
+
+ <ComputerUseSettings t={t} settings={settings} saveSettings={saveSettings} />
+ </div>
+ );
+}
diff --git a/apps/desktop/src/features/settings/pages/AppearanceSettings.tsx b/apps/desktop/src/features/settings/pages/AppearanceSettings.tsx
new file mode 100644
index 000000000..22d07323d
--- /dev/null
+++ b/apps/desktop/src/features/settings/pages/AppearanceSettings.tsx
@@ -0,0 +1,99 @@
+/**
+ * Appearance destination (D684): everything that decides how the app looks.
+ *
+ * The old General destination also carried proxies, disk maintenance, power
+ * blockers and the close-button behavior. Those are machine concerns, not
+ * looks, and they now live in System — so this page can be read top to bottom
+ * as one subject.
+ */
+import type { AppSettings, ShortcutPlatform } from "@pi-desktop/shared";
+import { useTranslation } from "react-i18next";
+import { SettingsToggle } from "../../../components/ui";
+import { FontFamilyRow } from "../../../components/settings/FontFamilyRow";
+import { FontSizeRow } from "../../../components/settings/FontSizeRow";
+import { LanguageRow } from "../../../components/settings/LanguageRow";
+import { MacosWindowTranslucencyRow } from "../../../components/settings/MacosWindowTranslucencyRow";
+import { RadialMenuSettings } from "../../../components/settings/RadialMenuSettings";
+import { StartupAnimationRows } from "../../../components/settings/StartupAnimationRows";
+import { ThemeRow } from "../../../components/settings/ThemeRow";
+import { SettingsCard, SettingsRow } from "../primitives";
+
+export function AppearanceSettings({
+ settings,
+ saveSettings,
+ platform,
+}: {
+ settings: AppSettings;
+ saveSettings: (patch: Partial<AppSettings>) => Promise<void>;
+ platform: ShortcutPlatform;
+}) {
+ const { t } = useTranslation();
+ return (
+ <div className="settings-stack">
+ <SettingsCard title={t("settings.interface")}>
+ <ThemeRow settings={settings} saveSettings={saveSettings} />
+ <LanguageRow settings={settings} saveSettings={saveSettings} />
+ <FontFamilyRow settings={settings} saveSettings={saveSettings} />
+ <FontSizeRow settings={settings} saveSettings={saveSettings} />
+ {platform === "darwin" && (
+ <MacosWindowTranslucencyRow settings={settings} saveSettings={saveSettings} />
+ )}
+ </SettingsCard>
+
+ <SettingsCard title={t("settings.sidebar")}>
+ <SettingsRow
+ title={t("settings.sidebarRunningIndicators")}
+ description={t("settings.sidebarRunningIndicatorsDesc")}
+ >
+ <SettingsToggle
+ checked={settings.sidebarRunningIndicators === true}
+ label={t("settings.sidebarRunningIndicators")}
+ onChange={() => void saveSettings({
+ sidebarRunningIndicators: settings.sidebarRunningIndicators !== true,
+ })}
+ />
+ </SettingsRow>
+ {/*
+ The two sub-switches are gated by the master switch. They keep
+ their stored value while disabled, so turning the master back
+ on restores the previous choice instead of resetting it.
+ */}
+ <SettingsRow title={t("settings.sidebarRunningBadge")} nested>
+ <SettingsToggle
+ checked={settings.sidebarRunningBadge === true}
+ label={t("settings.sidebarRunningBadge")}
+ disabled={settings.sidebarRunningIndicators !== true}
+ onChange={() => void saveSettings({
+ sidebarRunningBadge: settings.sidebarRunningBadge !== true,
+ })}
+ />
+ </SettingsRow>
+ <SettingsRow title={t("settings.sidebarRunningRail")} nested>
+ <SettingsToggle
+ checked={settings.sidebarRunningRail === true}
+ label={t("settings.sidebarRunningRail")}
+ disabled={settings.sidebarRunningIndicators !== true}
+ onChange={() => void saveSettings({
+ sidebarRunningRail: settings.sidebarRunningRail !== true,
+ })}
+ />
+ </SettingsRow>
+ <SettingsRow title={t("settings.sidebarSessionTime")}>
+ <SettingsToggle
+ checked={settings.sidebarSessionTime === true}
+ label={t("settings.sidebarSessionTime")}
+ onChange={() => void saveSettings({
+ sidebarSessionTime: settings.sidebarSessionTime !== true,
+ })}
+ />
+ </SettingsRow>
+ </SettingsCard>
+
+ <RadialMenuSettings settings={settings} saveSettings={saveSettings} />
+
+ <SettingsCard title={t("settings.startup")}>
+ <StartupAnimationRows settings={settings} saveSettings={saveSettings} />
+ </SettingsCard>
+ </div>
+ );
+}
diff --git a/apps/desktop/src/features/settings/pages/ConversationSettings.tsx b/apps/desktop/src/features/settings/pages/ConversationSettings.tsx
new file mode 100644
index 000000000..1b5f3feb5
--- /dev/null
+++ b/apps/desktop/src/features/settings/pages/ConversationSettings.tsx
@@ -0,0 +1,84 @@
+/**
+ * Conversation destination (D684): how a transcript is presented and how the
+ * composer takes input.
+ *
+ * These rows used to sit in the AI destination's Defaults card, between the
+ * permission mode and the command shell. Nothing here changes what the model
+ * does — the Display card says so once, so no row has to repeat it.
+ */
+import type { AppSettings } from "@pi-desktop/shared";
+import { useTranslation } from "react-i18next";
+import { SettingsToggle } from "../../../components/ui";
+import { ShowThinkingRow } from "../../../components/settings/ShowThinkingRow";
+import { TranscriptDisplayModeRow } from "../../../components/settings/TranscriptDisplayModeRow";
+import {
+ AutoCollapseSettledGroupsRow,
+ AutoCollapseThinkingRow,
+} from "../../../components/settings/TranscriptFoldingRows";
+import {
+ ContextUsageDisplayRow,
+ LargePasteThresholdRow,
+ LinkOpenTargetRow,
+ SettingsCard,
+ SettingsRow,
+} from "../primitives";
+
+export function ConversationSettings({
+ settings,
+ saveSettings,
+}: {
+ settings: AppSettings;
+ saveSettings: (patch: Partial<AppSettings>) => Promise<void>;
+}) {
+ const { t } = useTranslation();
+ return (
+ <div className="settings-stack">
+ <SettingsCard title={t("settings.chatDisplay")} caption={t("settings.chatDisplayCaption")}>
+ <ShowThinkingRow settings={settings} saveSettings={saveSettings} />
+ <AutoCollapseThinkingRow settings={settings} saveSettings={saveSettings} />
+ <TranscriptDisplayModeRow settings={settings} saveSettings={saveSettings} />
+ <AutoCollapseSettledGroupsRow settings={settings} saveSettings={saveSettings} />
+ <ContextUsageDisplayRow settings={settings} saveSettings={saveSettings} />
+ <SettingsRow
+ title={t("settings.smoothStreaming")}
+ description={t("settings.smoothStreamingDesc")}
+ >
+ <SettingsToggle
+ checked={settings.smoothStreaming !== false}
+ label={t("settings.smoothStreaming")}
+ onChange={() => void saveSettings({ smoothStreaming: !(settings.smoothStreaming !== false) })}
+ />
+ </SettingsRow>
+ <SettingsRow
+ title={t("settings.inlineVisualizations")}
+ description={t("settings.inlineVisualizationsDesc")}
+ >
+ <SettingsToggle
+ checked={settings.inlineVisualizations === true}
+ label={t("settings.inlineVisualizations")}
+ onChange={() =>
+ void saveSettings({
+ inlineVisualizations: settings.inlineVisualizations !== true,
+ })
+ }
+ />
+ </SettingsRow>
+ </SettingsCard>
+
+ <SettingsCard title={t("settings.chatInput")}>
+ <SettingsRow
+ title={t("settings.enterToSend")}
+ description={t("settings.enterToSendDesc")}
+ >
+ <SettingsToggle
+ checked={settings.enterToSend}
+ label={t("settings.enterToSend")}
+ onChange={() => void saveSettings({ enterToSend: !settings.enterToSend })}
+ />
+ </SettingsRow>
+ <LargePasteThresholdRow settings={settings} saveSettings={saveSettings} />
+ <LinkOpenTargetRow settings={settings} saveSettings={saveSettings} />
+ </SettingsCard>
+ </div>
+ );
+}
diff --git a/apps/desktop/src/features/settings/pages/SystemSettings.tsx b/apps/desktop/src/features/settings/pages/SystemSettings.tsx
new file mode 100644
index 000000000..bbd312c4a
--- /dev/null
+++ b/apps/desktop/src/features/settings/pages/SystemSettings.tsx
@@ -0,0 +1,61 @@
+/**
+ * System destination (D684): the machine-level settings that used to be
+ * appended to General — outbound network, where application data lives, sleep
+ * blockers, and what the window's close button does.
+ *
+ * They share one property: they are about this installation rather than about
+ * the product's look or the agent's behavior.
+ */
+import type { AppSettings, ShortcutPlatform } from "@pi-desktop/shared";
+import { useTranslation } from "react-i18next";
+import { SettingsToggle } from "../../../components/ui";
+import { NetworkProxySection } from "../../../components/settings/NetworkProxySection";
+import { CloseBehaviorSection } from "../developer-sections";
+import { SettingsCard, SettingsRow } from "../primitives";
+import { StorageSettingsSection } from "../StorageSettingsSection";
+
+export function SystemSettings({
+ settings,
+ saveSettings,
+ platform,
+}: {
+ settings: AppSettings;
+ saveSettings: (patch: Partial<AppSettings>) => Promise<void>;
+ platform: ShortcutPlatform;
+}) {
+ const { t } = useTranslation();
+ return (
+ <div className="settings-stack">
+ <NetworkProxySection settings={settings} saveSettings={saveSettings} />
+
+ <StorageSettingsSection />
+
+ <SettingsCard title={t("settings.power")}>
+ <SettingsRow
+ title={t("settings.keepAwakeWhileRunning")}
+ description={t("settings.keepAwakeWhileRunningDesc")}
+ >
+ <SettingsToggle
+ checked={settings.keepAwakeWhileRunning === true}
+ label={t("settings.keepAwakeWhileRunning")}
+ onChange={() => void saveSettings({
+ keepAwakeWhileRunning: settings.keepAwakeWhileRunning !== true,
+ })}
+ />
+ </SettingsRow>
+ <SettingsRow
+ title={t("settings.preventScreenSleep")}
+ description={t("settings.preventScreenSleepDesc")}
+ >
+ <SettingsToggle
+ checked={settings.preventScreenSleep === true}
+ label={t("settings.preventScreenSleep")}
+ onChange={() => void saveSettings({ preventScreenSleep: !settings.preventScreenSleep })}
+ />
+ </SettingsRow>
+ </SettingsCard>
+
+ {platform !== "darwin" && <CloseBehaviorSection />}
+ </div>
+ );
+}
diff --git a/apps/desktop/src/features/settings/primitives.tsx b/apps/desktop/src/features/settings/primitives.tsx
index 52dc47582..9ebda729a 100644
--- a/apps/desktop/src/features/settings/primitives.tsx
+++ b/apps/desktop/src/features/settings/primitives.tsx
@@ -60,44 +60,56 @@ export function SettingsRow({
}
/**
- * A titled group of rows. `description` follows the same rule as a row's: it
- * explains the card, so it lives behind the heading's help icon. `action` is a
- * card-level control (for example a link to another Settings destination) and
- * belongs on the heading line, not among the rows.
+ * A titled group of rows.
+ *
+ * `caption` is one short line under the heading, always visible: it says what
+ * the group is for, which is the cheapest way to stop a reader hovering every
+ * row to find out (D684). It is for orientation only — a sentence that needs a
+ * second sentence is a `description`, which follows a row's rule and lives
+ * behind the heading's help icon. `action` is a card-level control (for
+ * example a link to another Settings destination) and belongs on the heading
+ * line, not among the rows.
*/
export function SettingsCard({
title,
+ caption,
description,
action,
children,
}: {
title?: string;
+ /** One visible line of orientation under the heading. */
+ caption?: string;
description?: string;
/** Card-level control rendered at the end of the heading line. */
action?: ReactNode;
children: ReactNode;
}) {
+ /*
+ The help mark is the heading's sibling, not its child: a nested button
+ joins the heading's accessible name, and a screen reader's list of
+ headings should not read out every explanation.
+ */
+ const headline = (
+ <div className="settings-card-headline">
+ <div className="settings-card-heading-help">
+ <h3 className="settings-card-heading">{title}</h3>
+ {description ? <HelpIcon label={description} /> : null}
+ </div>
+ {caption ? <p className="settings-card-caption">{caption}</p> : null}
+ </div>
+ );
return (
<section className="settings-card-block">
{title ? (
- /*
- The help mark is the heading's sibling, not its child: a nested
- button joins the heading's accessible name, and a screen reader's
- list of headings should not read out every explanation.
- */
- <div
- className={
- action
- ? "settings-card-heading-row settings-card-heading-with-action"
- : "settings-card-heading-help"
- }
- >
- <div className="settings-card-heading-help">
- <h3 className="settings-card-heading">{title}</h3>
- {description ? <HelpIcon label={description} /> : null}
+ action ? (
+ <div className="settings-card-heading-row settings-card-heading-with-action">
+ {headline}
+ {action}
</div>
- {action}
- </div>
+ ) : (
+ headline
+ )
) : null}
<div className="settings-panel">{children}</div>
</section>
diff --git a/apps/desktop/src/lib/settings-search.ts b/apps/desktop/src/lib/settings-search.ts
index 443caa29f..2ce88bce5 100644
--- a/apps/desktop/src/lib/settings-search.ts
+++ b/apps/desktop/src/lib/settings-search.ts
@@ -3,21 +3,29 @@
* the global search dialog. Keyword keys are the i18n keys of the rows
* rendered inside each tab; search matches their translations, so a query
* like "主题" or "theme" can surface the tab that owns the row.
+ *
+ * One destination owns one subject (D684). A destination that mixed subjects —
+ * the old General, which carried appearance next to proxies and disk
+ * maintenance, and the old AI, whose Defaults card collected transcript
+ * display, composer input and run behavior — is split rather than reordered,
+ * because no card order makes two subjects one page.
*/
export type SettingsTabId =
- | "general"
- | "ai"
+ | "appearance"
+ | "chat"
| "shortcuts"
- | "instructions"
+ | "voice"
+ | "behavior"
| "agent"
+ | "instructions"
| "skills"
| "mcp"
| "subagents"
| "projects"
+ | "system"
| "sync"
| "remoteHosts"
- | "voice"
| "about";
export type SettingsNavGroupId =
@@ -33,12 +41,27 @@ export const SETTINGS_NAV_GROUP_LABELS: Record<SettingsNavGroupId, string> = {
system: "settings.groupSystem",
};
+/** Destination Settings opens on when nothing else is requested. */
+export const DEFAULT_SETTINGS_TAB: SettingsTabId = "appearance";
+
+/** Where a destination id retired by the D684 split lands now. */
+const RETIRED_SETTINGS_TABS: Record<string, SettingsTabId> = {
+ general: "appearance",
+ ai: "behavior",
+};
+
export type SettingsNavEntry = {
id: SettingsTabId;
/** Short label used by the rail and settings search results. */
labelKey: string;
/** Descriptive title used at the top of the selected settings page. */
titleKey: string;
+ /**
+ * One line under the page title saying what the destination decides. It is
+ * set only for destinations whose own content does not already open with a
+ * description — the capability, model and project workbenches do.
+ */
+ subtitleKey?: string;
/** Visual-only rail grouping; search remains a flat destination index. */
group: SettingsNavGroupId;
/** i18n keys of the rows inside the tab; search matches their translations. */
@@ -56,51 +79,26 @@ export type SettingsNavEntry = {
export const SETTINGS_NAV: SettingsNavEntry[] = [
{
- id: "general",
- labelKey: "settings.nav.general",
- titleKey: "settings.general",
+ id: "appearance",
+ labelKey: "settings.nav.appearance",
+ titleKey: "settings.appearance",
+ subtitleKey: "settings.appearanceSubtitle",
group: "preferences",
keywordKeys: [
"settings.appearance",
- "settings.storage.title",
- "settings.storage.dataPath",
- "settings.storage.cache",
- "settings.storage.clearCache",
- "settings.storage.backup",
"settings.theme",
"settings.language",
"settings.languageAuto",
"settings.font",
"settings.fontSize",
- "settings.closeBehaviorTitle",
- "settings.closeBehaviorTray",
- "settings.closeBehaviorQuit",
- "settings.power",
- "settings.keepAwakeWhileRunning",
- "settings.keepAwakeWhileRunningDesc",
- "settings.network",
- "settings.proxy",
- "settings.proxySystem",
- "settings.proxyDirect",
- "settings.proxyCustom",
- "settings.proxyUrl",
- "settings.networkRelaxedModeDesc",
- "settings.networkRelaxedModeStrictDesc",
- "settings.preventScreenSleep",
- "settings.preventScreenSleepDesc",
- "settings.scheduledTasks",
- "settings.scheduledTasksDesc",
+ "settings.windowTranslucency",
+ "settings.windowTranslucencyDesc",
"settings.sidebar",
"settings.sidebarRunningIndicators",
"settings.sidebarRunningIndicatorsDesc",
"settings.sidebarRunningBadge",
+ "settings.sidebarRunningRail",
"settings.sidebarSessionTime",
- "settings.windowTranslucency",
- "settings.windowTranslucencyDesc",
- "settings.startupAnimation",
- "settings.startupAnimationDesc",
- "settings.startupAnimationSkipWhenReady",
- "settings.startupAnimationSkipWhenReadyDesc",
"settings.radialMenu",
"settings.radialMenuDesc",
"settings.radialMenuEnable",
@@ -110,43 +108,56 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
"settings.radialMenuDown",
"settings.radialMenuLeft",
"settings.radialMenuActionNone",
+ "settings.startupAnimation",
+ "settings.startupAnimationDesc",
+ "settings.startupAnimationSkipWhenReady",
+ "settings.startupAnimationSkipWhenReadyDesc",
],
},
{
- id: "ai",
- labelKey: "settings.nav.ai",
- titleKey: "settings.ai",
+ id: "chat",
+ labelKey: "settings.nav.chat",
+ titleKey: "settings.conversation",
+ subtitleKey: "settings.conversationSubtitle",
group: "preferences",
+ // Indexed in the order the rows render, so a search result and the page it
+ // opens read the same way.
keywordKeys: [
- "settings.permissions",
- "settings.permissionMode",
- "settings.permissionModeAsk",
- "settings.permissionModeAcceptEdits",
- "settings.permissionModeAuto",
- "settings.defaultsTitle",
- "settings.imageModel",
- "settings.mode",
- "settings.commandShell",
- "settings.linkOpenTarget",
- "settings.enterToSend",
- "settings.infiniteProviderRetry",
- "settings.infiniteProviderRetryDesc",
- "settings.smoothStreaming",
- "settings.inlineVisualizations",
- "settings.inlineVisualizationsDesc",
- "settings.smoothStreamingDesc",
+ "settings.chatDisplay",
"settings.showThinking",
"settings.showThinkingDesc",
- "settings.transcriptDisplayMode",
- "settings.transcriptDisplayModeDesc",
"settings.autoCollapseThinking",
"settings.autoCollapseThinkingDesc",
+ "settings.transcriptDisplayMode",
+ "settings.transcriptDisplayModeDesc",
"settings.autoCollapseSettledGroups",
"settings.autoCollapseSettledGroupsDesc",
"settings.contextUsageDisplay",
"settings.contextUsageDisplayRemaining",
"settings.contextUsageDisplayUsed",
+ "settings.smoothStreaming",
+ "settings.smoothStreamingDesc",
+ "settings.inlineVisualizations",
+ "settings.inlineVisualizationsDesc",
+ "settings.chatInput",
+ "settings.enterToSend",
+ "settings.enterToSendDesc",
"settings.largePasteThreshold",
+ "settings.linkOpenTarget",
+ ],
+ },
+ {
+ id: "shortcuts",
+ labelKey: "settings.nav.shortcuts",
+ titleKey: "settings.shortcuts",
+ subtitleKey: "settings.shortcutsSubtitle",
+ group: "preferences",
+ keywordKeys: [
+ "settings.keyboard",
+ "settings.shortcutAction.openSearch",
+ "settings.shortcutAction.openCommandPalette",
+ "settings.shortcutAction.toggleSidebar",
+ "settings.shortcutAction.openWorkPanel",
],
},
{
@@ -167,26 +178,28 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
],
},
{
- id: "shortcuts",
- labelKey: "settings.nav.shortcuts",
- titleKey: "settings.shortcuts",
- group: "preferences",
- keywordKeys: [
- "settings.keyboard",
- "settings.shortcutAction.openSearch",
- "settings.shortcutAction.openCommandPalette",
- "settings.shortcutAction.toggleSidebar",
- "settings.shortcutAction.openWorkPanel",
- ],
- },
- {
- id: "instructions",
- labelKey: "settings.nav.instructions",
- titleKey: "settings.instructions",
+ id: "behavior",
+ labelKey: "settings.nav.behavior",
+ titleKey: "settings.agentBehavior",
+ subtitleKey: "settings.agentBehaviorSubtitle",
group: "agent",
keywordKeys: [
- "settings.instructionsGlobal",
- "settings.instructionsPath",
+ "settings.sessionDefaults",
+ "settings.execution",
+ "settings.mode",
+ "settings.modeDesc",
+ "settings.permissions",
+ "settings.permissionMode",
+ "settings.permissionModeDesc",
+ "settings.permissionModeAsk",
+ "settings.permissionModeAcceptEdits",
+ "settings.permissionModeAuto",
+ "settings.commandShell",
+ "settings.infiniteProviderRetry",
+ "settings.infiniteProviderRetryDesc",
+ "settings.scheduledTasks",
+ "settings.scheduledTasksDesc",
+ "computerUse.title",
],
},
{
@@ -200,6 +213,7 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
"settings.apiKey",
"settings.baseUrl",
"settings.apiStyle",
+ "settings.imageModel",
// Subscription accounts share the service list (D625).
"settings.vendorAccounts",
"settings.vendorSubscription",
@@ -213,6 +227,16 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
"settings.importSourceCcSwitch",
],
},
+ {
+ id: "instructions",
+ labelKey: "settings.nav.instructions",
+ titleKey: "settings.instructions",
+ group: "agent",
+ keywordKeys: [
+ "settings.instructionsGlobal",
+ "settings.instructionsPath",
+ ],
+ },
{
id: "skills",
labelKey: "settings.nav.skills",
@@ -293,6 +317,36 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
"project.delete",
],
},
+ {
+ id: "system",
+ labelKey: "settings.nav.system",
+ titleKey: "settings.system",
+ subtitleKey: "settings.systemSubtitle",
+ group: "system",
+ keywordKeys: [
+ "settings.network",
+ "settings.proxy",
+ "settings.proxySystem",
+ "settings.proxyDirect",
+ "settings.proxyCustom",
+ "settings.proxyUrl",
+ "settings.networkRelaxedModeDesc",
+ "settings.networkRelaxedModeStrictDesc",
+ "settings.storage.title",
+ "settings.storage.dataPath",
+ "settings.storage.cache",
+ "settings.storage.clearCache",
+ "settings.storage.backup",
+ "settings.power",
+ "settings.keepAwakeWhileRunning",
+ "settings.keepAwakeWhileRunningDesc",
+ "settings.preventScreenSleep",
+ "settings.preventScreenSleepDesc",
+ "settings.closeBehaviorTitle",
+ "settings.closeBehaviorTray",
+ "settings.closeBehaviorQuit",
+ ],
+ },
{
id: "sync",
labelKey: "settings.nav.sync",
@@ -335,6 +389,7 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
id: "about",
labelKey: "settings.nav.info",
titleKey: "settings.about",
+ subtitleKey: "settings.aboutSubtitle",
group: "system",
keywordKeys: [
"settings.application",
@@ -349,6 +404,16 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [
},
];
+/**
+ * Resolve a destination id that may predate the D684 split: an id the index
+ * still owns is returned unchanged, a retired id maps to its successor, and
+ * anything else falls back to the default destination.
+ */
+export function resolveSettingsTab(tab: string): SettingsTabId {
+ if (SETTINGS_NAV.some((entry) => entry.id === tab)) return tab as SettingsTabId;
+ return RETIRED_SETTINGS_TABS[tab] ?? DEFAULT_SETTINGS_TAB;
+}
+
/**
* Destinations the current mode offers. Unavailable destinations are omitted
* from navigation and search rather than disabled.
diff --git a/apps/desktop/src/stores/slices/initial-state.ts b/apps/desktop/src/stores/slices/initial-state.ts
index 18eeb7e63..455d4166e 100644
--- a/apps/desktop/src/stores/slices/initial-state.ts
+++ b/apps/desktop/src/stores/slices/initial-state.ts
@@ -1,4 +1,5 @@
import { loadRecentModels } from "../../lib/recent-models";
+import { DEFAULT_SETTINGS_TAB } from "../../lib/settings-search";
import type { AppState, AppStateData } from "../app-state";
import { projectWorkspaceFromPath } from "../../lib/sidebar-preferences";
import { loadSidebarPreferences } from "../../lib/sidebar-preferences";
@@ -79,7 +80,7 @@ export function createInitialState(): AppStateData {
planCheckpoints: {},
sessionTodos: {},
page: "chat",
- settingsTab: "general",
+ settingsTab: DEFAULT_SETTINGS_TAB,
settingsAnchor: null,
settingsTabNonce: 0,
navStack: [{ page: "chat" }],
diff --git a/apps/desktop/src/stores/slices/interaction-slice.ts b/apps/desktop/src/stores/slices/interaction-slice.ts
index f0af490d5..fb976f50e 100644
--- a/apps/desktop/src/stores/slices/interaction-slice.ts
+++ b/apps/desktop/src/stores/slices/interaction-slice.ts
@@ -18,6 +18,7 @@ import {
import type { AppState } from "../app-state";
import type { InteractionRuntime } from "../runtime/interaction-runtime";
import type { SessionRuntime } from "../runtime/session-runtime";
+import { resolveSettingsTab } from "../../lib/settings-search";
import type { StoreAccess } from "./types";
const PLAN_APPROVAL_TIMEOUT = "PLAN_APPROVAL_TIMEOUT";
@@ -86,7 +87,12 @@ export function createInteractionSlice({
});
},
- setSettingsTab: (settingsTab) => {
+ setSettingsTab: (requested) => {
+ // A destination id can arrive from outside this build's index — a native
+ // menu, a capture scene, or a link written before the D684 split.
+ // Resolving it here lands a retired id on its successor instead of
+ // rendering an empty content pane.
+ const settingsTab = resolveSettingsTab(requested);
get().setPage("settings");
set((state) => ({
settingsTab,
diff --git a/apps/desktop/src/styles/settings.css b/apps/desktop/src/styles/settings.css
index cd6e6d50f..8533237ac 100644
--- a/apps/desktop/src/styles/settings.css
+++ b/apps/desktop/src/styles/settings.css
@@ -237,12 +237,20 @@
gap: 1px;
}
+/*
+ * A cluster heading, not a destination: it drops to the smallest legible step
+ * and spaces its letters, so the eye separates the four clusters before it
+ * reads any single row (D684). Latin labels read as small caps; CJK labels are
+ * unaffected by the transform.
+ */
.settings-nav-group-label {
padding: 0 10px 6px;
color: var(--ds-text-muted);
- font-size: var(--text-md);
- font-weight: var(--font-weight-medium);
+ font-size: var(--text-xs-plus);
+ font-weight: var(--font-weight-semibold);
+ letter-spacing: var(--tracking-wide);
line-height: var(--leading-tight);
+ text-transform: uppercase;
}
.settings-nav-empty {
@@ -256,8 +264,8 @@
width: 100%;
align-items: center;
gap: 10px;
- border-radius: var(--radius-sm);
- padding: 6px 10px;
+ border-radius: var(--radius-md);
+ padding: 7px 10px;
color: var(--ds-text-secondary);
font-size: var(--text-md);
line-height: var(--leading-tight);
@@ -270,8 +278,13 @@
color: var(--ds-text-primary);
}
+/*
+ * The selected destination carries a tint of the accent rather than another
+ * step of gray, and its glyph takes the accent outright: with fifteen rows in
+ * four clusters, "where am I" has to survive a glance (D684).
+ */
.settings-nav-item.active {
- background: var(--ds-settings-nav-active);
+ background: color-mix(in oklab, var(--ds-accent) 12%, var(--ds-settings-nav-active));
color: var(--ds-text-primary);
}
@@ -285,6 +298,11 @@
opacity: 0.9;
}
+.settings-nav-item.active .settings-nav-icon {
+ color: var(--ds-accent);
+ opacity: 1;
+}
+
.settings-nav-label {
min-width: 0;
flex: 1;
@@ -318,11 +336,50 @@
width: 100%;
}
+/*
+ * D684: a page opens with the rail's glyph at page scale, the title, and one
+ * line saying what the destination decides. The icon is a tinted fill, not a
+ * stroked chip, so it stays inside the in-flow surface rule (D297) while
+ * giving each destination a landmark the rail can be read against.
+ */
+.settings-page-header {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ margin: 0 0 28px;
+}
+
+.settings-page-icon {
+ display: inline-flex;
+ width: 38px;
+ height: 38px;
+ flex: 0 0 auto;
+ align-items: center;
+ justify-content: center;
+ border-radius: var(--radius-md-plus);
+ background: color-mix(in oklab, var(--ds-accent) 14%, var(--ds-tile));
+ color: var(--ds-accent);
+}
+
+.settings-page-heading {
+ display: flex;
+ min-width: 0;
+ flex-direction: column;
+ gap: 2px;
+}
+
+.settings-page-subtitle {
+ margin: 0;
+ color: var(--ds-text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-body);
+}
+
.settings-section-title {
display: flex;
align-items: center;
gap: 10px;
- margin: 0 0 28px;
+ margin: 0;
color: var(--ds-text-primary);
font-size: var(--text-2xl);
font-weight: var(--font-weight-strong);
@@ -359,34 +416,44 @@
}
/* The heading's help mark sits beside the heading rather than inside it: a
- nested button would join the heading's accessible name.
- The 10px gap below the heading belongs to this flex row: a margin inside it
- would extend the icon's centering box and lift the question mark off the
- heading text. */
+ nested button would join the heading's accessible name. The gap below the
+ headline belongs to the headline block: a margin inside this row would
+ extend the icon's centering box and lift the question mark off the heading
+ text. */
.settings-card-heading-help {
display: flex;
align-items: center;
- margin-bottom: 10px;
}
.settings-card-heading-help .settings-card-heading {
margin-bottom: 0;
}
-/* A card heading that carries a card-level action keeps heading, help mark and
+/* Heading line plus the optional caption under it (D684). */
+.settings-card-headline {
+ display: flex;
+ min-width: 0;
+ flex-direction: column;
+ gap: 3px;
+ margin-bottom: 10px;
+}
+
+/* One always-visible line of orientation for the group, so a reader does not
+ have to open every row's help mark to learn what the card decides. */
+.settings-card-caption {
+ margin: 0;
+ color: var(--ds-text-secondary);
+ font-size: var(--text-sm-plus);
+ line-height: var(--leading-body);
+}
+
+/* A card heading that carries a card-level action keeps the headline and the
action on one line, centered on each other. */
.settings-card-heading-row.settings-card-heading-with-action {
align-items: center;
}
-.settings-card-heading-row.settings-card-heading-with-action .settings-card-heading-help {
- min-width: 0;
- margin-bottom: 0;
-}
-
-.settings-card-heading-row.settings-card-heading-with-action
- .settings-card-heading-help
- .settings-card-heading {
+.settings-card-heading-row.settings-card-heading-with-action .settings-card-headline {
margin-bottom: 0;
}
@@ -402,6 +469,12 @@
margin-bottom: 3px;
}
+/* Beats the row rule above on declaration order: inside a headline the gap
+ below the heading is the headline's, not the heading's. */
+.settings-card-headline .settings-card-heading {
+ margin-bottom: 0;
+}
+
.settings-text-action {
display: inline-flex;
min-height: 28px;
diff --git a/apps/desktop/test/computer-use-settings-surface.test.mjs b/apps/desktop/test/computer-use-settings-surface.test.mjs
index cc947727f..00f084119 100644
--- a/apps/desktop/test/computer-use-settings-surface.test.mjs
+++ b/apps/desktop/test/computer-use-settings-surface.test.mjs
@@ -4,12 +4,20 @@ import test from "node:test";
import { fileURLToPath } from "node:url";
import { createServer } from "vite";
-test("AI settings place computer use after permissions and defaults", async () => {
- const source = await readFile(new URL("../src/features/settings/SettingsPage.tsx", import.meta.url), "utf8");
- const ai = source.slice(source.indexOf('{tab === "ai"'), source.indexOf('{tab === "voice"'));
- assert.ok(ai.indexOf('t("settings.permissions")') < ai.indexOf('t("settings.defaultsTitle")'));
- assert.ok(ai.indexOf('t("settings.defaultsTitle")') < ai.indexOf("<ComputerUseSettings"));
- assert.match(ai, /<ComputerUseSettings[^>]+\/>\s*<\/div>/);
+test("agent behavior places computer use after the session defaults and execution", async () => {
+ // The destination is Behavior since D684; computer use stays its last card,
+ // after what a run starts with and what it may do.
+ const source = await readFile(
+ new URL("../src/features/settings/pages/AgentBehaviorSettings.tsx", import.meta.url),
+ "utf8",
+ );
+ assert.ok(
+ source.indexOf('t("settings.sessionDefaults")') < source.indexOf('t("settings.execution")'),
+ );
+ assert.ok(
+ source.indexOf('t("settings.execution")') < source.indexOf("<ComputerUseSettings"),
+ );
+ assert.match(source, /<ComputerUseSettings[^>]+\/>\s*<\/div>/);
});
test("computer use keeps controls and required status without explanatory copy", async (t) => {
diff --git a/apps/desktop/test/radial-menu.test.mjs b/apps/desktop/test/radial-menu.test.mjs
index cadd15f7f..426bd9eb8 100644
--- a/apps/desktop/test/radial-menu.test.mjs
+++ b/apps/desktop/test/radial-menu.test.mjs
@@ -64,25 +64,27 @@ test("the transcript keeps the vertical menu unless the ring is enabled", () =>
assert.match(source, /openTranscriptMenu\(event, \{/);
});
-test("the settings card lives in the General tab, not AI", () => {
+test("the settings card lives on the Appearance destination", () => {
+ // The ring is an interface affordance, so it sits with the rest of the
+ // chrome rather than with agent behavior (D684).
const source = readFileSync(
- new URL("../src/features/settings/SettingsPage.tsx", import.meta.url),
+ new URL("../src/features/settings/pages/AppearanceSettings.tsx", import.meta.url),
"utf8",
);
- const generalIndex = source.indexOf('{tab === "general"');
- const cardIndex = source.indexOf("<RadialMenuSettings");
- const aiIndex = source.indexOf('{tab === "ai"');
- assert.ok(generalIndex >= 0 && aiIndex >= 0 && cardIndex >= 0);
- assert.ok(
- generalIndex < cardIndex && cardIndex < aiIndex,
- "RadialMenuSettings must render inside the General tab block",
- );
+ assert.match(source, /<RadialMenuSettings/);
+ for (const file of ["ConversationSettings", "AgentBehaviorSettings", "SystemSettings"]) {
+ const other = readFileSync(
+ new URL(`../src/features/settings/pages/${file}.tsx`, import.meta.url),
+ "utf8",
+ );
+ assert.doesNotMatch(other, /<RadialMenuSettings/);
+ }
});
-test("settings search indexes the ring under General", async () => {
+test("settings search indexes the ring under Appearance", async () => {
const { SETTINGS_NAV } = await import("../src/lib/settings-search.ts");
const owner = SETTINGS_NAV.find((entry) =>
entry.keywordKeys.includes("settings.radialMenu"),
);
- assert.equal(owner?.id, "general");
+ assert.equal(owner?.id, "appearance");
});
diff --git a/apps/desktop/test/scheduled-settings.test.mjs b/apps/desktop/test/scheduled-settings.test.mjs
index 93e4ba49c..1d103f084 100644
--- a/apps/desktop/test/scheduled-settings.test.mjs
+++ b/apps/desktop/test/scheduled-settings.test.mjs
@@ -37,10 +37,12 @@ test("scheduled task switch rejects non-boolean writes at renderer and main boun
}
});
-test("the scheduled task switch remains searchable in General in English and Chinese", () => {
+test("the scheduled task switch remains searchable in Behavior in English and Chinese", () => {
+ // The switch withholds scheduled Agent tools and blocks new runs, so it
+ // belongs to agent behavior rather than to the chrome (D684).
for (const [catalog, query] of [[en, "scheduled tasks"], [zhCN, "定时任务"]]) {
const copy = flattenCatalog(catalog);
const hits = searchSettings(query, (key) => copy[key] ?? key);
- assert.ok(hits.some((hit) => hit.tab === "general" && hit.rowKey === "settings.scheduledTasks"));
+ assert.ok(hits.some((hit) => hit.tab === "behavior" && hit.rowKey === "settings.scheduledTasks"));
}
});
diff --git a/apps/desktop/test/settings-developer-only-destinations.test.mjs b/apps/desktop/test/settings-developer-only-destinations.test.mjs
index 3ee4f54d6..fdfa4ecac 100644
--- a/apps/desktop/test/settings-developer-only-destinations.test.mjs
+++ b/apps/desktop/test/settings-developer-only-destinations.test.mjs
@@ -8,8 +8,10 @@ import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
import {
+ DEFAULT_SETTINGS_TAB,
SETTINGS_NAV,
isSettingsDestinationHidden,
+ resolveSettingsTab,
searchSettings,
visibleSettingsNav,
} from "../src/lib/settings-search.ts";
@@ -144,7 +146,21 @@ test("packaged builds hide developer-only destinations and retain Experimental s
assert.equal(isSettingsDestinationHidden(id, true, false), false);
assert.equal(isSettingsDestinationHidden(id, false, false), false);
}
- assert.equal(isSettingsDestinationHidden("general", true, false), false);
+ assert.equal(isSettingsDestinationHidden("appearance", true, false), false);
+});
+
+test("a destination id retired by the D684 split still opens a page", () => {
+ // A stored selection, a native menu, or a link written before the split must
+ // not land on an empty content pane.
+ assert.equal(resolveSettingsTab("general"), "appearance");
+ assert.equal(resolveSettingsTab("ai"), "behavior");
+ assert.equal(resolveSettingsTab("nonsense"), DEFAULT_SETTINGS_TAB);
+ assert.equal(DEFAULT_SETTINGS_TAB, SETTINGS_NAV[0].id);
+ // An id the index still owns is returned unchanged, including a
+ // developer-gated one: visibility is decided separately.
+ for (const entry of SETTINGS_NAV) {
+ assert.equal(resolveSettingsTab(entry.id), entry.id);
+ }
});
test("settings search mirrors developer and packaged visibility", () => {
@@ -178,7 +194,10 @@ test("settings routes, global search, and composer use build visibility", () =>
assert.match(settingsPage, /const includeDevelopmentOnly = import\.meta\.env\.DEV/);
assert.match(settingsPage, /visibleSettingsNav\(developerMode, includeDevelopmentOnly\)/);
assert.match(settingsPage, /isSettingsDestinationHidden\([\s\S]*includeDevelopmentOnly/);
- assert.match(settingsPage, /setSettingsTab\("general"\)/);
+ // A hidden destination falls back to the default one by name, so the
+ // fallback cannot drift from the index (D684).
+ assert.match(settingsPage, /setSettingsTab\(DEFAULT_SETTINGS_TAB\)/);
+ assert.doesNotMatch(settingsPage, /setSettingsTab\("general"\)/);
assert.match(settingsPage, /tab === "sync" && !tabHidden && <ConfigSyncPage \/>/);
assert.match(settingsPage, /tab === "remoteHosts" && !tabHidden && <RemoteHostsPage \/>/);
assert.match(searchDialog, /includeDevelopmentOnly: import\.meta\.env\.DEV/);
diff --git a/apps/desktop/test/settings-font-size.test.mjs b/apps/desktop/test/settings-font-size.test.mjs
index 4ab5aec5a..dc394a270 100644
--- a/apps/desktop/test/settings-font-size.test.mjs
+++ b/apps/desktop/test/settings-font-size.test.mjs
@@ -17,13 +17,13 @@ const tokensSource = await readFile(
const styles = await loadStyles();
test("Appearance card renders a font-size row after the font family picker", () => {
- const generalStart = settingsPageSource.indexOf(
- '{tab === "general" && settings && (',
- );
- const aiStart = settingsPageSource.indexOf('{tab === "ai" && settings && (');
- const generalSource = settingsPageSource.slice(generalStart, aiStart);
- const fontFamily = generalSource.indexOf("<FontFamilyRow ");
- const fontSize = generalSource.indexOf("<FontSizeRow ");
+ const marker = "/* features/settings/pages/AppearanceSettings.tsx */";
+ const start = settingsPageSource.indexOf(marker);
+ assert.ok(start >= 0, "the Appearance destination is part of the contract");
+ const next = settingsPageSource.indexOf("\n/* features/settings/", start + marker.length);
+ const appearanceSource = settingsPageSource.slice(start, next === -1 ? undefined : next);
+ const fontFamily = appearanceSource.indexOf("<FontFamilyRow ");
+ const fontSize = appearanceSource.indexOf("<FontSizeRow ");
assert.ok(fontFamily >= 0);
assert.ok(fontSize > fontFamily);
});
diff --git a/apps/desktop/test/settings-general.test.mjs b/apps/desktop/test/settings-general.test.mjs
index 85916be18..a5e2752bd 100644
--- a/apps/desktop/test/settings-general.test.mjs
+++ b/apps/desktop/test/settings-general.test.mjs
@@ -118,33 +118,74 @@ const voiceSettingsSource = await readFile(
"utf8",
);
-test("Basics and AI tabs expose their respective app and AI controls", () => {
- const generalStart = settingsPageSource.indexOf('{tab === "general" && settings && (');
- const aiStart = settingsPageSource.indexOf('{tab === "ai" && settings && (');
- const voiceStart = settingsPageSource.indexOf(
- '{tab === "voice" && !tabHidden && settings && (',
- );
- const generalSource = settingsPageSource.slice(generalStart, aiStart);
- const aiSource = settingsPageSource.slice(aiStart, voiceStart);
+/**
+ * One destination, one subject (D684). The settings source contract is the
+ * facade plus every file under features/settings, each chunk introduced by a
+ * path comment, so a destination page is addressed by its file rather than by
+ * a `tab === "…"` branch in the shell.
+ */
+function destinationSource(file) {
+ const marker = `/* features/settings/pages/${file} */`;
+ const start = settingsPageSource.indexOf(marker);
+ assert.notEqual(start, -1, `${file} is not part of the settings source contract`);
+ const next = settingsPageSource.indexOf("\n/* features/settings/", start + marker.length);
+ return settingsPageSource.slice(start, next === -1 ? undefined : next);
+}
+
+test("settings destinations own one subject each", () => {
+ const appearanceSource = destinationSource("AppearanceSettings.tsx");
+ const conversationSource = destinationSource("ConversationSettings.tsx");
+ const behaviorSource = destinationSource("AgentBehaviorSettings.tsx");
+ const systemSource = destinationSource("SystemSettings.tsx");
+
+ // Appearance is looks only: the machine-level cards moved to System.
+ assert.match(appearanceSource, /<ThemeRow /);
+ assert.match(appearanceSource, /<LanguageRow /);
+ assert.match(appearanceSource, /<FontFamilyRow /);
+ assert.match(appearanceSource, /<FontSizeRow /);
+ assert.match(appearanceSource, /<RadialMenuSettings\b/);
+ assert.match(appearanceSource, /<StartupAnimationRows\b/);
+ assert.doesNotMatch(appearanceSource, /<NetworkProxySection /);
+ assert.doesNotMatch(appearanceSource, /<StorageSettingsSection\b/);
+ assert.doesNotMatch(appearanceSource, /keepAwakeWhileRunning:/);
+ assert.doesNotMatch(appearanceSource, /\(\["auto", "zh-CN", "en"\] as const\)/);
+ assert.doesNotMatch(appearanceSource, /defaultMode: value/);
+ assert.doesNotMatch(appearanceSource, /enterToSend: !settings\.enterToSend/);
+ assert.doesNotMatch(appearanceSource, /settings\.defaultsTitle/);
+
+ // System owns network, storage, power and the window's close behavior.
+ assert.match(systemSource, /<NetworkProxySection /);
+ assert.match(systemSource, /<StorageSettingsSection\b/);
+ assert.match(systemSource, /keepAwakeWhileRunning: settings\.keepAwakeWhileRunning !== true/);
+ assert.match(systemSource, /preventScreenSleep: !settings\.preventScreenSleep/);
+ assert.match(systemSource, /platform !== "darwin" && <CloseBehaviorSection \/>/);
+
+ // Conversation owns presentation and composer input, and says once that it
+ // changes neither the model nor what it may do.
+ assert.match(conversationSource, /settings\.chatDisplayCaption/);
+ assert.match(conversationSource, /<ShowThinkingRow /);
+ assert.match(conversationSource, /<TranscriptDisplayModeRow /);
+ assert.match(conversationSource, /ContextUsageDisplayRow/);
+ assert.match(conversationSource, /enterToSend: !settings\.enterToSend/);
+ assert.match(conversationSource, /LargePasteThresholdRow/);
+ assert.match(conversationSource, /<LinkOpenTargetRow /);
+ assert.doesNotMatch(conversationSource, /defaultMode: value/);
+ assert.doesNotMatch(conversationSource, /defaultPermissionMode/);
- assert.match(generalSource, /<ThemeRow /);
- assert.match(generalSource, /<LanguageRow /);
- assert.match(generalSource, /<FontFamilyRow /);
- assert.match(generalSource, /<FontSizeRow /);
- assert.match(generalSource, /<NetworkProxySection /);
- assert.doesNotMatch(generalSource, /\(\["auto", "zh-CN", "en"\] as const\)/);
- assert.doesNotMatch(generalSource, /defaultMode: value/);
- assert.doesNotMatch(generalSource, /enterToSend: !settings\.enterToSend/);
- assert.doesNotMatch(generalSource, /settings\.defaultsTitle/);
- assert.match(aiSource, /defaultMode: value/);
- assert.match(aiSource, /settings\.defaultsTitle/);
- assert.match(aiSource, /CommandShellRow/);
- assert.match(aiSource, /enterToSend: !settings\.enterToSend/);
- assert.match(aiSource, /infiniteProviderRetry: settings\.infiniteProviderRetry !== true/);
- assert.match(aiSource, /LargePasteThresholdRow/);
- assert.match(aiSource, /ContextUsageDisplayRow/);
- assert.doesNotMatch(aiSource, /PromptEnhancementCard|promptEnhancement/);
- assert.doesNotMatch(aiSource, /EnhancementModelCard/);
+ // Agent behavior owns what a run starts with and what it may do.
+ assert.match(behaviorSource, /defaultMode: value/);
+ assert.match(behaviorSource, /settings\.sessionDefaults/);
+ assert.match(behaviorSource, /settings\.execution/);
+ assert.match(behaviorSource, /CommandShellRow/);
+ assert.match(behaviorSource, /infiniteProviderRetry: settings\.infiniteProviderRetry !== true/);
+ assert.match(behaviorSource, /scheduledTasksEnabled: settings\.scheduledTasksEnabled === false/);
+ assert.match(behaviorSource, /<ComputerUseSettings\b/);
+ assert.doesNotMatch(behaviorSource, /settings\.defaultsTitle/);
+ assert.doesNotMatch(behaviorSource, /<ShowThinkingRow /);
+ assert.doesNotMatch(behaviorSource, /enterToSend: !settings\.enterToSend/);
+
+ assert.doesNotMatch(behaviorSource, /PromptEnhancementCard|promptEnhancement/);
+ assert.doesNotMatch(behaviorSource, /EnhancementModelCard/);
assert.match(
settingsPageSource,
/saveSettings\(\{ contextUsageDisplay: value \}\)/,
@@ -169,16 +210,16 @@ test("Basics and AI tabs expose their respective app and AI controls", () => {
assert.match(settingsPageSource, /saveSettings\(\{ largePasteThreshold: next \}\)/);
assert.doesNotMatch(settingsPageSource, /commandShellConfigured/);
assert.match(
- aiSource,
+ behaviorSource,
/defaultPermissionMode: mode as GlobalPermissionMode/,
);
- assert.match(aiSource, /<SettingsMenuSelect\b/);
- assert.match(aiSource, /"accept-edits"/);
- // The AI tab keeps the Settings picker control: a native <select> popup is
+ assert.match(behaviorSource, /<SettingsMenuSelect\b/);
+ assert.match(behaviorSource, /"accept-edits"/);
+ // Behavior keeps the Settings picker control: a native <select> popup is
// platform-drawn and cannot carry the shared menu surface or its check mark.
- assert.doesNotMatch(aiSource, /<select/);
- // Voice owns a separate destination; the AI tab does not duplicate it.
- assert.doesNotMatch(aiSource, /VoiceSettingsCard|VoiceSettingsSection|voice-settings/);
+ assert.doesNotMatch(behaviorSource, /<select/);
+ // Voice owns a separate destination; no other page duplicates it.
+ assert.doesNotMatch(behaviorSource, /VoiceSettingsCard|VoiceSettingsSection|voice-settings/);
assert.match(settingsPageSource, /tab === "voice" && !tabHidden && settings && [\s\S]*?<VoiceSettingsSection/);
assert.match(voiceSettingsSource, /LiveVoiceSettings as VoiceSettingsSection/);
assert.doesNotMatch(voiceSettingsSource, /voiceIpc|voiceEnable|voiceMicrophone|voiceModel/);
@@ -392,8 +433,10 @@ test("OAuth account identity is provider-scoped across IPC and pi-ai", () => {
test("settings nav icons map each destination to a semantic lucide glyph", () => {
- assert.match(settingsPageSource, /general: <IconSliders/);
- assert.match(settingsPageSource, /ai: <IconSparkles/);
+ assert.match(settingsPageSource, /appearance: <IconPalette/);
+ assert.match(settingsPageSource, /chat: <IconChat/);
+ assert.match(settingsPageSource, /behavior: <IconSliders/);
+ assert.match(settingsPageSource, /system: <IconMonitor/);
assert.doesNotMatch(settingsPageSource, /usage: <IconActivity/);
assert.match(settingsPageSource, /shortcuts: <IconKeyboard/);
assert.match(settingsPageSource, /instructions: <IconFileText/);
@@ -401,9 +444,14 @@ test("settings nav icons map each destination to a semantic lucide glyph", () =>
assert.doesNotMatch(settingsPageSource, /import: <IconDownload/);
assert.match(settingsPageSource, /projects: <IconArchive/);
assert.match(settingsPageSource, /about: <IconInfo/);
- assert.doesNotMatch(settingsPageSource, /general: <IconSettings/);
+ assert.doesNotMatch(settingsPageSource, /general: <Icon/);
+ assert.doesNotMatch(settingsPageSource, /ai: <Icon/);
assert.doesNotMatch(settingsPageSource, /agent: <IconConfig/);
assert.doesNotMatch(settingsPageSource, /import: <IconSnapshot/);
+ // The page repeats the rail's glyph at page scale, so a destination is
+ // recognised the same way in both places (D684).
+ assert.match(settingsPageSource, /className="settings-page-icon"/);
+ assert.match(settingsPageSource, /activeNavItem\?\.icon/);
});
test("settings nav keeps a flat searchable index with titled visual groups", () => {
@@ -429,29 +477,54 @@ test("settings nav keeps a flat searchable index with titled visual groups", ()
}
assert.doesNotMatch(settingsSearchSource, /id: "extensions"/);
const navOrder = [
- "general",
- "ai",
+ "appearance",
+ "chat",
"shortcuts",
- "instructions",
+ "voice",
+ "behavior",
"agent",
+ "instructions",
"skills",
"mcp",
"subagents",
"projects",
+ "system",
+ "sync",
+ "remoteHosts",
"about",
].map((id) => settingsSearchSource.indexOf(`id: "${id}"`));
assert.ok(navOrder.every((index) => index >= 0));
assert.deepEqual(navOrder, [...navOrder].sort((a, b) => a - b));
- const generalStart = settingsSearchSource.indexOf('id: "general"');
- const aiStart = settingsSearchSource.indexOf('id: "ai"');
- const shortcutsStart = settingsSearchSource.indexOf('id: "shortcuts"');
- const generalEntry = settingsSearchSource.slice(generalStart, aiStart);
- const aiEntry = settingsSearchSource.slice(aiStart, shortcutsStart);
+ // The destinations the D684 split retired keep no index entry of their own;
+ // a stored or linked id resolves to its successor instead.
+ assert.equal(settingsSearchSource.indexOf('id: "general"'), -1);
+ assert.equal(settingsSearchSource.indexOf('id: "ai"'), -1);
assert.equal(settingsSearchSource.indexOf('id: "usage"'), -1);
- assert.doesNotMatch(generalEntry, /settings\.defaultsTitle/);
- assert.match(aiEntry, /settings\.defaultsTitle/);
- assert.match(aiEntry, /settings\.commandShell/);
- assert.doesNotMatch(aiEntry, /settings\.promptEnhancementModelTitle/);
+ assert.match(settingsSearchSource, /general: "appearance"/);
+ assert.match(settingsSearchSource, /ai: "behavior"/);
+ const entry = (id, next) =>
+ settingsSearchSource.slice(
+ settingsSearchSource.indexOf(`id: "${id}"`),
+ settingsSearchSource.indexOf(`id: "${next}"`),
+ );
+ const appearanceEntry = entry("appearance", "chat");
+ const chatEntry = entry("chat", "shortcuts");
+ const behaviorEntry = entry("behavior", "agent");
+ const systemEntry = entry("system", "sync");
+ assert.doesNotMatch(settingsSearchSource, /settings\.defaultsTitle/);
+ assert.match(appearanceEntry, /settings\.theme/);
+ assert.match(appearanceEntry, /settings\.radialMenu/);
+ assert.doesNotMatch(appearanceEntry, /settings\.proxy/);
+ assert.doesNotMatch(appearanceEntry, /settings\.storage\.title/);
+ assert.match(chatEntry, /settings\.transcriptDisplayMode/);
+ assert.match(chatEntry, /settings\.enterToSend/);
+ assert.match(behaviorEntry, /settings\.sessionDefaults/);
+ assert.match(behaviorEntry, /settings\.commandShell/);
+ assert.match(behaviorEntry, /settings\.permissionMode/);
+ assert.match(systemEntry, /settings\.proxy/);
+ assert.match(systemEntry, /settings\.storage\.title/);
+ assert.match(systemEntry, /settings\.power/);
+ assert.doesNotMatch(behaviorEntry, /settings\.promptEnhancementModelTitle/);
assert.match(settingsSearchSource, /keywordKeys/);
assert.match(settingsSearchSource, /settings\.projectArchive/);
assert.doesNotMatch(stylesSource, /\.token-usage-page/);
@@ -467,8 +540,10 @@ test("settings nav keeps a flat searchable index with titled visual groups", ()
test("settings rail uses short parallel labels and descriptive page titles", () => {
const navKeys = [
- "settings.nav.general",
- "settings.nav.ai",
+ "settings.nav.appearance",
+ "settings.nav.chat",
+ "settings.nav.behavior",
+ "settings.nav.system",
"settings.nav.shortcuts",
"settings.nav.instructions",
"settings.nav.models",
@@ -489,6 +564,26 @@ test("settings rail uses short parallel labels and descriptive page titles", ()
assert.match(settingsSearchSource, /titleKey: "settings\.projectArchive"/);
assert.match(settingsPageSource, /activeTitleKey/);
assert.match(settingsPageSource, /titleKey: entry\.titleKey/);
+ // A restructured destination also says in one line what it decides (D684);
+ // a workbench that opens with its own description carries no subtitle.
+ for (const key of [
+ "settings.appearanceSubtitle",
+ "settings.conversationSubtitle",
+ "settings.agentBehaviorSubtitle",
+ "settings.systemSubtitle",
+ ]) {
+ assert.match(settingsSearchSource, new RegExp(key.replaceAll(".", "\\.")));
+ assert.match(enLocaleSource, new RegExp(`${key.split(".").at(-1)}:`));
+ assert.match(zhLocaleSource, new RegExp(`${key.split(".").at(-1)}:`));
+ assert.match(zhTWLocaleSource, new RegExp(`${key.split(".").at(-1)}:`));
+ assert.match(trLocaleSource, new RegExp(`${key.split(".").at(-1)}:`));
+ }
+ assert.match(settingsPageSource, /className="settings-page-subtitle"/);
+ assert.match(settingsSearchSource, /id: "agent",[\s\S]*?keywordKeys/);
+ assert.doesNotMatch(
+ settingsSearchSource,
+ /id: "agent",\s*labelKey[^}]*subtitleKey/,
+ );
});
test("Plugins marketplace keeps official refresh without source settings", () => {
diff --git a/apps/desktop/test/settings-help-tooltip.test.mjs b/apps/desktop/test/settings-help-tooltip.test.mjs
index ed7a9bacd..e56520a99 100644
--- a/apps/desktop/test/settings-help-tooltip.test.mjs
+++ b/apps/desktop/test/settings-help-tooltip.test.mjs
@@ -9,6 +9,18 @@ const source = (path) =>
const ui = await source("components/ui.tsx");
const primitives = await source("features/settings/primitives.tsx");
const settingsPage = await source("features/settings/SettingsPage.tsx");
+// Destination pages own the rows since the D684 split; the shell only routes.
+const destinationPages = (
+ await Promise.all(
+ [
+ "AboutSettings",
+ "AgentBehaviorSettings",
+ "AppearanceSettings",
+ "ConversationSettings",
+ "SystemSettings",
+ ].map((file) => source(`features/settings/pages/${file}.tsx`)),
+ )
+).join("\n");
const importWorkbench = await source("features/settings/import-workbench.tsx");
const modelImport = await source("features/settings/imports/ModelConfigImportPanel.tsx");
const skillImport = await source("features/settings/imports/AgentSkillImportPanel.tsx");
@@ -50,6 +62,27 @@ test("a settings row explains itself from a help icon, not a second line", () =>
);
});
+/*
+ D684 adds the one exception: a card may carry a single visible line that says
+ what the group is for. It is orientation for a whole card, not an
+ explanation of a row, so it does not reopen the retired second line.
+*/
+test("a card may orient with one visible caption; a row still may not", () => {
+ assert.match(primitives, /\/\*\* One visible line of orientation under the heading\. \*\/\n {2}caption\?: string;/);
+ assert.match(
+ primitives,
+ /\{caption \? <p className="settings-card-caption">\{caption\}<\/p> : null\}/,
+ );
+ // The caption belongs to the card: SettingsRow keeps title, help mark and
+ // live detail only.
+ const rowStart = primitives.indexOf("export function SettingsRow(");
+ const rowEnd = primitives.indexOf("export function SettingsCard(");
+ assert.ok(rowStart >= 0 && rowEnd > rowStart);
+ assert.doesNotMatch(primitives.slice(rowStart, rowEnd), /caption\?: string/);
+ const caption = cssRule(".settings-card-caption");
+ assert.match(caption, /color:\s*var\(--ds-text-secondary\)/);
+});
+
test("the help icon is a focusable button whose name is the sentence", () => {
const start = ui.indexOf("export function HelpIcon(");
assert.ok(start >= 0, "ui.tsx should export HelpIcon");
@@ -88,7 +121,7 @@ test("the row explanations survive the move into the tooltip", () => {
"settings.feedbackDesc",
]) {
assert.match(
- settingsPage,
+ destinationPages,
new RegExp(`description=\\{t\\("${key.replace(/\./g, "\\.")}"\\)\\}`),
`${key} should still be the row's explanation`,
);
diff --git a/apps/desktop/test/settings-project-archive.test.mjs b/apps/desktop/test/settings-project-archive.test.mjs
index cc09e2bc2..21980b9b9 100644
--- a/apps/desktop/test/settings-project-archive.test.mjs
+++ b/apps/desktop/test/settings-project-archive.test.mjs
@@ -42,7 +42,7 @@ test("settings owns the project archive destination", () => {
assert.match(settingsSearchSource, /titleKey: "settings\.projectArchive"/);
assert.match(settingsPageSource, /projects: <IconArchive/);
assert.match(settingsPageSource, /tab === "projects" && <ProjectsPage/);
- const navOrder = ["general", "agent", "projects", "about"].map(
+ const navOrder = ["appearance", "agent", "projects", "about"].map(
(id) => settingsSearchSource.indexOf(`id: "${id}"`),
);
assert.ok(navOrder.every((index) => index >= 0));
diff --git a/apps/desktop/test/transcript-display-mode-settings.test.mjs b/apps/desktop/test/transcript-display-mode-settings.test.mjs
index 266bef976..b0fc288c7 100644
--- a/apps/desktop/test/transcript-display-mode-settings.test.mjs
+++ b/apps/desktop/test/transcript-display-mode-settings.test.mjs
@@ -17,16 +17,21 @@ const { flattenCatalog } = await import(
const copy = flattenCatalog(en);
const t = (key) => copy[key] ?? key;
-test("transcript display mode is searchable from the AI preferences beside show thinking", () => {
- const ai = SETTINGS_NAV.find((entry) => entry.id === "ai");
- assert.ok(ai, "AI settings entry is registered");
- const showThinkingAt = ai.keywordKeys.indexOf("settings.showThinking");
+test("transcript display mode is searchable from the Conversation destination beside show thinking", () => {
+ // Presentation rows live on Conversation since D684, indexed in the order
+ // they render: Show thinking and its sub-row, then Transcript display and
+ // its sub-row.
+ const chat = SETTINGS_NAV.find((entry) => entry.id === "chat");
+ assert.ok(chat, "Conversation settings entry is registered");
+ const showThinkingAt = chat.keywordKeys.indexOf("settings.showThinking");
assert.ok(showThinkingAt >= 0, "show thinking remains indexed");
assert.deepEqual(
- ai.keywordKeys.slice(showThinkingAt, showThinkingAt + 4),
+ chat.keywordKeys.slice(showThinkingAt, showThinkingAt + 6),
[
"settings.showThinking",
"settings.showThinkingDesc",
+ "settings.autoCollapseThinking",
+ "settings.autoCollapseThinkingDesc",
"settings.transcriptDisplayMode",
"settings.transcriptDisplayModeDesc",
],
@@ -35,7 +40,7 @@ test("transcript display mode is searchable from the AI preferences beside show
const titleHits = searchSettings("transcript display", t, {
developerMode: false,
includeDevelopmentOnly: false,
- }).filter((hit) => hit.tab === "ai");
+ }).filter((hit) => hit.tab === "chat");
assert.ok(
titleHits.some((hit) => hit.rowKey === "settings.transcriptDisplayMode"),
"the transcript-display title is searchable",
@@ -44,7 +49,7 @@ test("transcript display mode is searchable from the AI preferences beside show
const descriptionHits = searchSettings("assistant process", t, {
developerMode: false,
includeDevelopmentOnly: false,
- }).filter((hit) => hit.tab === "ai");
+ }).filter((hit) => hit.tab === "chat");
assert.ok(
descriptionHits.some(
(hit) => hit.rowKey === "settings.transcriptDisplayModeDesc",
diff --git a/apps/desktop/test/transcript-folding-settings.test.mjs b/apps/desktop/test/transcript-folding-settings.test.mjs
index d7a17c635..e70b3ae62 100644
--- a/apps/desktop/test/transcript-folding-settings.test.mjs
+++ b/apps/desktop/test/transcript-folding-settings.test.mjs
@@ -17,7 +17,10 @@ const { resolveAutoCollapseSettledGroups, resolveAutoCollapseThinking } = await
const { SETTINGS_NAV } = await import("../src/lib/settings-search.ts");
const ROWS = new URL("../src/components/settings/TranscriptFoldingRows.tsx", import.meta.url);
-const PAGE = new URL("../src/features/settings/SettingsPage.tsx", import.meta.url);
+const PAGE = new URL(
+ "../src/features/settings/pages/ConversationSettings.tsx",
+ import.meta.url,
+);
function withWindow(run) {
const previous = globalThis.window;
@@ -112,15 +115,15 @@ test("the two switches are sub-rows of the settings that gate them", async () =>
assert.ok(modeAt >= 0 && groupsAt > modeAt);
});
-test("both switches are searchable inside the AI preferences", () => {
- const ai = SETTINGS_NAV.find((entry) => entry.id === "ai");
- assert.ok(ai);
+test("both switches are searchable inside the Conversation destination", () => {
+ const chat = SETTINGS_NAV.find((entry) => entry.id === "chat");
+ assert.ok(chat);
for (const key of [
"settings.autoCollapseThinking",
"settings.autoCollapseThinkingDesc",
"settings.autoCollapseSettledGroups",
"settings.autoCollapseSettledGroupsDesc",
]) {
- assert.ok(ai.keywordKeys.includes(key), `${key} is not indexed`);
+ assert.ok(chat.keywordKeys.includes(key), `${key} is not indexed`);
}
});
diff --git a/docs/adr/0345-one-settings-destination-one-subject.md b/docs/adr/0345-one-settings-destination-one-subject.md
new file mode 100644
index 000000000..52f630374
--- /dev/null
+++ b/docs/adr/0345-one-settings-destination-one-subject.md
@@ -0,0 +1,144 @@
+# ADR 0345: One settings destination owns one subject
+
+- Status: Accepted
+- Date: 2026-11-05
+- Decision: D684
+- Deciders: PI-Desktop core
+- Related: [ADR 0161](0161-searchable-theme-picker.md) ·
+ [04-ux/06-settings-ia](../spec/04-ux/06-settings-ia.md) ·
+ [04-ux/01-ui-ia](../spec/04-ux/01-ui-ia.md) ·
+ [00-baseline §40](../spec/00-baseline.md)
+
+## Context
+
+The Settings directory grew one destination at a time. D133 shipped five, D166
+split out AI and Shortcuts to make seven, and later decisions added
+Instructions, the three capability pages, Projects, Voice, Cloud sync and Remote
+Hosts. Each addition was locally reasonable. Two destinations, however, were
+never given a subject — they were given whatever did not have a page yet:
+
+- **General** carried the Appearance card (theme, language, font, font size,
+ translucency, startup animation) next to the Sidebar switches, the radial
+ menu, the outbound proxy, the application data directory and its cold
+ maintenance, two sleep blockers, the scheduled-tasks master switch, and the
+ window's close behavior. Eight cards, three unrelated subjects.
+- **AI** carried Permissions as a one-row card, then a **Defaults** card that
+ had reached thirteen rows: the default operating mode, the command shell, the
+ link open destination, show thinking, auto-fold thinking, transcript display,
+ auto-fold settled groups, the context ring's leading figure, Enter-to-send,
+ infinite provider retry, smooth streaming, inline visualizations, and the
+ large-paste threshold. "Defaults" is not a subject; it is the absence of one.
+
+This is a findability problem before it is an aesthetic one. Since D601, a row's
+explanation lives behind a question mark rather than on a permanent second line,
+which keeps a card scannable — but it also means a reader who cannot predict
+which page owns a setting has to hover a whole page to find out. Two pages that
+each own two or three subjects turn that into hovering the product.
+
+Settings search already indexes every row, so the index was not the gap. The
+gap was that the structure the rail presents did not match any model a user
+could hold.
+
+## Decision
+
+**A settings destination owns exactly one subject.** A subject that belongs to
+no destination is a missing destination, not an extra card on an unrelated page.
+
+Applied to the two unowned pages, that yields four destinations where there were
+two:
+
+| Destination | Subject | Cards |
+|---|---|---|
+| Appearance | How the product looks | Interface · Sidebar · Radial context menu · Startup |
+| Conversation | How a transcript reads and the composer takes input | Display · Input & links |
+| Behavior | What a run starts with and may do | Session defaults · Execution · Computer use |
+| System | This installation | Network · Storage · Power · Close behavior (Windows/Linux) |
+
+The directory is fifteen destinations in the four existing clusters
+(Preferences, Agent, Workspace, System); the full order and glyph per
+destination is in [04-ux/06-settings-ia](../spec/04-ux/06-settings-ia.md) §1.
+Subagents takes the `Sparkles` glyph the retired AI destination released, so no
+two rows share an icon.
+
+Three consequences are worth stating because they are judgement calls, not
+mechanics:
+
+1. **Permission mode is not its own card.** It joins the default operating mode
+ and the command shell in **Session defaults**, because all three answer one
+ question — what a new conversation starts with. A one-row card for a
+ security-adjacent setting reads as prominence, but a page made of one-row
+ cards is exactly the pile this ADR exists to remove. The setting keeps its
+ explanation and its own row; it does not lose weight by sharing a heading.
+2. **Scheduled tasks is agent behavior, not chrome.** It withholds scheduled
+ Agent tools and blocks new runs at the Host; the footer clock is a
+ consequence, not the subject.
+3. **The retired ids stay resolvable.** `general` → Appearance and `ai` →
+ Behavior, through `resolveSettingsTab`. A persisted selection, a native menu
+ item, a capture scene and an older deep link all arrive as plain strings, and
+ a retired id must open a real page rather than leave the content pane blank.
+ Neither id is in the directory or in search results.
+
+Two presentation rules are added, because the IA alone does not make a page
+legible:
+
+- A destination may declare **one subtitle line** under its title, and each page
+ repeats its rail glyph at page scale on an accent-tinted fill. Destinations
+ whose content already opens with a description — the capability, model and
+ project workbenches — declare no subtitle, so no page states its purpose
+ twice.
+- A card may carry **one visible caption line** under its heading. This is the
+ first always-visible explanatory copy since D601, and it is scoped: a caption
+ orients a whole group ("presentation only — nothing here changes what the
+ model does"), a row's explanation stays behind its question mark, and copy
+ that needs a second sentence stays there too.
+
+The selected rail row takes an accent-tinted pill with an accent glyph. Both
+tints are fills rather than strokes, so they stay inside the in-flow surface
+rule (D297).
+
+## Consequences
+
+- **No data or protocol change.** Every `AppSettings` field keeps its name,
+ type and default; no IPC message, host protocol version or storage schema
+ version moves. A profile written before the split reads back identically.
+ What changed is which page renders which row — this is an IA and presentation
+ decision, and it is deliberately not an opportunity to also adjust defaults.
+- **Deep links and search stay correct by construction.** The destination index
+ (`lib/settings-search.ts`) remains the single source for the rail, the ⌘K
+ dialog, and the keyword index; new rows are added there, and the retired-id
+ table lives beside it.
+- **The renderer shell becomes a router.** Each destination is a module under
+ `features/settings/pages/`, so `SettingsPage.tsx` does not acquire a fifth
+ subject of its own. The settings source contract is unaffected: it reads the
+ facade plus everything under `features/settings`.
+- **Copy that named a destination had to move too.** The proxy and
+ network-policy messages in all nine catalogs said "Settings → General →
+ Network"; they now say System. Prose that routes a user to a page is part of
+ the IA.
+- **Cost.** Fifteen rail rows instead of twelve, and users who had learned
+ "General" must learn two names. The clusters, the search field, and the
+ retired-id resolution absorb that; the alternative — keeping two pages that
+ own three subjects each — is the cost that prompted this.
+- **What this does not do.** It does not touch the Models, capability, Projects,
+ Cloud sync, Remote Hosts, Voice or Info destinations beyond their position in
+ the order, does not change the full-page shell, the rail metrics, the row
+ primitives, or the D297 surface language, and does not add a second
+ navigation level under a cluster heading.
+
+## Alternatives considered
+
+- **Reorder the cards inside General and AI.** Cheapest, and it was the first
+ thing tried on paper. It cannot work: ordering changes which card is first,
+ not what the page is about, and the "Defaults" heading would still be the
+ place rows go when nobody decided where they belong.
+- **Split the cards but keep the two destination names.** Keeps every deep link
+ and every piece of copy valid. Rejected because "General" and "AI" are the
+ names that invited the pile; a page called General will accumulate again.
+- **Collapse the rail into two levels (cluster → destination).** Would hold more
+ destinations, but the clusters are visual landmarks over a flat searchable
+ index (§1), and a second interactive level adds a navigation step to every
+ setting to solve a problem fifteen rows do not have.
+- **Make every row's explanation permanently visible.** Addresses the same
+ findability complaint from the other end. Rejected: it reverses D601 and makes
+ each page several screens taller, which is a worse version of the problem. One
+ caption per card is the smallest thing that answers "what is this group for".
diff --git a/docs/adr/README.md b/docs/adr/README.md
index cb6077bb9..a0e800290 100644
--- a/docs/adr/README.md
+++ b/docs/adr/README.md
@@ -407,3 +407,4 @@ Each ADR includes:
| 0340 | [Let a granted plugin reach every session, not only its imports](0340-plugin-session-all-scope.md) | Accepted (D680; amends ADR 0200 and ADR 0323) |
| 0343 | [The plugin launcher enumerates and opens local applications](0343-plugin-launcher-local-apps.md) | Accepted (issue #2085) |
| 0344 | [Computer use grants the whole desktop automatically, and Stop is the boundary](0344-computer-use-whole-desktop-grant.md) | Accepted (D682; amends ADR 0342 §4 and §6) |
+| 0345 | [One settings destination owns one subject](0345-one-settings-destination-one-subject.md) | Accepted (D684; amends D143, D166, D678) |
diff --git a/docs/spec/00-baseline.md b/docs/spec/00-baseline.md
index 8bd989c79..2430370e2 100644
--- a/docs/spec/00-baseline.md
+++ b/docs/spec/00-baseline.md
@@ -178,7 +178,7 @@
37. Secrets backend: **safeStorage primary + encrypted file fallback**
38. Workspace ignore: **denylist + defaults + `.pi-desktopignore`**
39. Tool result limits: **per-tool budgets (128KB / 4000 lines search, 96KB / 4000 lines shell); `truncated` only when a result is cut short**
-40. Settings directory: **General / AI / Shortcuts / Instructions / Models / Skills / MCP / Subagents / Project archive / Cloud sync / Remote Hosts / Info**;
+40. Settings directory: **Appearance / Conversation / Shortcuts / Voice / Behavior / Models / Instructions / Skills / MCP / Subagents / Project archive / System / Cloud sync / Remote Hosts / Info** — one destination owns one subject (D684);
external model, skill, and MCP scans live in their owning pages; session
import is plugin-owned;
the project archive owns durable project discovery, archive, restore, and
diff --git a/docs/spec/03-runtime/04-data-storage.md b/docs/spec/03-runtime/04-data-storage.md
index 41afcf859..2f2c01b4a 100644
--- a/docs/spec/03-runtime/04-data-storage.md
+++ b/docs/spec/03-runtime/04-data-storage.md
@@ -90,7 +90,7 @@ or transcript format change is required.
### User-selected storage location (issue #1213)
-Settings → General → Storage can select an empty directory on a different
+Settings → System → Storage can select an empty directory on a different
volume. A selected directory contains `data/` (the complete host/application
profile) and `browser/` (Chromium default and persistent plugin/browser session
state). The existing default directories remain unchanged until the user
diff --git a/docs/spec/03-runtime/computer-use.md b/docs/spec/03-runtime/computer-use.md
index f1230fb55..c60cf6827 100644
--- a/docs/spec/03-runtime/computer-use.md
+++ b/docs/spec/03-runtime/computer-use.md
@@ -282,7 +282,8 @@ never a no-op reported as success.
- Computer Use is off by default. Enabling it does not itself request an OS
permission, capture a frame, or enumerate a window — but it does authorise the
agent to start a desktop-wide grant on its next `Computer` call.
-- The card is last in Settings → AI, after Permissions and Defaults. It shows
+- The card is last in Settings → Behavior, after Session defaults and
+ Execution. It shows
controls and actionable status without card/row descriptions or a static
scope note. Permission diagnostics and the missing-model hint remain visible.
The scope is not selectable: one window at a time, the agent may switch,
diff --git a/docs/spec/04-ux/01-ui-ia.md b/docs/spec/04-ux/01-ui-ia.md
index cec07bfdd..4f8fdab70 100644
--- a/docs/spec/04-ux/01-ui-ia.md
+++ b/docs/spec/04-ux/01-ui-ia.md
@@ -237,7 +237,7 @@ destination, chat as the home surface, tools and permissions inline.
- an **activity rail**: a 2px track down the group's left edge with a
travelling pulse, spanning the opened conversation list and shrinking to
the header while the group is collapsed, plus a matching count.
- Remote host groups carry the same pair. Settings → General → Sidebar owns
+ Remote host groups carry the same pair. Settings → Appearance → Sidebar owns
one master switch (`AppSettings.sidebarRunningIndicators`) gating two
sub-switches (`sidebarRunningBadge`, `sidebarRunningRail`). When unset, the
master and Count badge resolve on while Activity rail resolves off; explicit
@@ -303,7 +303,7 @@ destination, chat as the home surface, tools and permissions inline.
focus.
### 3.3 Scheduled
-Settings → General → Scheduled tasks controls this feature, on by default
+Settings → Behavior → Execution → Scheduled tasks controls this feature, on by default
(`scheduledTasksEnabled` absent or true). Off hides the footer and search page
entries and prevents new runs without deleting tasks or run history. The
settings switch remains searchable so the feature can be re-enabled.
diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.md
index bdee9fc5c..0254f441c 100644
--- a/docs/spec/04-ux/06-settings-ia.md
+++ b/docs/spec/04-ux/06-settings-ia.md
@@ -44,36 +44,57 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
the primary surface over the rail, which would show two colors in one top row.
Interactive controls remain explicitly non-draggable
- A compact navigation directory with short, parallel labels and icons, in this
- exact order:
- 1. **General / 常规** — Lucide `SlidersHorizontal` (appearance)
- 2. **AI** — Lucide `Sparkles` (permissions, defaults, command shell)
+ exact order. **One destination owns one subject** (D684 / ADR 0345): a
+ destination is never the landing place for whatever did not fit elsewhere,
+ and a subject that belongs to none of them is a missing destination rather
+ than an extra card on an unrelated page:
+ 1. **Appearance / 外观** — Lucide `Palette` (theme, language, type, chrome)
+ 2. **Conversation / 对话** — Lucide `MessageSquare` (transcript presentation and composer input)
3. **Shortcuts / 快捷键** — Lucide `Keyboard` (keyboard shortcuts)
- 4. **Instructions / 指令** — Lucide `FileText` (global and project instruction files)
- 5. **Models / 模型** — Lucide `Bot` (providers and default model)
- 6. **Skills / 技能** — Lucide `BookOpen` (reusable agent instructions)
- 7. **MCP** — Lucide `Server` (agent connections)
- 8. **Subagents / 子智能体** — Lucide `Bot` (built-in and personal parallel agents)
- 9. **Projects / 项目** — Lucide `Archive` (durable project index)
- 10. **Cloud sync / 云同步** — Lucide `CloudDownload` (encrypted portable configuration backup and bidirectional sync; Experimental, all builds)
- 11. **Remote Hosts / 远程主机** — Lucide `Globe` (experimental SSH hosts, sessions, and explicit model copy)
- 12. **Info / 信息** — Lucide `Info` (versions, logs, updates, developer)
- Icons are decorative (`aria-hidden` via the SVG default) and stay monochrome
- with the rail label; do not reuse refresh/rotate glyphs here.
+ 4. **Voice / 语音** — Lucide `Mic` (Live Voice enablement and provider bindings)
+ 5. **Behavior / 行为** — Lucide `SlidersHorizontal` (session defaults, execution, computer use)
+ 6. **Models / 模型** — Lucide `Bot` (providers and default model)
+ 7. **Instructions / 指令** — Lucide `FileText` (global and project instruction files)
+ 8. **Skills / 技能** — Lucide `BookOpen` (reusable agent instructions)
+ 9. **MCP** — Lucide `Server` (agent connections)
+ 10. **Subagents / 子智能体** — Lucide `Sparkles` (built-in and personal parallel agents)
+ 11. **Projects / 项目** — Lucide `Archive` (durable project index)
+ 12. **System / 系统** — Lucide `Monitor` (network, storage, power, window close behavior)
+ 13. **Cloud sync / 云同步** — Lucide `CloudDownload` (encrypted portable configuration backup and bidirectional sync; Experimental, all builds)
+ 14. **Remote Hosts / 远程主机** — Lucide `Globe` (experimental SSH hosts, sessions, and explicit model copy)
+ 15. **Info / 信息** — Lucide `Info` (versions, logs, updates, developer)
+ Rail icons are decorative (`aria-hidden` via the SVG default) and stay
+ monochrome with the rail label, except on the selected row, where the glyph
+ takes the accent alongside the row's accent-tinted pill; do not reuse
+ refresh/rotate glyphs here. No two destinations share a glyph: Models keeps
+ `Bot` and Subagents takes the `Sparkles` the retired AI destination released.
+- The destinations named `general` and `ai` are retired. Their ids stay
+ resolvable — `general` → Appearance, `ai` → Behavior — so a stored selection,
+ a native menu, or a link written before the split lands on a real page
+ instead of an empty content pane. Neither id appears in the directory or in
+ search results.
- The directory remains a flat searchable list in the same exact order. For
scanability, the destinations are shown in four titled visual clusters:
- `Preferences` / `偏好` (General, AI, Shortcuts), `Agent` / `智能体`
- (Instructions, Models, Skills, MCP, Subagents), `Workspace` / `工作区`
- (Projects), and `System` / `系统` (Cloud sync, Remote Hosts, Info; Cloud sync
- and Remote Hosts are Experimental destinations available in all builds). Headings are
- muted, non-interactive labels and use whitespace for separation; no divider
- lines are rendered. These are visual landmarks only, not a second navigation
- level.
+ `Preferences` / `偏好` (Appearance, Conversation, Shortcuts, Voice),
+ `Agent` / `智能体` (Behavior, Models, Instructions, Skills, MCP, Subagents),
+ `Workspace` / `工作区` (Projects), and `System` / `系统` (System, Cloud sync,
+ Remote Hosts, Info; Cloud sync and Remote Hosts are Experimental destinations
+ available in all builds). Headings are muted, non-interactive labels at the
+ smallest legible type step with letter spacing, and they use whitespace for
+ separation; no divider lines are rendered. These are visual landmarks only,
+ not a second navigation level.
When search filters the directory, empty clusters and their headings disappear.
-- **Voice** is a regular Preferences destination between AI and Shortcuts,
- present in every build with no Experimental badge and no developer-mode
- requirement. Its rail row, page, search hits, and idle Composer entry are
- available to all users.
+- **Voice** is a regular Preferences destination after Shortcuts, present in
+ every build with no Experimental badge and no developer-mode requirement. Its
+ rail row, page, search hits, and idle Composer entry are available to all
+ users.
It is the only place to enable Live Voice. See the Voice section below.
+- Every destination opens with a **page header**: the rail's glyph repeated at
+ page scale on an accent-tinted fill, the page title, and — for destinations
+ whose own content does not already start with a description — one line saying
+ what the destination decides. The capability, model and project workbenches
+ keep their own opening description and carry no header subtitle, so a page
+ never states its purpose twice.
- **Cloud sync / 云同步** is an Experimental `System` / `系统` destination
available in development and packaged builds. Its rail row, page, and
settings-search hits are available in every build, and both the row and page
@@ -106,27 +127,15 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
## 2. Section contents
-### General
+### Appearance
-- **Storage** shows the effective application data path and the reclaimable cache
- size. It is included in settings search. Choose directory uses the native picker;
- confirmation displays both application and browser source paths, the target,
- migration scope and the restart/backup policy. Cancelling has no side effects.
- Accepting locks repeat actions until the app exits through ordered shutdown.
-- A separate sandboxed cold-maintenance window shows localized scanning, copying,
- verifying and internal-path relocation stages, file counts, copied/verified bytes
- and determinate progress where known. It does not load plugins or agent services.
- Failure explains that the original profile remains active, then returns to it;
- settings exposes the error and permits retry. A disconnected selected volume
- blocks startup with a recovery explanation instead of silently using empty data.
-- **Clear cache** shows a size and requires an inline confirmation describing the
- retained durable data before clearing and restarting. **Delete old backups** is
- separate, lists original paths and warns users to check their plugins and old
- attachments first. Arbitrary plugin-owned absolute references cannot be rewritten
- by the host. Environment-controlled profiles display why maintenance is disabled.
- Confirmation gets keyboard focus, asynchronous errors remain visible, and all
- visible copy is localized. These operations affect only this local installation.
-- **Appearance** card:
+How the product looks and the chrome around a conversation, in four cards:
+**Interface**, **Sidebar**, **Radial context menu**, **Startup**. Nothing here
+changes what the agent does, and the machine-level cards this page used to
+carry — network, storage, power, close behavior — belong to **System** since
+D684.
+
+- **Interface** card:
- **Theme**: a searchable picker row (same anchored-menu pattern as
Language). The closed trigger sizes to the current label, capped by the
settings control column, and shows the current name. The menu pins System,
@@ -168,22 +177,53 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
created, so the row shows a restart hint while the stored value differs from
the surface this process launched with instead of pretending to change the
live window. Other platforms do not render the row.
- - **Startup animation** (D679 / ADR 0338): one switch, plus an **End early
- when ready** sub-switch gated by it. The animation itself is a file, not a
- value, so the row's other job is making the folder findable: its detail line
- names the video the next launch would play — or says none was found — and
- carries the action that opens `<dataDir>/startup/`, creating it on the way.
- Both preferences persist under `AppSettings.startupAnimation` (`enabled`
- absent means on, so dropping a file in is sufficient; `skipWhenReady` absent
- plays the video out) and are read before the main window is created, so like
- the row above they apply on the next launch. The status is re-scanned per
- open, because a user who just dropped a file in has not restarted yet.
- **Auto language detection** resolves the OS locale through the main process
(`app.getLocale()`) rather than the renderer's `navigator.language`, and the
Auto option shows the detected language inline (e.g. "Currently 简体中文")
- native select triggers and their opened option lists use the active theme's
readable foreground/background pairing on macOS, Windows, and Linux; the
shared native-select contract applies to every app surface
+- **Sidebar** card: one master switch for project running activity
+ (`AppSettings.sidebarRunningIndicators`) plus independently gated
+ **Count badge** and **Activity rail** switches
+ (`sidebarRunningBadge`, `sidebarRunningRail`). When unset, the master and
+ Count badge resolve on while Activity rail resolves off; explicit saved
+ values remain authoritative. The two gated switches render as indented
+ sub-rows of the master, so the dependency is visible without a sentence
+ explaining it. They are disabled while the master switch is off and keep
+ their stored value, so re-enabling the master restores the previous choice
+ instead of resetting it. The affordances themselves are described in
+ [01-ui-ia.md §3.2](01-ui-ia.md#32-sidebar-project-groups).
+- **Radial context menu** card: one switch (**Enable on the transcript
+ background**) and four direction pickers (**Up**, **Right**, **Down**,
+ **Left**). The switch is off when `AppSettings.radialMenu.enabled` is absent
+ or false, which keeps the vertical background menu. Each picker stores one
+ `RadialMenuAction`: copy conversation, select conversation text, copy the
+ last answer, scroll to top, jump to latest, open the built-in browser, toggle
+ the work panel, open the project folder, or **Leave empty**. The work panel
+ direction follows the panel's state: it reads **Open work panel** while
+ collapsed and **Close work panel** while open. Pickers are disabled while the
+ switch is off and keep their stored directions for when it is turned back on.
+ Settings search indexes the card and its rows.
+- **Startup** card — **Startup animation** (D679 / ADR 0338): one switch, plus
+ an **End early when ready** sub-switch gated by it. The animation itself is a
+ file, not a value, so the row's other job is making the folder findable: its
+ detail line names the video the next launch would play — or says none was
+ found — and carries the action that opens `<dataDir>/startup/`, creating it on
+ the way. Both preferences persist under `AppSettings.startupAnimation`
+ (`enabled` absent means on, so dropping a file in is sufficient;
+ `skipWhenReady` absent plays the video out) and are read before the main
+ window is created, so like the translucency switch they apply on the next
+ launch. The status is re-scanned per open, because a user who just dropped a
+ file in has not restarted yet.
+
+### System
+
+This installation rather than the product's look or the agent's behavior:
+**Network**, **Storage**, **Power**, and on Windows/Linux **Close behavior**.
+Platform-specific close behavior lives here because it changes
+application-window behavior rather than agent behavior.
+
- **Power** card: two independent opt-in switches. Keep computer awake uses
`prevent-app-suspension` to block idle system sleep for the lifetime of the
running desktop app, including between scheduled runs; the display may turn
@@ -192,23 +232,24 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
`AppSettings.keepAwakeWhileRunning` and `AppSettings.preventScreenSleep`,
take effect immediately, restore on startup, and release their own blocker
when disabled or during shutdown. Manual sleep and lid close follow the OS.
-- **Sidebar** card: one master switch for project running activity
- (`AppSettings.sidebarRunningIndicators`) plus independently gated
- **Count badge** and **Activity rail** switches
- (`sidebarRunningBadge`, `sidebarRunningRail`). When unset, the master and
- Count badge resolve on while Activity rail resolves off; explicit saved
- values remain authoritative. The sub-switches are disabled while the master
- switch is off and keep their stored value, so re-enabling the master restores
- the previous choice instead of resetting it. The affordances themselves are
- described in
- [01-ui-ia.md §3.2](01-ui-ia.md#32-sidebar-project-groups).
-- **Scheduled tasks** card: an app-wide switch persisting as optional
- `AppSettings.scheduledTasksEnabled`, on when absent or true. Off hides the
- footer clock and global-search page entry, leaves the route if already open,
- withholds scheduled Agent tools, and blocks new manual/automatic runs and task
- edits at the Host. Existing task enable states, schedules, and history remain
- unchanged; active runs can finish. Re-enabling restores access and resumes
- normal due-time admission without replaying missed occurrences.
+- **Storage** shows the effective application data path and the reclaimable cache
+ size. It is included in settings search. Choose directory uses the native picker;
+ confirmation displays both application and browser source paths, the target,
+ migration scope and the restart/backup policy. Cancelling has no side effects.
+ Accepting locks repeat actions until the app exits through ordered shutdown.
+- A separate sandboxed cold-maintenance window shows localized scanning, copying,
+ verifying and internal-path relocation stages, file counts, copied/verified bytes
+ and determinate progress where known. It does not load plugins or agent services.
+ Failure explains that the original profile remains active, then returns to it;
+ settings exposes the error and permits retry. A disconnected selected volume
+ blocks startup with a recovery explanation instead of silently using empty data.
+- **Clear cache** shows a size and requires an inline confirmation describing the
+ retained durable data before clearing and restarting. **Delete old backups** is
+ separate, lists original paths and warns users to check their plugins and old
+ attachments first. Arbitrary plugin-owned absolute references cannot be rewritten
+ by the host. Environment-controlled profiles display why maintenance is disabled.
+ Confirmation gets keyboard focus, asynchronous errors remain visible, and all
+ visible copy is localized. These operations affect only this local installation.
- **Network** card:
- **Proxy**: a segmented control — System, Direct, Custom. System is the
default and lets Chromium follow the OS proxy; Direct disables the proxy;
@@ -240,8 +281,8 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
The first plaintext hop to such an endpoint shows one informational notice.
The per-surface acknowledgements this replaced (`networkProxy.allowFakeIp`,
`configSync.allowInsecureHttp`) are gone (ADR 0304).
-- Platform-specific **Close behavior** remains in General because it changes
- application-window behavior rather than agent behavior.
+- **Close behavior** card, on Windows/Linux only: what the window's close
+ button does.
- File-open target, menu-bar behavior, and bottom-panel behavior are not
rendered until their host-backed settings schemas and runtime effects exist.
@@ -292,35 +333,30 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
these semantics. Both retain local recovery and approval requirements.
Password changes are key rewrapping, not revocation of unlocked devices.
-### 全局 AI (`ai` tab)
-- Card order is **Permissions → Defaults → Computer use**. Computer use omits
- card/row explanatory copy and the static scope note; controls, platform and
- permission status, errors, and the missing-model hint remain unchanged.
-- **Permissions** card: the global permission-mode control
- (ask / accept-edits / auto) that governs how autonomously the agent acts.
- The control is a menu select on the shared anchored-menu surface rather than
- a platform-drawn `<select>` popup, so every Settings picker opens the same
- way. The closed trigger sizes to the current label, capped by the settings
- control column.
-- **Defaults** card: the host-backed default operating mode (Agent / Plan / Goal),
- command shell selection, Link open destination, context usage display
- (remaining or used), the Show thinking toggle, the Transcript display
- segmented control, Enter-to-send control, the infinite provider retry switch,
- and the large text paste threshold. The
- retry switch is off by default and explains that network/transient provider
- failures keep retrying until success; Stop still cancels the turn and the
- setting may continue API usage while enabled. Link open destination uses the Work panel browser by default
- and routes chat, transcript, and plugin HTTP(S) clicks to the system
- browser when set to Default OS browser. Plugin/settings clicks that want
- the work panel return to chat first so the dock is visible, without
- recording a navigation hop; a missing session falls back to the OS
- browser. Workspace HTML preview, BrowserPreview, OAuth, and Feedback
- keep their existing destinations. Context
- usage display controls whether the composer toolbar context ring and its
- popover lead with the remaining or the used capacity figure; the default
- is remaining. The threshold controls when a text-only paste becomes a
- temporary session-scratch file; it defaults to 600 characters and accepts
- integer values from 1 through 1,000,000.
+### Conversation (`chat` tab)
+
+How a transcript is presented and how the composer takes input. Two cards:
+**Display** then **Input & links**. Nothing on this page changes what the model
+does or what it is allowed to do, and the Display card's caption says so once
+so no row repeats it.
+
+- **Display** card, in rendered order: the **Show thinking** toggle with its
+ **Auto-fold finished thinking** sub-row, the **Transcript display** segmented
+ control with its **Auto-fold finished groups** sub-row, **Context usage
+ display** (remaining or used), **Smooth streaming**, and **Inline
+ visualizations**. Context usage display controls whether the composer toolbar
+ context ring and its popover lead with the remaining or the used capacity
+ figure; the default is remaining.
+- **Input & links** card: the **Enter-to-send** control, the large text paste
+ threshold, and the **Link open destination**. The threshold controls when a
+ text-only paste becomes a temporary session-scratch file; it defaults to 600
+ characters and accepts integer values from 1 through 1,000,000. Link open
+ destination uses the Work panel browser by default and routes chat,
+ transcript, and plugin HTTP(S) clicks to the system browser when set to
+ Default OS browser. Plugin/settings clicks that want the work panel return to
+ chat first so the dock is visible, without recording a navigation hop; a
+ missing session falls back to the OS browser. Workspace HTML preview,
+ BrowserPreview, OAuth, and Feedback keep their existing destinations.
- Composer text actions are contributed by explicitly installed plugins and
appear only while their plugin is enabled and its `composer.transform`
permission is granted. The host does not include a prompt-enhancement card or
@@ -351,8 +387,8 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
every rendered Thinking row open. Hiding the sub-row by turning **Show
thinking** off never writes a value, so the stored choice survives and comes
back with the parent. Settings search indexes both the row and its description.
-- **Transcript display** is a segmented control in Defaults immediately after
- **Show thinking**. It persists the optional `transcriptDisplayMode` field as
+- **Transcript display** is a segmented control in Display immediately after the
+ **Show thinking** pair. It persists the optional `transcriptDisplayMode` field as
`flat`, `command-first`, or `fully-folded`, with the labels **Flat**,
**Commands first**, and **Fully folded**; an absent or unknown value resolves
to **Fully folded**, the layout released in v0.20.0. **Flat** renders one
@@ -378,19 +414,35 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
group open - there is no size tier. Hiding the sub-row by switching to **Flat**
never writes a value, so the stored choice survives and returns with the mode.
Settings search indexes both the row and its description.
-- **Radial context menu** is a card in General after Sidebar with one switch
- (**Enable on the transcript background**) and four direction pickers
- (**Up**, **Right**, **Down**, **Left**). The switch is off when
- `AppSettings.radialMenu.enabled` is absent or false, which keeps the vertical
- background menu. Each picker stores one `RadialMenuAction`: copy conversation,
- select conversation text, copy the last answer, scroll to top, jump to
- latest, open the built-in browser, toggle the work panel, open the project
- folder, or **Leave empty**. The work panel direction follows the panel's
- state: it reads **Open work panel** while collapsed and **Close work panel**
- while open. Pickers are disabled while the switch is off and
- keep their stored directions for when it is turned back on. Settings search
- indexes the card and its rows.
-- The **Command shell** row in Defaults uses the host-discovered catalog of native
+
+### Agent behavior (`behavior` tab)
+
+What a new conversation starts with, and what the agent may do while it runs.
+Card order is **Session defaults → Execution → Computer use**.
+
+- **Session defaults** card: the host-backed default operating mode (Agent /
+ Plan / Goal), the global permission mode (ask / accept-edits / auto) that
+ governs how autonomously the agent acts, and the command shell selection.
+ These are one card because they are the same decision asked three ways: what
+ a run begins with. The permission control is a menu select on the shared
+ anchored-menu surface rather than a platform-drawn `<select>` popup, so every
+ Settings picker opens the same way. The closed trigger sizes to the current
+ label, capped by the settings control column.
+- **Execution** card: the infinite provider retry switch and the app-wide
+ **Scheduled tasks** switch. The retry switch is off by default and explains
+ that network/transient provider failures keep retrying until success; Stop
+ still cancels the turn and the setting may continue API usage while enabled.
+ The scheduled-tasks switch persists as optional
+ `AppSettings.scheduledTasksEnabled`, on when absent or true. Off hides the
+ footer clock and global-search page entry, leaves the route if already open,
+ withholds scheduled Agent tools, and blocks new manual/automatic runs and task
+ edits at the Host. Existing task enable states, schedules, and history remain
+ unchanged; active runs can finish. Re-enabling restores access and resumes
+ normal due-time admission without replaying missed occurrences.
+- **Computer use** card: last on the page. It omits card/row explanatory copy
+ and the static scope note; controls, platform and permission status, errors,
+ and the missing-model hint remain unchanged.
+- The **Command shell** row in Session defaults uses the host-discovered catalog of native
PowerShell 5.1, PowerShell 7, cmd, Git Bash, and Bash with IDs
`windows-powershell`, `windows-pwsh`, `cmd`, `git-bash`, and
`bash` where supported. The selected `defaultCommandShell` persists across
@@ -400,7 +452,7 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (
selector is the only configured-state indicator; status text is reserved for
the default, fallback, and no-effective-shell cases. A Bash turn verifies its
pinned ID/dialect before execution. The row renders the same menu select as
- the Permissions card and the Appearance pickers.
+ the permission mode beside it and the Appearance pickers.
- Context management has **no card and no controls** (D200 / ADR 0061, kept by
D203 / ADR 0064). Automatic protection is always on and its budgets and
retention limits are derived from the active model's window, so there is
@@ -492,7 +544,8 @@ a usage tab.
picker without duplicating the current value. The picker groups model-level
options by provider, marks the exact current entry, and keeps its searchable
list bounded. Account labels are not appended to model IDs. Global operating
- mode, command shell, and Enter-to-send are owned by the AI destination.
+ mode and command shell are owned by Behavior, and Enter-to-send by
+ Conversation.
- **Vendor accounts** card (D237/D240), between Defaults and Providers:
- the card lists accounts, not vendors: one row per local OAuth provider row,
including multiple rows for the same vendor. Its list surface uses the same
@@ -660,8 +713,9 @@ a usage tab.
The permission-mode selector remains available in the composer while the
session is in Agent, Plan, or Goal. In Plan and Goal it controls Bash
confirmation only: Ask and Accept edits prompt, while Auto may run a mutating
-Bash command without confirmation. The AI Defaults card must describe that both
-contract modes are intent boundaries, not strict read-only security profiles.
+Bash command without confirmation. The Session defaults card must describe that
+both contract modes are intent boundaries, not strict read-only security
+profiles.
### Jev classifier
@@ -991,9 +1045,10 @@ system while preserving their different data ownership:
## 3. Navigation rules
-- Profile footer / command palette open Settings full page (default General)
+- Profile footer / command palette open Settings full page (default Appearance,
+ the first destination in the directory)
- Composer model menu and provider setup actions deep-link to the Providers
- card inside Agent
+ card inside Models
- Plugin management remains available from the app shell's independent
**Plugins** destination, including load, enable, disable, and uninstall; it is
not duplicated in Settings
@@ -1009,21 +1064,24 @@ system while preserving their different data ownership:
1. Opening Settings hides the coding app sidebar (full-page takeover)
2. Rail shows the search pill at the top, the back-to-app action pinned at the
- foot on the main sidebar's footer icon line, and exactly General / 常规, AI,
- Shortcuts / 快捷键, Instructions / 指令, Models / 模型, Skills / 技能, MCP,
- Subagents / 子智能体, Projects / 项目, Cloud sync / 云同步 and Remote Hosts /
- 远程主机 (both Experimental, all builds), and Info / 信息 in that order. Voice
- appears between AI and Shortcuts only in development builds with developer
- mode on. The rows are grouped under Preferences / 偏好,
- Agent / 智能体, Workspace / 工作区, and System / 系统. There is no
- Usage / 用量 destination.
-3. Appearance is part of General and has no standalone rail destination
-4. Providers is part of Agent and has no standalone rail destination
+ foot on the main sidebar's footer icon line, and exactly Appearance / 外观,
+ Conversation / 对话, Shortcuts / 快捷键, Voice / 语音, Behavior / 行为,
+ Models / 模型, Instructions / 指令, Skills / 技能, MCP, Subagents / 子智能体,
+ Projects / 项目, System / 系统, Cloud sync / 云同步 and Remote Hosts /
+ 远程主机 (both Experimental, all builds), and Info / 信息 in that order. The
+ rows are grouped under Preferences / 偏好, Agent / 智能体,
+ Workspace / 工作区, and System / 系统. There is no Usage / 用量 destination,
+ and no General or AI destination: those ids resolve to Appearance and
+ Behavior without appearing in the rail or in search results.
+3. Appearance is its own destination; the network, storage, power and
+ close-behavior cards it used to share a page with are on System
+4. Providers is part of Models and has no standalone rail destination
5. Plugins has no Settings destination; the app-shell Plugins page supports
load, enable, disable, and uninstall
-6. General shows the host-backed Appearance card; the AI destination shows
- Permissions and Defaults, including the Command shell row; the
- Shortcuts destination shows the Keyboard shortcuts card; Info shows the
+6. Appearance shows the host-backed Interface card; Conversation shows Display
+ and Input & links; Behavior shows Session defaults — including the
+ permission mode and the Command shell row — then Execution and Computer use;
+ the Shortcuts destination shows the Keyboard shortcuts card; Info shows the
Developer card. Plugin-contributed destinations, when present, appear after
every core group under Extensions. Each destination is a renderer-composited
sandboxed surface: it preserves the existing Settings rail, titlebar,
@@ -1034,12 +1092,15 @@ system while preserving their different data ownership:
8. Model configuration shows compact Defaults, separate vendor accounts, the
account edit/add dialogs, and AI service cards rather than a dense always-on
form dump
-9. A row's or card heading's explanation is not a permanent second line: it
- travels as a string into the question mark beside the title, which reveals
- it on hover and keyboard focus and keeps at least 4.5:1 contrast against its
- card surface in both light and dark themes. A row's live value (the pinned
- default model) is data rather than prose and stays visible, and a form
- field's hint follows the same rule as a row's explanation
+9. A row's explanation is not a permanent second line: it travels as a string
+ into the question mark beside the title, which reveals it on hover and
+ keyboard focus and keeps at least 4.5:1 contrast against its card surface in
+ both light and dark themes. A row's live value (the pinned default model) is
+ data rather than prose and stays visible, and a form field's hint follows the
+ same rule as a row's explanation. A **card** may instead carry one visible
+ caption line under its heading (D684), because that one line orients a whole
+ group rather than explaining a single switch; copy that needs a second
+ sentence stays behind the heading's help mark
10. Dragging the empty top band from either side of Settings moves the native
window without blocking Back, search, or navigation controls
11. Resizing the window expands or contracts the content cards with the
@@ -1117,8 +1178,12 @@ the current window width:
| Rail width | ~275px (`--ds-settings-nav-width`, shared by the rail and the top band inset) |
| Rail surface | Shared sidebar material; light opaque fallback `#f3f3f3`, native glass on macOS |
| Top band | content pane only, inset by the rail width; rail keeps its own surface |
-| Active nav pill | denser 6px/10px pad, ~8px radius, gray mix on rail |
+| Active nav pill | 7px/10px pad, `--radius-md`, accent mixed ~12% into the rail's active tone; the row's glyph takes `--ds-accent` |
+| Rail cluster heading | smallest legible step (`--text-xs-plus`), semibold, `--tracking-wide`, uppercase |
+| Page header | 38px accent-tinted glyph fill (`--radius-md-plus`) + 14px gap + title block |
| Section title | 28px / 560, first baseline ~y70 |
+| Page subtitle | `--text-md`, `--ds-text-secondary`, one line under the title |
+| Card caption | `--text-sm-plus`, `--ds-text-secondary`, one line under the card heading |
| Content width | Full available pane width after rail and gutters |
| Card radius | ~14px elevated stroke |
| Toggle | **32×20** thumb 16, neutral accent on (not green) |
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index fb4b56e06..dc5617732 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -196,7 +196,7 @@ Outer frame that positions Topbar, Sidebar, MainChat, and WorkPanel. Owns resize
`.main-pane`, `.main-titlebar`, and `.conversation-topbar` remain opaque
`bg-primary` surfaces, so vibrancy does not spread across the whole window.
Windows/Linux retain their existing opaque background and frameless behavior.
-- Settings → General → Appearance → **Translucent window** (macOS only) is on
+- Settings → Appearance → Interface → **Translucent window** (macOS only) is on
by default and turns the material off: an opaque window paints the host or
plugin palette and leaves WindowServer's per-frame recomposition path, while
the renderer keeps the same tint and sheen. The choice is read when the main
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 7a0131836..ed3f63755 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -62,7 +62,7 @@
- **Preconditions:** Candidate Desktop, Host and reused local dependencies;
isolated profile/data/project and the local scheduled-model fixture.
-- **Steps:** With a saved task, open Settings → General, observe the default-on
+- **Steps:** With a saved task, open Settings → Behavior, observe the default-on
Scheduled tasks switch, turn it off, return to the app and search.
Reload the renderer, verify the saved off state, re-enable and run the task.
- **Expected:** The footer and page-search entry disappear while off; the
@@ -907,7 +907,7 @@
requests, GPT Image parameter omission, bounded responses, and rejection of
more than four references before I/O. These are protocol tests, not official
provider account/live compatibility certification.
-- **Proxy fake-IP:** With the explicit Settings → General → Network proxy
+- **Proxy fake-IP:** With the explicit Settings → System → Network proxy
fake-IP option enabled, a URL response resolved to Clash's benchmark range
is downloaded through the proxy-aware transport; without the option it stays
`IMAGE_UNSAFE_URL`, and real private addresses remain blocked in both cases.
@@ -3658,7 +3658,7 @@ identify the platform validation still needed.
14. Restore the archived project, then activate it.
15. Archive one project session, open it from Projects, and return to Projects.
16. Return to the app shell and open Plugins.
-- **Expected**: The rail contains exactly General, AI, Shortcuts, Instructions, Models, Skills, MCP, Subagents, Projects, Cloud sync, Remote Hosts, and Info in that order, each with its semantic Lucide icon (Sliders / Sparkles / Keyboard / FileText / Bot / BookOpen / Server / Bot / Archive / CloudDownload / Globe / Info). The flat directory is visually grouped under four muted, non-interactive headings — Preferences / 偏好 for General, AI, and Shortcuts; Agent / 智能体 for Instructions and Models; Workspace / 工作区 for Projects; About / 关于 for Info — with whitespace and no divider lines between groups; searching keeps the destination results flat and hides empty groups together with their headings. Appearance remains in General, while Permissions, Defaults, and the Command shell row live under 全局 AI; an available selected shell is represented by the selector without a duplicate Configured status, while default, fallback, and no-effective-shell states remain explicit; Context management has no settings card; Keyboard shortcuts and global instructions have their own destinations; Developer lives under Info; Projects shows active, closed, and archived durable rows without a visibility toggle, grouping them under the always-visible Pinned / All projects / Archived strips (D168/D267/D455) with per-section counts in a one-column workbench. The destination renders no hero block and no page-level counter run: the intro is one quiet description line, and each group strip's count agrees with its rendered rows; a click selects a row without leaving Settings; sorting by Name reorders rows inside every section without hiding any; search matches project fields and session titles and reports a match count, a session-title result selects its owning project, lists sessions in the inspector by latest activity with relative update times, and reveals history in batches of eight; clearing the search restores the complete index. The inspector menu closes on Escape and on an outside press. Bootstrap completion and background refreshes do not return Settings or Extensions to the chat home; the destination changes only after an explicit navigation action. Restore keeps the archive open and activation returns to chat with the restored project retained in the sidebar. Opening an archived session succeeds before clearing its archived state, returns to chat with that session selected, and makes it visible in the project sidebar; returning to Project archive no longer shows that session as archived. The home sidebar and global page results have no standalone Projects destination; Settings search finds Projects; Plugins remains an independent app-shell destination.
+- **Expected**: The rail contains exactly Appearance, Conversation, Shortcuts, Voice, Behavior, Models, Instructions, Skills, MCP, Subagents, Projects, System, Cloud sync, Remote Hosts, and Info in that order, each with its semantic Lucide icon (Palette / MessageSquare / Keyboard / Mic / Sliders / Bot / FileText / BookOpen / Server / Sparkles / Archive / Monitor / CloudDownload / Globe / Info), and no two destinations share a glyph. The flat directory is visually grouped under four muted, non-interactive headings — Preferences / 偏好 for Appearance, Conversation, Shortcuts, and Voice; Agent / 智能体 for Behavior, Models, Instructions, Skills, MCP, and Subagents; Workspace / 工作区 for Projects; System / 系统 for System, Cloud sync, Remote Hosts, and Info — with whitespace and no divider lines between groups; searching keeps the destination results flat and hides empty groups together with their headings. The selected row carries an accent-tinted pill and an accent glyph, and the content pane opens with that same glyph at page scale beside the title. There is no General and no AI destination (D684): theme and type are Appearance, the transcript and composer rows are Conversation, network/storage/power are System, and the permission mode, default mode and Command shell row are Behavior → Session defaults; an available selected shell is represented by the selector without a duplicate Configured status, while default, fallback, and no-effective-shell states remain explicit; Context management has no settings card; Keyboard shortcuts and global instructions have their own destinations; Developer lives under Info; Projects shows active, closed, and archived durable rows without a visibility toggle, grouping them under the always-visible Pinned / All projects / Archived strips (D168/D267/D455) with per-section counts in a one-column workbench. The destination renders no hero block and no page-level counter run: the intro is one quiet description line, and each group strip's count agrees with its rendered rows; a click selects a row without leaving Settings; sorting by Name reorders rows inside every section without hiding any; search matches project fields and session titles and reports a match count, a session-title result selects its owning project, lists sessions in the inspector by latest activity with relative update times, and reveals history in batches of eight; clearing the search restores the complete index. The inspector menu closes on Escape and on an outside press. Bootstrap completion and background refreshes do not return Settings or Extensions to the chat home; the destination changes only after an explicit navigation action. Restore keeps the archive open and activation returns to chat with the restored project retained in the sidebar. Opening an archived session succeeds before clearing its archived state, returns to chat with that session selected, and makes it visible in the project sidebar; returning to Project archive no longer shows that session as archived. The home sidebar and global page results have no standalone Projects destination; Settings search finds Projects; Plugins remains an independent app-shell destination.
Cloud sync and Remote Hosts appear in packaged Settings with Experimental
badges on their navigation rows and page titles; see `04-ux/06-settings-ia.md`.
- **Specs linked**: `04-ux/06-settings-ia.md`, `04-ux/01-ui-ia.md`, `03-runtime/11-provider-model-system.md`
@@ -3672,7 +3672,7 @@ identify the platform validation still needed.
Simplified Chinese, Traditional Chinese, Turkish, German, Spanish, French,
Korean, and Brazilian Portuguese system locales.
- **Steps**:
- 1) Open Settings → General.
+ 1) Open Settings → Appearance.
2) In the Appearance card, open the Theme picker. Confirm System, Light, and
Dark are pinned at the top; select Dark and confirm the trigger shows Dark
and the UI switches to dark.
@@ -3709,7 +3709,7 @@ identify the platform validation still needed.
#### E2E-091a: Theme changes keep the Windows frameless background aligned
- **Preconditions**: App running windowed on Windows with the OS in light mode.
-- **Steps**: 1) Select Dark in Settings → General → Appearance. 2) Inspect the lower-left, lower-right, and resize edges while the shell settles and while collapsing/expanding the sidebar. 3) Select Light and repeat. 4) Switch the OS color preference and select System; repeat after the app resolves the system theme.
+- **Steps**: 1) Select Dark in Settings → Appearance → Interface. 2) Inspect the lower-left, lower-right, and resize edges while the shell settles and while collapsing/expanding the sidebar. 3) Select Light and repeat. 4) Switch the OS color preference and select System; repeat after the app resolves the system theme.
- **Expected**: The native BrowserWindow background follows the resolved application theme (`#181818` for dark and `#ffffff` for light), so no white strip appears around the frameless renderer during theme changes or shell animations. macOS keeps its transparent vibrancy behavior unchanged.
- **Specs linked**: `04-ux/06-settings-ia.md`, `02-architecture/01-architecture.md`
- **Acceptance**: A (core shell)
@@ -3719,7 +3719,7 @@ identify the platform validation still needed.
#### E2E-SETTINGS-ai-tab-pickers-use-in-app-menus
- **Preconditions**: App running with a host that reports at least one configured command shell and at least one catalog shell that is unavailable on this platform.
-- **Steps**: 1) Open Settings → General and open the Theme and Language pickers; note the pill trigger and the opened surface. 2) Open 全局 AI. 3) Open the Permissions card's permission-mode control and select ask, accept-edits, and auto in turn. 4) Open the Defaults card's Command shell control; inspect the unavailable entries and select an available shell. 5) Dismiss each open menu with Escape and then with an outside press. 6) Close Settings, reopen it, and read both rows.
+- **Steps**: 1) Open Settings → Appearance and open the Theme and Language pickers; note the pill trigger and the opened surface. 2) Open Behavior / 行为. 3) Open the Session defaults card's permission-mode control and select ask, accept-edits, and auto in turn. 4) Open the Session defaults card's Command shell control; inspect the unavailable entries and select an available shell. 5) Dismiss each open menu with Escape and then with an outside press. 6) Close Settings, reopen it, and read both rows.
- **Expected**: Both rows open the same anchored menu surface as the Appearance pickers — the app-drawn frame with the shared radius, elevation, border, and theme tokens, a check mark on the current option, and a hover/keyboard highlight — and never a platform-drawn `<select>` popup. Closed triggers size to the current label, capped by the settings control column. Unavailable shells stay listed with their suffix, are not selectable, and cannot become the current value. Escape and an outside press close the menu and restore focus to the trigger; arrow keys move between selectable options with wraparound. The selected permission mode and command shell persist across closing and reopening Settings, and the selected shell stays the only configured-state indicator.
- **Specs linked**: `04-ux/06-settings-ia.md`, `04-ux/09-interaction-patterns.md`
- **Acceptance**: A (core shell)
@@ -4233,7 +4233,7 @@ window; opening a normal panel afterward must still work.
#### E2E-024J: Plugin theme applies and falls back when withdrawn
- **Preconditions**: A marketplace/package-installable `examples/plugins/hello` variant (`demo.hello`) whose `midnight` theme CSS references a declared package-relative image at `art/preview.png`; a plugin with CSS using `@import` or remote `url()` for rejection plus a comment-only variant; an asset theme with `windowAppearance` variants with and without `ui.window.appearance`, including `cornerRadius: 0` and an invalid value above 24.
-- **Steps**: 1) Install the packaged Hello variant from Marketplace or its `.piplug` package and select `Hello Midnight` in Settings → General → Theme. 2) Restart the app. 3) Disable the providing plugin. 4) Re-enable it, then uninstall it. 5) Load the plugin with unsafe CSS. 6) Load the comment-only variant. 7) Select the asset variant's theme on Windows/Linux and on macOS, verify the package-relative image renders through `plugin-asset:` in the shell and the plugin's panel, and load a sheet with an undeclared package-relative `url()` to verify it is refused. 8) Deselect its theme after removing `ui.window.appearance`.
+- **Steps**: 1) Install the packaged Hello variant from Marketplace or its `.piplug` package and select `Hello Midnight` in Settings → Appearance → Theme. 2) Restart the app. 3) Disable the providing plugin. 4) Re-enable it, then uninstall it. 5) Load the plugin with unsafe CSS. 6) Load the comment-only variant. 7) Select the asset variant's theme on Windows/Linux and on macOS, verify the package-relative image renders through `plugin-asset:` in the shell and the plugin's panel, and load a sheet with an undeclared package-relative `url()` to verify it is refused. 8) Deselect its theme after removing `ui.window.appearance`.
- **Expected**: The packaged plugin installs successfully with its relative image resolved inside the plugin root; its theme appears in the picker alongside the built-ins and applies immediately, with the image served through `plugin-asset:`; the choice survives restart as `plugin:demo.hello:midnight`; disabling or uninstalling the provider falls back to `system` instead of an unstyled shell; unsafe CSS is refused at load with the reason logged and no `<style>` element injected; the comment-only sheet loads and contributes its theme, because the sanitizer only inspects CSS the browser would apply; the declared asset paints through `plugin-asset:` in the shell and in the plugin's own panel, an undeclared reference is refused with the reason logged, the declared background colours the native window on Windows/Linux and is never sent on macOS, and `cornerRadius: 0` makes only the Windows main window rectangular while the authorized theme is selected. Deselecting the theme or dropping the grant restores the host background and the global 12 DIP `--radius-md` Windows corners; a radius above 24 rejects without changing the window. The whole shell follows the theme, including the work-panel column, its header, and the browser/file viewer strips, all of which read `--ds-bg-dock` / `--ds-bg-dock-raised` rather than a literal.
- **Specs linked**: `07-plugins/02-plugin-manifest-schema.md`, `07-plugins/04-plugin-security.md` §3.1, `04-ux/07-ui-design-system.md`, D175
- **Acceptance**: G (theme contribution) + Security
@@ -4241,7 +4241,7 @@ window; opening a normal panel afterward must still work.
#### E2E-PLUGIN-runtime-theme-apis
-- **Preconditions**: A plugin with `ui.theme` that can drive `pi.app.setTheme` and `pi.themes.upsert` / `remove` (panel or command). Settings → General shows the searchable theme picker.
+- **Preconditions**: A plugin with `ui.theme` that can drive `pi.app.setTheme` and `pi.themes.upsert` / `remove` (panel or command). Settings → Appearance shows the searchable theme picker.
- **Steps**: 1) From the plugin UI, call `themes.upsert` with a new theme id and distinct CSS. 2) Confirm the theme appears in Settings without reload/disable. 3) Call `app.setTheme` to select it. 4) Call `themes.upsert` again with different CSS while it is active. 5) Call `themes.remove` on an inactive theme. 6) Call `app.setTheme` with an unknown id. 7) Upsert a ninth theme (former hard cap was 8).
- **Expected**: The new theme is listed and applies immediately through the same path as Settings; live CSS edits restyle the shell without plugin reload; remove drops the picker row and the event refreshes the list; an unknown id rejects with `INVALID_ARGUMENT` and leaves the preference unchanged; the ninth theme is accepted. `settingsChanged` reaches the renderer store; `appearance:changed` reaches open panels.
- **Specs linked**: `07-plugins/03-plugin-api.md`, `07-plugins/12-plugin-ipc-and-host-services.md`, `07-plugins/13-plugin-permissions-matrix.md`, ADR 0260, D417
@@ -5578,7 +5578,7 @@ window; opening a normal panel afterward must still work.
#### E2E-CHAT-radial-background-menu: Radial menu on the empty transcript background
-- **Preconditions**: Settings → General → Radial context menu is available. A
+- **Preconditions**: Settings → Appearance → Radial context menu is available. A
session has a completed user prompt, a completed assistant answer, and enough
history to scroll.
- **Steps**: 1) With the switch off, right-click empty space below the last
@@ -6272,7 +6272,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
#### E2E-143: Close behavior is asked once and stays configurable (D230)
- **Preconditions**: Windows/Linux run with a clean data dir (no
- `close-behavior.json`); the main window is visible; Settings → General is
+ `close-behavior.json`); the main window is visible; Settings → System is
reachable. macOS is excluded: it keeps the native Dock lifecycle.
- **Steps**: 1) With the preference unset, click the close button (or press
the close-window shortcut) and verify the themed in-app dialog opens with Cancel focused. Escape, a
@@ -6282,7 +6282,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
full restart and that no second prompt ever appears once a choice exists.
3) With `tray` set, click the tray icon: the window
restores, shows, and focuses; the tray context menu offers Open and Quit,
- and Quit exits the app. 4) In Settings → General, switch between Close to
+ and Quit exits the app. 4) In Settings → System, switch between Close to
tray / Quit app and verify the next close follows the new
choice, that the D216 tray icon stays resident either way, that an unset
preference shows no selection, and that search matches
@@ -6904,7 +6904,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
- **Preconditions**: PI-Desktop is running on Windows with light and dark
themes available.
- **Steps**: 1) In light theme, open remaining native selects (scheduled-task
- form) and confirm Settings pickers on General, 全局 AI, Model configuration,
+ form) and confirm Settings pickers on Appearance, Behavior, Model configuration,
and Import open as in-app menus rather than platform `<select>` popups. 2)
Repeat every remaining native list in dark theme. 3) Open each list after
switching themes without restarting the app.
@@ -7136,7 +7136,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
corrupt-media recovery coverage.
- With a video in `<dataDir>/startup/` (D679): `data-testid="startup-animation"` replaces the splash in the first painted frame, plays over opaque black with no controls and no audio, then holds the same black until bootstrap finishes, then fades out over about a second with the shell already clickable during the fade. A boot slower than the video shows an indeterminate bar after 3s of black. `Escape` jumps straight to that fade.
- An unplayable file never holds the launch: the animation ends within 2s (no first frame) or on `error`, and the reveal runs exactly as it does after a clean finish.
- - The animation is not played under reduced motion, on a renderer reload, or on a window reopened from the tray or Dock; the brand splash is used instead. Settings → General → Appearance names the resolved file, offers the folder, and applies a toggled switch on the next launch only.
+ - The animation is not played under reduced motion, on a renderer reload, or on a window reopened from the tray or Dock; the brand splash is used instead. Settings → Appearance → Interface names the resolved file, offers the folder, and applies a toggled switch on the next launch only.
- A boot held past the watchdog bounds replaces the animation with the recovery surface — it is never left behind the opaque mask.
- No plain unbranded “Starting…” centered text as the only boot UI.
- Overlay/dialog enter motion uses shared tokens; reduced motion keeps state changes without decorative duration.
@@ -7175,7 +7175,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
2. Inspect the rendered `BrandLogo` source in the sidebar and startup splash,
and inspect the light eight-frame `HomeMascotLogo` GIF in the empty-home
hero. Hover the mascot and verify that its cadence does not change.
- 3. Switch the theme to dark (Settings → General → Appearance, or system appearance change).
+ 3. Switch the theme to dark (Settings → Appearance → Interface, or system appearance change).
4. Re-inspect the same surfaces without reloading.
5. Switch back to light and re-inspect.
- **Expected**:
@@ -7268,7 +7268,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
- **Preconditions**: App running; language can switch between English and zh-CN.
- **Steps**:
1. Inspect empty-home hint, sidebar temporary-chat section, and status/connection toasts.
- 2. Open Settings → AI providers and the marketplace refresh action.
+ 2. Open Settings → Models and the marketplace refresh action.
3. Switch the app language to zh-CN and re-check the same surfaces.
- **Expected**:
- Copy explains outcomes in plain product language (AI provider, project, marketplace, connected/limited) rather than host/backend/repo jargon.
@@ -7982,7 +7982,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
no repair request starts.
9. Reload the session and verify that only the completed response or the
single terminal failed assistant remains durable.
- 10. Open Settings → AI → Defaults, enable infinite provider retry, and repeat
+ 10. Open Settings → Behavior → Execution, enable infinite provider retry, and repeat
a network fixture that fails beyond ten attempts before recovering. Stop the
turn during backoff and verify no later request starts; disable the setting
and verify a fresh persistent outage stops after ten retries.
@@ -9723,7 +9723,7 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
default, then changed to a small test value. Record the app data directory,
session id, and a multiline Unicode text fixture.
- **Steps**:
- 1. Open Settings → AI → Defaults and confirm the large paste threshold is
+ 1. Open Settings → Conversation → Input & links and confirm the large paste threshold is
600. Set it to a deterministic lower value, save it, then return to the
composer.
2. Paste text exactly at the threshold and confirm native textarea behavior;
@@ -11433,17 +11433,25 @@ This test plan spec is accepted when:
- Open Settings light theme at ~1200×690.
- Full-page shell: rail ~260px on `#f3f3f3`, main `#fff`; search pill at the
rail top; Back to app pinned at the rail foot and vertically centred on the
- main shell's sidebar footer icon line; General active pill with icon.
-- Rail order is exactly General / 常规, AI, Shortcuts / 快捷键,
- Instructions / 指令, Models / 模型, Skills / 技能, MCP,
- Subagents / 子智能体, Import / 导入, Projects / 项目, and Info / 信息;
+ main shell's sidebar footer icon line; Appearance active pill with an
+ accent-tinted fill and an accent glyph.
+- Rail order is exactly Appearance / 外观, Conversation / 对话,
+ Shortcuts / 快捷键, Voice / 语音, Behavior / 行为, Models / 模型,
+ Instructions / 指令, Skills / 技能, MCP, Subagents / 子智能体,
+ Projects / 项目, System / 系统, Cloud sync / 云同步,
+ Remote Hosts / 远程主机, and Info / 信息;
the rows are grouped under muted Preferences / 偏好, Agent / 智能体,
Workspace / 工作区, and System / 系统 headings without divider lines,
duplicate destinations, or placeholder rows. The selected page keeps its
- descriptive title, such as Model configuration or Project archive.
-- General content: large title and an **Appearance** card with working
- system/light/dark controls. 全局 AI holds Permissions, Defaults, and the
- Command shell row; Context management has no settings card. Shortcuts holds
+ descriptive title, such as Model configuration or Project archive, and opens
+ with the rail's glyph at page scale plus — where the destination declares one
+ — a single subtitle line.
+- Appearance content: page header and an **Interface** card with working
+ system/light/dark controls, then Sidebar, Radial context menu and Startup.
+ Behavior holds Session defaults (default mode, permission mode, Command
+ shell), Execution and Computer use; Context management has no settings card.
+ Conversation holds Display and Input & links. System holds Network, Storage,
+ Power and, on Windows/Linux, Close behavior. Shortcuts holds
the Keyboard shortcuts card.
File-open target, language
override, menu-bar behavior, and bottom-panel behavior are absent until
@@ -12222,7 +12230,7 @@ This test plan spec is accepted when:
distinct from the built-in token stack (for example PingFang SC); a clean
`~/.pi-desktop` profile.
- **Steps**:
- 1) Open Settings → General and confirm the Appearance card shows a Font row
+ 1) Open Settings → Appearance and confirm the Interface card shows a Font row
below Theme and Language with a trigger labeled "System default".
2) Open the Font picker and confirm it lists System default followed by
installed system families only — no bundled open-licensed families and no
@@ -12272,7 +12280,7 @@ This test plan spec is accepted when:
- **Preconditions**: App running with a clean `~/.pi-desktop` profile and an
open conversation that shows transcript text, the composer, and the sidebar.
- **Steps**:
- 1) Open Settings → General and confirm the Appearance card shows a Font
+ 1) Open Settings → Appearance and confirm the Interface card shows a Font
size row below Font, with Grande selected and the slider at 100%.
2) Choose Venti. Confirm chat transcript, composer, settings labels,
sidebar session titles, and Lucide chrome icons all enlarge without a
@@ -14693,7 +14701,7 @@ are withdrawn with ADR 0165.
System mode, the OS has a local system proxy or PAC fixture with a capture
endpoint and a direct fallback route.
- **Steps**:
- 1. Open Settings → General. Confirm a Network card with Proxy modes
+ 1. Open Settings → System. Confirm a Network card with Proxy modes
System, Direct, and Custom. System is selected on a profile that never
set a proxy.
2. Choose Custom. Confirm a Proxy URL field, Bypass defaulting to
@@ -14883,7 +14891,7 @@ are withdrawn with ADR 0165.
work-panel Browser view and the system browser opener are available. The
clipboard can be observed or stubbed for the copy action.
- **Steps**:
- 1. In Settings → AI → Defaults, select **Work panel browser** and click the
+ 1. In Settings → Conversation → Input & links, select **Work panel browser** and click the
link from a chat reply.
2. Select **Default OS browser** and click the same link again.
3. Right-click the link and activate each context-menu item with the pointer:
@@ -16636,12 +16644,12 @@ plugin-form fixtures in an isolated temporary directory at runtime.
#### E2E-250: Context usage display preference switches the inspector's leading figure
- **Preconditions**: An Agent session has completed at least one turn that
- reported token usage. Settings → AI → Defaults is reachable.
+ reported token usage. Settings → Conversation → Display is reachable.
- **Steps**:
1. Confirm the composer toolbar context ring shows remaining capacity
(ring nearly full, percentage ≈ remaining %, tooltip and aria-label
use remaining vocabulary).
- 2. Open Settings → AI → Defaults and switch the Context usage display
+ 2. Open Settings → Conversation → Display and switch the Context usage display
segmented control from Remaining to Used.
3. Return to the chat and inspect the context ring: the ring arc now
fills by `usedRatio` (nearly empty at low occupancy), the percentage
@@ -18735,15 +18743,15 @@ the latest destination. These assertions measure work counts, not device FPS.
### E2E-SETTINGS-destination-scroll-reset
-- Open Settings → AI and scroll midway down. Select Shortcuts: its title and
- first settings appear at the top. Scroll and return to AI: it starts at top.
+- Open Settings → Conversation and scroll midway down. Select Shortcuts: its title and
+ first settings appear at the top. Scroll and return to Conversation: it starts at top.
- Re-select the active destination and update settings without navigating:
the content keeps its scroll position.
- Repeat for built-in → plugin, plugin → plugin, and plugin → the previously
selected built-in destination. Re-selecting a plugin keeps its position.
-- Follow a global search setting anchor into AI from another destination,
- from an open plugin destination, and within AI: the plugin page is gone and
- the target row is visible before the next paint. Consuming the anchor keeps
+- Follow a global search setting anchor into Conversation from another
+ destination, from an open plugin destination, and within Conversation: the
+ plugin page is gone and the target row is visible before the next paint. Consuming the anchor keeps
that position. An external tab change with no anchor also leaves the plugin
and starts at the top.
- Run in light and dark themes.
@@ -18757,6 +18765,57 @@ the latest destination. These assertions measure work counts, not device FPS.
renderer interaction, not host persistence or the
full global-search dialog.
+### E2E-SETTINGS-one-destination-one-subject
+
+- **Scenario:** The D684 directory split. Every setting is reachable from the
+ destination that owns its subject, and nothing is reachable from two.
+- **Steps:**
+ 1. Open Settings. The rail lists Appearance, Conversation, Shortcuts, Voice,
+ Behavior, Models, Instructions, Skills, MCP, Subagents, Projects, System,
+ Cloud sync, Remote Hosts, Info, in four titled clusters.
+ 2. Visit Appearance: Interface (theme, language, font, font size, and on
+ macOS translucency), Sidebar with its two indented sub-switches, Radial
+ context menu, Startup. No network, storage, power or close-behavior card.
+ 3. Visit Conversation: Display (show thinking + sub-row, transcript display +
+ sub-row, context usage, smooth streaming, inline visualizations) under one
+ visible caption saying presentation only, then Input & links (enter to
+ send, paste threshold, link open destination).
+ 4. Visit Behavior: Session defaults (default mode, permission mode, command
+ shell), Execution (infinite retry, scheduled tasks), Computer use last.
+ 5. Visit System: Network, Storage, Power, and on Windows/Linux Close
+ behavior.
+ 6. Search the rail for `theme`, `主题`, `proxy`, `scheduled`, `paste`, and
+ `permission`. Each query surfaces exactly the destination that renders the
+ row, and following a hit scrolls to and flashes that row.
+ 7. Change one setting on each of the four pages, close Settings, reopen it,
+ and read the value back.
+- **Expected:** No setting appears on two destinations and none is orphaned.
+ Each page opens with its rail glyph at page scale, its title, and one
+ subtitle line; the capability, model and project workbenches show their own
+ description instead and no subtitle. A row's explanation is still only behind
+ its help mark; the only always-visible explanatory line is a card caption.
+ Persisted values are unchanged by the move — a profile written before the
+ split reads back identically.
+- **Automation:** `settings-general.test.mjs` pins the destination index, the
+ per-page ownership, and the locale keys; `pnpm test:e2e:settings-scroll`
+ exercises the rail, search anchors and per-destination scroll in Electron.
+ `node scripts/e2e-storage-settings.mjs` opens System with a failed settings
+ read, verifies its visible error and retry action, then restores the settings
+ snapshot through retry before exercising storage controls and confirmations.
+
+### E2E-SETTINGS-retired-destination-ids-resolve
+
+- **Scenario:** A destination id written before the split still opens a page.
+- **Steps:** With a profile or deep link selecting `general`, open Settings;
+ repeat with `ai`. Trigger the native Settings menu item and the command
+ palette's Settings entry.
+- **Expected:** `general` opens Appearance and `ai` opens Behavior; neither id
+ appears in the rail or in settings search. An unknown id opens Appearance.
+ The content pane is never blank.
+- **Automation:** `settings-general.test.mjs` asserts the resolution table, and
+ `settings-developer-only-destinations.test.mjs` asserts the hidden-destination
+ fallback uses the index's default rather than a literal id.
+
### E2E-SCHEDULED-dispatch
- **Scenario:** Independent task dispatch.
@@ -19304,13 +19363,13 @@ host-created files. The full app's file-preview viewer is covered separately.
- **Preconditions**: At least two local project groups with sessions, one of
them with a running turn (and optionally a session waiting for a
permission prompt), plus a connected remote host group with a running
- session. Settings → General → Sidebar switches are at their defaults.
+ session. Settings → Appearance → Sidebar switches are at their defaults.
- **Steps**:
1. Start a turn in one project and collapse that project group.
2. Inspect the collapsed header, then expand it again.
3. Start a second concurrent turn in a different project and a turn in the
remote host's project.
- 4. Open Settings → General → Sidebar and turn off **Show running activity
+ 4. Open Settings → Appearance → Sidebar and turn off **Show running activity
on projects**, then re-check the sidebar.
5. Turn the master switch back on and turn on **Activity rail**.
6. Turn off **Count badge** only and re-check; turn it back on.
@@ -19736,7 +19795,7 @@ permission-request UI below has isolated fixture automation.
### E2E-COMPUTER-USE-request-accessibility-from-settings
-- **Layout regression**: Open Settings → AI. Computer use is the final card,
+- **Layout regression**: Open Settings → Behavior. Computer use is the final card,
after Permissions and Defaults, without card/row explanations or a static
scope note. Its switch, platform/permission status, enabled model/capture
controls, missing-model hint, and permission error/retry path remain present.
diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.md
index 664f1b292..992b74d8a 100644
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@ -460,6 +460,7 @@ section mirrors only marketplace/catalog items still blocking nothing.
|---|---|---|---|
| D143 | Settings directory rail icons | **The five settings destinations use fixed Lucide glyphs: Basics=`SlidersHorizontal`, Model configuration=`Bot`, Import=`Download`, Project archive=`Archive`, Info=`Info`. Refresh/rotate glyphs are not used on this rail.** | Prior mapping reused Settings/RefreshCcw/RotateCw, which read as generic gear/reload rather than the destination semantics; monochrome Lucide keeps the compact directory scannable. |
| D166 | Settings directory split into AI and Shortcuts destinations | **The Settings rail grows from five to seven destinations in order: Basics (`SlidersHorizontal`), 全局 AI/AI (`Sparkles`, new), Shortcuts (`Keyboard`, new), Model configuration (`Bot`), Import (`Download`), Project archive (`Archive`), Info (`Info`). Permissions and Context management move from Basics to the new AI destination; Keyboard shortcuts moves from Basics to the new Shortcuts destination; Developer moves from Basics to Info. Basics keeps only Appearance and Defaults. This supersedes the five-destination count/order of D133 and the five-icon set of D143 (adding `Sparkles` and `Keyboard`) without changing any setting's semantics, the full-page shell, or rail metrics.** | Basics accumulated six unrelated cards, burying global AI behavior (permission mode, context compaction) and shortcut configuration alongside look-and-feel; splitting them gives each concern a scannable home while keeping provider/connection config separate in Model configuration. |
+| D684 | One settings destination owns one subject | **Amend D143 / D166 / D678 and see ADR 0345: the Settings directory is fifteen destinations in order — Appearance (`Palette`), Conversation (`MessageSquare`), Shortcuts (`Keyboard`), Voice (`Mic`), Behavior (`SlidersHorizontal`), Models (`Bot`), Instructions (`FileText`), Skills (`BookOpen`), MCP (`Server`), Subagents (`Sparkles`), Projects (`Archive`), System (`Monitor`), Cloud sync (`CloudDownload`), Remote Hosts (`Globe`), Info (`Info`) — in the four existing clusters. `general` and `ai` are retired: General's appearance rows become Appearance (cards Interface / Sidebar / Radial context menu / Startup) and its machine rows become System (Network / Storage / Power / Close behavior); the AI Defaults catch-all splits into Conversation (Display / Input & links) and Behavior (Session defaults / Execution / Computer use). Both retired ids stay resolvable to their successor and appear in neither the rail nor search. A card may carry one visible caption line and a destination one subtitle line; each page repeats its rail glyph at page scale on an accent-tinted fill, and the selected rail row takes an accent-tinted pill with an accent glyph. No persisted field, IPC, host protocol, or storage schema change — only which page renders which row. See E2E-SETTINGS-one-destination-one-subject and E2E-SETTINGS-retired-destination-ids-resolve.** | Two destinations had become landing places rather than subjects: General mixed theme and type with proxies, disk maintenance, sleep blockers and the close button, and the AI Defaults card had grown to thirteen rows spanning transcript presentation, composer input and run behavior. A reader could not predict which page held a setting, and with every explanation behind a help mark the only way to find one was to hover the whole page. Reordering cards cannot repair a page that owns two subjects. |
## R. Decision rules going forward
@@ -8349,3 +8350,57 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
itself is platform code and is covered only by the device probe. See
`docs/implementation/computer-use-evidence.md` for what the run proved and
what it did not.
+
+## 2026-11-05 — One settings destination owns one subject (D684)
+
+- Two Settings destinations had stopped being subjects and become landing
+ places. General carried theme, language and type next to the outbound proxy,
+ the application data directory, sleep blockers and the window's close button.
+ The AI destination's **Defaults** card had grown to thirteen rows: the default
+ operating mode and the command shell sat between the transcript display mode,
+ the thinking toggles, the context ring's leading figure, Enter-to-send and the
+ paste threshold. Those are three subjects — how it looks, how a transcript
+ reads, what a run does — in two pages.
+- The rule now is one destination per subject, and the split follows it rather
+ than reordering cards: **Appearance** (Interface, Sidebar, Radial context
+ menu, Startup), **Conversation** (Display, Input & links), **Behavior**
+ (Session defaults, Execution, Computer use), **System** (Network, Storage,
+ Power, and on Windows/Linux Close behavior). Fifteen destinations in the four
+ existing clusters; Subagents takes the `Sparkles` glyph the retired AI
+ destination released, so no two rows share an icon.
+- Permission mode moved in with the default operating mode and the command
+ shell instead of keeping a card of its own. They are one question asked three
+ ways — what a new conversation starts with — and a one-row card was part of
+ what made the old page read as a pile.
+- Nothing about the settings themselves changed: no persisted field, IPC
+ message, host protocol or storage schema. A profile written before the split
+ reads back identically; only the page that renders each row is different.
+ `general` and `ai` resolve to Appearance and Behavior
+ (`resolveSettingsTab`), so a stored selection, a native menu, a capture scene
+ or an older deep link cannot open a blank pane, and neither id appears in the
+ rail or in settings search.
+- Two presentation rules were added because the IA alone does not make a page
+ legible. A destination may declare one subtitle line under its title, and a
+ card may carry one visible caption line under its heading — the first visible
+ explanatory copy since D601 moved row explanations behind a help mark. The
+ distinction is scope: a caption orients a whole group, a row's explanation
+ still belongs behind its question mark, and copy that needs a second sentence
+ stays there too. The capability, model and project workbenches already open
+ with their own description and declare no subtitle, so no page says its
+ purpose twice.
+- The page header now repeats the rail's glyph at page scale on an
+ accent-tinted fill, and the selected rail row takes an accent-tinted pill
+ with an accent glyph. With fifteen rows in four clusters, "where am I" has to
+ survive a glance; the fills stay inside the in-flow surface rule (D297) since
+ they are tone, not a stroke.
+- Prose that routed a reader to a destination that no longer exists was fixed
+ in every catalog: the proxy and network-policy messages now say
+ Settings → System → Network. The live specs follow
+ (`04-ux/06-settings-ia.md`, `00-baseline.md` §40, `04-ux/01-ui-ia.md`,
+ `04-ux/08-component-spec.md`, `03-runtime/04-data-storage.md`,
+ `03-runtime/computer-use.md`). Earlier decision entries keep their original
+ wording: they record what was decided then.
+- The renderer shell is now a router. Each destination is a module under
+ `features/settings/pages/`, which keeps `SettingsPage.tsx` from growing a
+ fifth subject and leaves the settings source contract intact, since it reads
+ the facade plus everything under `features/settings`.
diff --git a/docs/zh-CN/spec/00-baseline.md b/docs/zh-CN/spec/00-baseline.md
index e015cc168..9d7e814cb 100644
--- a/docs/zh-CN/spec/00-baseline.md
+++ b/docs/zh-CN/spec/00-baseline.md
@@ -141,7 +141,7 @@
37. Secrets后端:**safeStorage主+加密文件后备**
38. 工作区忽略:**拒绝列表 + 默认值 + `.pi-desktopignore`**
39. 工具结果限制:**按工具预算(搜索 128KB / 4000 行,shell 96KB / 4000 行);仅在结果被切断时 `truncated`**
-40.设置目录:**常规/AI/快捷键/指令/模型/技能/MCP/子智能体/项目归档/云同步/远程主机/信息**;
+40.设置目录:**外观/对话/快捷键/语音/行为/模型/指令/技能/MCP/子智能体/项目归档/系统/云同步/远程主机/信息**——一个目的地只负责一个主题(D684);
外部模型、技能和 MCP 扫描内嵌在各自页面;会话导入由插件负责;
项目档案拥有持久的项目发现、归档、恢复和
重新开放工作流程;
diff --git a/docs/zh-CN/spec/04-ux/01-ui-ia.md b/docs/zh-CN/spec/04-ux/01-ui-ia.md
index ae5bc8845..af314aebc 100644
--- a/docs/zh-CN/spec/04-ux/01-ui-ia.md
+++ b/docs/zh-CN/spec/04-ux/01-ui-ia.md
@@ -181,7 +181,7 @@
- **运行活动**:有任务正在运行的项目组会在标题上显示状态,因为折叠组会隐藏所有会话行状态。
项目名后面的**数量徽标**把运行中和等待权限的会话数分开显示;左侧的**活动流光**
则是带有移动脉冲的 2px 轨道,展开时沿会话列表显示,折叠时收缩至标题。远程项目组使用相同显示。
- “设置 → 常规 → 侧边栏”控制一个总开关及两个子开关。未设置时总开关和数量徽标默认开启,
+ “设置 → 外观 → 侧边栏”控制一个总开关及两个子开关。未设置时总开关和数量徽标默认开启,
活动流光默认关闭;已保存的值优先生效。关闭总开关会隐藏两种提示,但保留子开关的已保存选项。
减少动态效果时两种提示都保持静态且可辨识。
- **项目操作**:打开文件夹显示项目目录;重命名只修改
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 49b9d997a..ded4f004f 100644
--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md
+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md
@@ -24,27 +24,41 @@
固定底部的操作因此不会遮住任何一行
- 横跨导轨和内容窗格的 46px 顶部带是一个原生窗口
拖动区域;交互式控件仍然明确不可拖动
-- 带有图标和简洁平行标签的紧凑导航目录,按以下顺序:
- 1. **常规** — Lucide `SlidersHorizontal`(外观)
- 2. **AI** — Lucide `Sparkles`(权限、默认项、命令 Shell)
+- 带有图标和简洁平行标签的紧凑导航目录,按以下顺序。**一个目的地只负责一个
+ 主题**(D684 / ADR 0345):目的地绝不是「其他地方放不下的设置」的落脚处;
+ 不属于任何目的地的主题说明缺少一个目的地,而不是应该在无关页面上多加一张卡:
+ 1. **外观** — Lucide `Palette`(主题、语言、字体、界面元素)
+ 2. **对话** — Lucide `MessageSquare`(转录呈现与输入框)
3. **快捷键** — Lucide `Keyboard`(键盘快捷键)
- 4. **指令** — Lucide `FileText`(全局和项目指令文件)
- 5. **模型** — Lucide `Bot`(提供商和默认模型)
- 6. **技能** — Lucide `BookOpen`(可复用的智能体指令)
- 7. **MCP** — Lucide `Server`(智能体连接)
- 8. **子智能体** — Lucide `Bot`(内置与自建的并行工作智能体)
- 9. **项目** — Lucide `Archive`(持久项目索引)
- 10. **云同步** — Lucide `CloudDownload`(加密的可移植配置备份与双向同步;实验性,所有构建可见)
- 11. **远程主机** — Lucide `Globe`(SSH 引导与配对清单;实验性,所有构建可见)
- 12. **信息** — Lucide `Info`(版本、日志、更新、开发人员)
- 图标具有装饰性(通过 SVG 默认设置为 `aria-hidden`)并保持单色
- 带有导轨标签;不要在此处重复使用 refresh/rotate 字形。
+ 4. **语音** — Lucide `Mic`(实时语音开关与服务绑定)
+ 5. **行为** — Lucide `SlidersHorizontal`(会话默认、执行、电脑操作)
+ 6. **模型** — Lucide `Bot`(提供商和默认模型)
+ 7. **指令** — Lucide `FileText`(全局和项目指令文件)
+ 8. **技能** — Lucide `BookOpen`(可复用的智能体指令)
+ 9. **MCP** — Lucide `Server`(智能体连接)
+ 10. **子智能体** — Lucide `Sparkles`(内置与自建的并行工作智能体)
+ 11. **项目** — Lucide `Archive`(持久项目索引)
+ 12. **系统** — Lucide `Monitor`(网络、存储、电源、窗口关闭行为)
+ 13. **云同步** — Lucide `CloudDownload`(加密的可移植配置备份与双向同步;实验性,所有构建可见)
+ 14. **远程主机** — Lucide `Globe`(SSH 引导与配对清单;实验性,所有构建可见)
+ 15. **信息** — Lucide `Info`(版本、日志、更新、开发人员)
+ 导轨图标具有装饰性(通过 SVG 默认设置为 `aria-hidden`)并与标签保持单色;
+ 只有选中行的字形取强调色,与该行的强调色底片一起出现。不要在此处重复
+ 使用 refresh/rotate 字形。两个目的地不得共用同一字形:模型保留 `Bot`,
+ 子智能体接手已退役的 AI 目的地释放出的 `Sparkles`。
+- `general` 与 `ai` 两个目的地已退役。它们的 id 仍可解析——`general` → 外观、
+ `ai` → 行为——这样已保存的选择、原生菜单项或拆分之前写下的链接都会落到真实
+ 页面,而不是空白内容区;两个 id 都不出现在目录和搜索结果里。
- 目录仍是保持相同顺序的可搜索扁平列表。为便于扫描,目的地分为四个带标题
- 的视觉分组:“偏好”(常规、AI、快捷键)、“智能体”(指令、模型、技能、
- MCP、子智能体)、“工作区”(项目)和“系统”(云同步、远程主机、信息;
- 云同步和远程主机均为所有构建可见的实验性目的地)。标题使用柔和
- 的非交互文字,分组之间只使用留白,不绘制分割线;搜索过滤后,空分组及其
- 标题一并隐藏。
+ 的视觉分组:“偏好”(外观、对话、快捷键、语音)、“智能体”(行为、模型、
+ 指令、技能、MCP、子智能体)、“工作区”(项目)和“系统”(系统、云同步、
+ 远程主机、信息;云同步和远程主机均为所有构建可见的实验性目的地)。标题
+ 使用柔和的非交互文字,取最小可读字号并加字距,分组之间只使用留白,不绘制
+ 分割线;搜索过滤后,空分组及其标题一并隐藏。
+- 每个目的地都以**页头**开场:导轨字形以页面尺度重复出现在强调色底片上、页面
+ 标题,以及——对于内容本身没有开场描述的目的地——一行说明该目的地负责什么。
+ 能力页、模型页和项目页保留各自的开场描述、不带副标题,因此同一页不会把用途
+ 说两遍。
- **云同步**是所有构建均可用的实验性「系统」目的地:导轨行、页面和设置搜索命中
在开发版与打包版中都存在,导轨行和页面标题均带有实验性徽章
(`settings.configSync.experimental`)。开发者模式不影响可见性,同步行为本身不变。
@@ -58,8 +72,13 @@
## 2. 章节内容
-### 常规
-- **外观**卡:
+### 外观
+
+产品的观感以及对话周围的界面元素,共四张卡:**界面**、**侧边栏**、**轮盘
+右键菜单**、**启动**。这里的任何设置都不改变智能体的行为;这一页过去附带的
+机器层面的卡——网络、存储、电源、关闭行为——自 D684 起归**系统**。
+
+- **界面**卡:
- **主题**:可搜索的选择行(与语言相同的锚定菜单)。关闭时的触发器按当前文案收缩,不超过设置控件列,并显示当前名称。菜单把系统、浅色、深色钉在顶部,插件主题在分隔线之后列出,并带「由…提供」提示。搜索匹配名称、描述、id 和插件 id。选择更新 `settings.theme`。
- **语言**:可搜索的选择行(不是卡片网格)。关闭时的触发器按当前文案收缩,不超过设置控件列,显示当前语言的本地名称,或「跟随系统」。菜单把「跟随系统」钉在顶部并内嵌显示检测到的语言(例如「当前:简体中文」),然后按本地名称(永不翻译的 endonym)和英文名称列出每个已发布语言,供搜索和排序。选择更新 `settings.language`。新增语言只需加一份目录和一行注册表;选择器不硬编码选项列表。
- **字体**:可搜索的选择行(触发器以该字体的字样显示当前字体)
@@ -75,19 +94,36 @@
渲染器在根元素设置 `--font-scale`,全部 `--text-*` 阶和共享 Lucide 图标
按比例缩放,无需重载。窗口放大/缩小/重置仍独立。界面不出现 px 输入
(D343 / ADR 0180)
- - **启动动画**(D679 / ADR 0338):一个总开关,外加受其管辖的**就绪后提前结束**
- 子开关。动画本身是文件而不是取值,因此该行的另一项职责是让文件夹可被找到:它的
- 详情行说明下次启动将播放哪个视频(或提示未找到),并带上打开
- `<dataDir>/startup/` 的动作(必要时顺手创建)。两个偏好都持久化在
- `AppSettings.startupAnimation` 下(`enabled` 缺省为开,所以放进文件即可;
- `skipWhenReady` 缺省会把视频播完),并且在创建主窗口之前读取,因此与上面那行一样
- 在下次启动生效。状态每次打开都重新扫描,因为刚放进文件的用户还没重启。
- **自动语言检测**通过主进程解析操作系统区域设置
(`app.getLocale()`) 而不是渲染器的 `navigator.language`,并且
「跟随系统」选项内嵌显示检测到的语言(例如“当前:简体中文”)
- 本机选择触发器及其打开的选项列表使用活动主题的
macOS、Windows 和 Linux 上的可读 foreground/background 配对;的
共享的本机选择契约适用于每个应用程序表面
+- **侧边栏**卡片:一个项目运行活动总开关
+ (`AppSettings.sidebarRunningIndicators`) 与独立的**数量徽标**和**活动流光**开关
+ (`sidebarRunningBadge`、`sidebarRunningRail`)。未设置时总开关和数量徽标默认开启,活动流光默认关闭;
+ 已保存的值优先生效。两个受管辖的开关以缩进子行呈现,因此依赖关系无需用一句话
+ 解释。总开关关闭时它们置灰并保留各自已保存的选项,重新开启后恢复原选择。
+ 提示样式见 [`01-ui-ia.md` §3.2](01-ui-ia.md#32-侧边栏项目组)。
+- **轮盘右键菜单**卡:一个开关(**在对话背景上启用**)和四个方向选择器(**上**、
+ **右**、**下**、**左**)。`AppSettings.radialMenu.enabled` 缺省或为假时开关关闭,
+ 保持原来的纵向背景菜单。每个方向保存一个 `RadialMenuAction`。开关关闭时选择器
+ 置灰并保留已设方向。设置搜索索引该卡及其各行。
+- **启动**卡 — **启动动画**(D679 / ADR 0338):一个总开关,外加受其管辖的**就绪后提前结束**
+ 子开关。动画本身是文件而不是取值,因此该行的另一项职责是让文件夹可被找到:它的
+ 详情行说明下次启动将播放哪个视频(或提示未找到),并带上打开
+ `<dataDir>/startup/` 的动作(必要时顺手创建)。两个偏好都持久化在
+ `AppSettings.startupAnimation` 下(`enabled` 缺省为开,所以放进文件即可;
+ `skipWhenReady` 缺省会把视频播完),并且在创建主窗口之前读取,因此与毛玻璃开关
+ 一样在下次启动生效。状态每次打开都重新扫描,因为刚放进文件的用户还没重启。
+
+### 系统
+
+关乎这台安装而不是产品观感或智能体行为:**网络**、**存储**、**电源**,以及
+Windows/Linux 上的**关闭行为**。平台相关的关闭行为放在这里,因为它改变的是
+应用程序窗口行为,而不是智能体行为。
+
- **电源**卡:两个独立且默认关闭的开关。「保持电脑唤醒」使用
`prevent-app-suspension`,桌面应用运行期间阻止系统因空闲休眠,包括定时任务
等待下一次触发时;屏幕仍可关闭。「阻止屏幕休眠」使用
@@ -95,36 +131,52 @@
`AppSettings.keepAwakeWhileRunning` 和 `AppSettings.preventScreenSleep`,
切换立即生效、启动时恢复,关闭对应开关或退出应用时分别释放阻止器。
手动睡眠和合盖遵循系统设置。
-- **侧边栏**卡片:一个项目运行活动总开关
- (`AppSettings.sidebarRunningIndicators`) 与独立的**数量徽标**和**活动流光**开关
- (`sidebarRunningBadge`、`sidebarRunningRail`)。未设置时总开关和数量徽标默认开启,活动流光默认关闭;
- 已保存的值优先生效。总开关关闭时两个子开关置灰并保留各自已保存的选项,重新开启后恢复原选择。
- 提示样式见 [`01-ui-ia.md` §3.2](01-ui-ia.md#32-侧边栏项目组)。
+- **存储**卡显示生效的应用数据目录与可回收缓存大小,并被设置搜索索引;选择目录
+ 走原生选择器,确认框列出来源路径、目标、迁移范围与重启/备份策略,取消没有副作用。
+ 清理缓存与删除旧备份各自需要就地确认。
- **网络**卡:
- **代理**:分段控件 — 系统 / 直连 / 自定义。默认是系统(Chromium 跟随操作系统代理)。直连禁用代理。自定义将一个 HTTP、HTTPS 或 SOCKS5 URL 应用到应用自有出站请求(模型调用、扩展市场、更新、模型目录、插件 `net.fetch`、内置浏览器)。工作区 Bash 和 OAuth 用的系统浏览器不会被改写。
- 自定义显示代理 URL(含 `user:pass@`)、默认 `localhost,127.0.0.1,::1,<local>,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16` 的绕过列表(本机、本地模型与所有局域网服务直连,不被代理吞掉),以及一次走该代理的测试。带认证的 URL 通过回环 SOCKS5 中继交给 Chromium(issue #490)。选择持久化为可选 `AppSettings.networkProxy`;系统/直连模式下同样保留用户填写的 `url` 与 `bypass`(只有 `mode` 决定谁生效),因此再次选择自定义会恢复它们而不是内置的 `socks5://127.0.0.1:1080`(issue #1541)。无协议/存储版本升级(D340 / ADR 0177)。
- **网络宽松模式**:一个开关,持久化为 `AppSettings.networkPolicy.mode`(`relaxed` | `strict`),**默认开启**。开启时,你自己填写的端点(模型服务、MCP 服务器、git 远端)可以是回环或局域网地址、可以使用明文 `http`,并容忍透明代理的 fake-IP 答案;关闭则回到"只允许公网 https"。首次用明文访问这类端点时会弹一次告知。它取代的三个旧确认开关(`networkProxy.allowFakeIp`、`configSync.allowInsecureHttp`、以及自填明文开关)都已删除(ADR 0304)。
-- 平台支持的**关闭行为**仍保留在常规中,因为它改变的是
- 应用程序窗口行为,而不是智能体行为。
+- **关闭行为**卡,仅 Windows/Linux:窗口关闭按钮的行为。
- 文件打开目标、菜单栏行为和底部面板行为不是
渲染直到其主机支持的设置模式和运行时效果存在。
-### 全局 AI(`ai` 选项卡)
-- **权限**卡:全局权限模式控制
- (询问/接受编辑/自动)控制代理如何自主行动。该控件是共享锚定菜单表面上的
- 菜单选择器,而不是由平台绘制的 `<select>` 弹层,因此设置里的每个选择器
- 都以相同方式展开。关闭时的触发器按当前文案收缩,不超过设置控件列。
-- **默认项**卡:主机支持的默认运行模式(Agent / Plan / Goal)、
- 命令 Shell 选择、链接打开目标、上下文用量显示(剩余或已用)、
- 显示思考开关、过程显示分段控件、回车发送控制、无尽重试开关和大段文本粘贴阈值。无尽重试默认关闭;开启后网络/临时提供商故障会持续到成功,
- 但停止按钮仍可取消回合,开启期间可能持续消耗 API 用量。链接打开目标默认使用工作面板浏览器,
- 可将对话、会话记录和插件页的 HTTP(S) 点击路由到系统浏览器。插件/设置页
- 若目标是工作面板,会先回到对话再打开(不记入导航栈),避免被遮罩挡住;没有会话时才回退到
- 系统浏览器。工作区 HTML
- 预览、BrowserPreview、OAuth 和问题反馈仍走原有目标。上下文用量显示控制输入框
+### 对话(`chat` 选项卡)
+
+转录如何呈现、输入框如何接收输入。两张卡:**显示**,然后**输入与链接**。
+这一页的任何设置都不改变模型做什么或被允许做什么;显示卡用一行副标题说明
+这一点,各行无需重复。
+
+- **显示**卡,按渲染顺序:**显示思考**开关及其**自动折叠已完成思考**子行、
+ **过程显示**分段控件及其**自动折叠已结束活动组**子行、**上下文用量显示**
+ (剩余或已用)、**平滑流式**、**内联可视化**。上下文用量显示控制输入框
工具栏上下文环及其弹层是以剩余容量还是已用容量为引导数值;默认为剩余。
- 该阈值决定纯文本粘贴何时转为会话临时文件,默认值为 600 个字符,
- 接受 1 至 1,000,000 的整数。
+- **输入与链接**卡:**回车发送**控制、大段文本粘贴阈值、**链接打开目标**。
+ 阈值决定纯文本粘贴何时转为会话临时文件,默认值为 600 个字符,接受 1 至
+ 1,000,000 的整数。链接打开目标默认使用工作面板浏览器,可将对话、会话记录
+ 和插件页的 HTTP(S) 点击路由到系统浏览器。插件/设置页若目标是工作面板,
+ 会先回到对话再打开(不记入导航栈),避免被遮罩挡住;没有会话时才回退到
+ 系统浏览器。工作区 HTML 预览、BrowserPreview、OAuth 和问题反馈仍走原有目标。
+
+### 智能体行为(`behavior` 选项卡)
+
+新对话以什么设置开始,以及智能体运行时可以做什么。卡片顺序是
+**会话默认 → 执行 → 电脑操作**。
+
+- **会话默认**卡:主机支持的默认运行模式(Agent / Plan / Goal)、决定智能体
+ 自主程度的全局权限模式(询问/接受编辑/自动),以及命令 Shell 选择。三者同卡,
+ 因为它们是同一个问题的三种问法:一次运行从什么开始。权限控件是共享锚定菜单
+ 表面上的菜单选择器,而不是由平台绘制的 `<select>` 弹层,因此设置里的每个
+ 选择器都以相同方式展开。关闭时的触发器按当前文案收缩,不超过设置控件列。
+- **执行**卡:无尽重试开关与应用级**定时任务**开关。无尽重试默认关闭;开启后
+ 网络/临时提供商故障会持续重试到成功,但停止按钮仍可取消回合,开启期间可能
+ 持续消耗 API 用量。定时任务开关持久化为可选 `AppSettings.scheduledTasksEnabled`,
+ 缺失或为真时开启;关闭会隐藏底部时钟与全局搜索入口、离开已打开的路由、不再
+ 提供定时类 Agent 工具,并在宿主侧阻止新的手动/自动运行与任务编辑,已有任务的
+ 启用状态、排程与历史不变,进行中的运行可以跑完。
+- **电脑操作**卡:页面最后一张卡。它不渲染卡/行解释文案与静态范围提示;控件、
+ 平台与权限状态、错误和缺少模型的提示保持不变。
- 输入框文本操作由用户主动安装的插件提供;仅当插件已启用并获得
`composer.transform` 权限时才会显示。宿主不包含提示词增强设置卡,也不会默认安装独立的
`pi.prompt-enhancement` 插件。插件设置在「插件」页编辑;旧提示词增强偏好的单次迁移见
@@ -146,17 +198,20 @@
「全折叠显示」让命令留在所属组内,只有普通进度文字会拆分活动组。三者都只渲染一个
过程披露,只改变展示,并在渲染时读取,因此切换后立即重绘转录。已弃用的
`keepCommandsExpanded` 布尔值不再暴露,也不再参与渲染读取。设置搜索会索引该行。
-- **环形右键菜单**是常规页中侧边栏卡之后的一张卡,包含一个开关(**在对话空白处启用**)
+- **环形右键菜单**是**外观**页中侧边栏卡之后的一张卡,包含一个开关(**在对话空白处启用**)
和四个方向选择器(**上**、**右**、**下**、**左**)。`AppSettings.radialMenu.enabled`
缺失或为 false 时开关关闭,保留纵向的背景菜单。每个选择器保存一个
`RadialMenuAction`:复制整段对话、全选对话文本、复制最后一条回复、跳到顶部、
回到最新、打开内置浏览器、切换工作面板、打开项目文件夹,或**留空**。工作面板方向跟随面板状态:
收起时显示「打开工作面板」,打开时显示「关闭工作面板」。开关关闭时选择器禁用,但保留已存的方向,重新开启时继续使用。
设置搜索会索引该卡及其各行。
+- 以上**显示思考**、**过程显示**及其两个自动折叠子行都属于**对话 → 显示**卡;
+ 输入框文本操作属于**对话 → 输入与链接**。它们在此集中描述是为了把细则放在
+ 一处,不表示它们渲染在智能体行为页上。
- 语音绑定(`AppSettings.speech`)**不属于设置页面**(ADR 0291)。宿主仍保留语音能力与
`speech/*` IPC,供插件和已存绑定使用;这里不再提供转写/朗读的服务、协议、模型或音色
选择,设置搜索也不再索引语音相关键。
-- **默认项**卡中的**命令 Shell**行:主机发现的本机 PowerShell 5.1、PowerShell 7、
+- **会话默认**卡中的**命令 Shell**行:主机发现的本机 PowerShell 5.1、PowerShell 7、
cmd、Git Bash 和 ID 为 `windows-powershell`、`windows-pwsh`、`cmd`、`git-bash`
的 Bash 和
`bash`(如果支持)。选定的 `defaultCommandShell` 持续存在
@@ -164,7 +219,7 @@
选择稍后变得不可用,使用第一个可用的平台 shell
并显示回退状态。选定的 Shell 可用时,选择器就是唯一的配置状态提示;
只有默认、回退和没有实际可用 Shell 时才显示状态文案。Bash 回合验证其固定的
- ID/dialect 后再执行。该行渲染与权限卡和外观选择器相同的菜单选择器。
+ ID/dialect 后再执行。该行渲染与同卡权限模式和外观选择器相同的菜单选择器。
- 上下文管理**无卡且无控件**(D200 / ADR 0061,由
D203 / ADR 0064)。自动保护始终开启,其预算和
保留限制源自活动模型的窗口,因此有
@@ -397,9 +452,8 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
## 3. 导航规则
-- 配置文件页脚/命令面板打开设置整页(默认常规)
-- Composer 模型菜单和提供程序设置操作深层链接到提供程序
- Agent 内的卡
+- 配置文件页脚/命令面板打开设置整页(默认外观,即目录中的第一个目的地)
+- Composer 模型菜单和提供程序设置操作深层链接到模型页内的提供程序卡
- 插件管理仍然可以从独立的应用程序外壳中获得
**插件**目的地,包括加载、启用、禁用和卸载;是的
设置中不重复
@@ -414,22 +468,26 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
1.打开设置隐藏编码应用侧边栏(全页接管)
2. 导轨顶部显示搜索药丸,底部固定返回应用程序操作并与主侧边栏底部图标行同一条线,
- 并精确显示常规、AI、快捷键、指令、模型、技能、MCP、
- 子智能体、项目、云同步、远程主机和信息,按此顺序排列;云同步与远程主机
+ 并精确显示外观、对话、快捷键、语音、行为、模型、指令、技能、MCP、
+ 子智能体、项目、系统、云同步、远程主机和信息,按此顺序排列;云同步与远程主机
均在打包版中显示实验性标签,并按偏好、智能体、工作区、系统分组。
- 没有用量设置目的地。
-3.外观是常规的一部分,没有独立的导轨目的地
-4. Providers 是 Agent 的一部分,没有独立的导轨目的地
+ 没有用量设置目的地,也没有「常规」或「AI」目的地:这两个 id 解析到外观与行为,
+ 但不出现在导轨和搜索结果中。
+3.外观是独立目的地;它过去同页的网络、存储、电源与关闭行为卡现在在系统页
+4. Providers 是模型页的一部分,没有独立的导轨目的地
5. 插件没有设置目的地; app-shell 插件页面支持
加载、启用、禁用和卸载
-6. 常规仅显示主机支持的外观卡;人工智能
- 目的地显示权限和默认项(包括命令 Shell 行);快捷方式
+6. 外观显示主机支持的界面卡;对话显示「显示」与「输入与链接」;行为显示
+ 会话默认(含权限模式与命令 Shell 行)、执行与电脑操作;快捷键
目的地显示键盘快捷键卡;信息显示开发者卡。
不呈现其他设置目的地
7. 提供商机密从不显示原始密钥值
8.模型配置显示提供程序工作室(英雄+默认+添加对话框+卡片)而不是密集的始终在线表单转储
-9.行描述使用语义辅助文本并保持至少4.5:1
- 与浅色和深色主题的卡片表面形成对比
+9.行的解释不是常驻第二行:它作为字符串进入标题旁的问号,在悬停与键盘聚焦时
+ 显示,并在浅色和深色主题下与卡片表面保持至少 4.5:1 对比度。行的实时取值
+ (已固定的默认模型)属于数据而不是说明文字,始终可见。**卡**可以改为在标题
+ 下携带一行可见副标题(D684),因为那一行说明的是整组的用途而不是某个开关;
+ 需要第二句话的文案仍留在标题的问号后
10. 从“设置”两侧拖动空白顶部区域可移动本机
窗口,不会阻塞后退、搜索或导航控件
11. 调整窗口大小可扩展或收缩内容卡
@@ -475,8 +533,12 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
| 导轨宽度 | 〜275像素(`--ds-settings-nav-width`,由导轨与顶部带的内缩共用) |
| 导航背景 | 与主侧栏共享材质;浅色不透明回退为 `#f3f3f3`,macOS 使用原生毛玻璃 |
| 顶部带 | 仅内容窗格,按导轨宽度内缩;导轨保留自己的表面 |
-| 主动导航药丸 | 更密集的 6px/10px 焊盘,~8px 半径,轨道上的灰色混合 |
+| 选中导航药丸 | 7px/10px 内边距,`--radius-md`,在导轨选中底色上混入约 12% 强调色;该行字形取 `--ds-accent` |
+| 导轨分组标题 | 最小可读字号(`--text-xs-plus`)、semibold、`--tracking-wide`、大写 |
+| 页头 | 38px 强调色底片字形(`--radius-md-plus`)+ 14px 间距 + 标题块 |
| 章节标题 | 28px / 560,第一条基线 ~y70 |
+| 页面副标题 | `--text-md`、`--ds-text-secondary`,标题下一行 |
+| 卡片副标题 | `--text-sm-plus`、`--ds-text-secondary`,卡标题下一行 |
| 内容宽度 | 栏杆和天沟后的完整可用窗格宽度 |
| 卡半径 | ~14px 升高行程 |
| 切换 | **32×20** 拇指 16,中性重音(非绿色) |
diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.md
index 69203d8a0..7c5539e33 100644
--- a/docs/zh-CN/spec/04-ux/08-component-spec.md
+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md
@@ -2768,8 +2768,8 @@ Host 写入后仍保持禁用。
### 19.2 解剖学
1. **英雄摘要** — 踢球者、标题、简短描述、提供商计数/就绪计数/默认对的统计数据
-2. **默认卡** — 默认提供商/模型选择器;全局运行模式、命令 Shell
- 和回车发送位于设置的全局 AI 目的地
+2. **默认卡** — 默认提供商/模型选择器;全局运行模式和命令 Shell 位于设置的
+ 「行为」目的地,回车发送位于「对话」目的地
3. **提供商标题** — 部分标题 + 主要添加提供商切换
4. **Composer** — 包含连接字段的对话框(名称、基础 URL、模型 id、API 样式、API 键);没有推理、思维水平、上下文、输出、温度或兼容性控制
5. **提供商卡** — 头像缩写、徽章(默认/秘密状态)、主持人+模型、测试/设为默认/删除
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index e2158e488..8c437598a 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -1357,7 +1357,7 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备
14) 恢复存档的项目,然后激活它。
15) 归档一个项目会话,从项目归档中打开它,然后返回项目归档。
16) 返回应用程序外壳并打开插件。
-- **预期**:导轨按顺序包含常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、远程主机和信息,分别使用其语义 Lucide 图标;目的地按“偏好”(常规、AI、快捷键)、“智能体”(指令、模型、技能、MCP、子智能体)、“工作区”(项目)和“系统”(云同步、远程主机、信息)分组。组间使用留白而非分割线,搜索保持目的地结果扁平,并同时隐藏空分组及其标题。模型、技能和 MCP 页分别拥有内嵌的外部导入工作台;打开工作台不会扫描。设置没有会话导入面板,会话导入由插件 API 提供。外观保留在“常规”下,权限、默认项和命令 Shell 行位于全局 AI 下;可用的已选 Shell 由选择器表示,不重复显示“已配置”状态;默认、回退和无实际 Shell 状态仍明确展示;上下文管理没有设置卡;键盘快捷键和全局指令都有自己的目的地;“开发者”位于“信息”下;项目存档显示活动、关闭和存档的持久行,无需可见性切换,将它们分组在一个面板内始终可见的固定/所有项目/存档分组条 (D168/D267) 下,并带有每个部分的计数。该目的地不呈现英雄区块,也没有页面级计数器串:引导区是一条安静的说明行,每个分组条的计数与其呈现的行一致;按名称排序会重新排序每个部分内的行,而不隐藏任何行;搜索匹配项目字段和会话标题并报告匹配计数,会话标题结果扩展其所属项目,按最新活动和相对更新时间列出会话,并以八个批次显示历史记录;清除搜索将恢复完整索引。行菜单在 Escape 和外部按下时关闭。恢复使存档保持打开状态,激活返回以与侧栏中保留的恢复项目聊天。打开归档会话时,应用会先成功选择该会话,再清除它的归档状态;聊天页选中该会话,项目侧边栏重新显示它,返回项目归档后它也不再处于归档状态。主页侧边栏和全局页面结果没有独立的项目目标;设置搜索找到项目存档;插件仍然是一个独立的应用程序外壳目的地。
+- **预期**:导轨按顺序包含外观、对话、快捷键、语音、行为、模型、指令、技能、MCP、子智能体、项目、系统、云同步、远程主机和信息,分别使用其语义 Lucide 图标(Palette / MessageSquare / Keyboard / Mic / Sliders / Bot / FileText / BookOpen / Server / Sparkles / Archive / Monitor / CloudDownload / Globe / Info),没有两个目的地共用同一字形;目的地按“偏好”(外观、对话、快捷键、语音)、“智能体”(行为、模型、指令、技能、MCP、子智能体)、“工作区”(项目)和“系统”(系统、云同步、远程主机、信息)分组。组间使用留白而非分割线,搜索保持目的地结果扁平,并同时隐藏空分组及其标题。模型、技能和 MCP 页分别拥有内嵌的外部导入工作台;打开工作台不会扫描。设置没有会话导入面板,会话导入由插件 API 提供。选中行带强调色底片与强调色字形,内容区以同一字形在页面尺度开场。没有「常规」也没有「AI」目的地(D684):主题与字体归外观,转录与输入框归对话,网络/存储/电源归系统,权限模式、默认模式和命令 Shell 行归行为 → 会话默认;可用的已选 Shell 由选择器表示,不重复显示“已配置”状态;默认、回退和无实际 Shell 状态仍明确展示;上下文管理没有设置卡;键盘快捷键和全局指令都有自己的目的地;“开发者”位于“信息”下;项目存档显示活动、关闭和存档的持久行,无需可见性切换,将它们分组在一个面板内始终可见的固定/所有项目/存档分组条 (D168/D267) 下,并带有每个部分的计数。该目的地不呈现英雄区块,也没有页面级计数器串:引导区是一条安静的说明行,每个分组条的计数与其呈现的行一致;按名称排序会重新排序每个部分内的行,而不隐藏任何行;搜索匹配项目字段和会话标题并报告匹配计数,会话标题结果扩展其所属项目,按最新活动和相对更新时间列出会话,并以八个批次显示历史记录;清除搜索将恢复完整索引。行菜单在 Escape 和外部按下时关闭。恢复使存档保持打开状态,激活返回以与侧栏中保留的恢复项目聊天。打开归档会话时,应用会先成功选择该会话,再清除它的归档状态;聊天页选中该会话,项目侧边栏重新显示它,返回项目归档后它也不再处于归档状态。主页侧边栏和全局页面结果没有独立的项目目标;设置搜索找到项目存档;插件仍然是一个独立的应用程序外壳目的地。
打包构建会从导轨和设置搜索中省略云同步;见 `04-ux/06-settings-ia.md`。
- **链接规格**:`04-ux/06-settings-ia.md`、`04-ux/01-ui-ia.md`、`03-runtime/11-provider-model-system.md`
- **接受**:B(模型配置),F(项目存档与持久化)
@@ -1368,7 +1368,7 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备
- **先决条件**:应用程序在 macOS 上运行;测试工具可以切换英语、简体中文、繁体中文、土耳其语、德语、西班牙语、法语、韩语和巴西葡萄牙语系统区域设置。
- **步骤**:
- 1) 打开设置 → 常规。
+ 1) 打开设置 → 外观。
2) 打开外观卡中的主题选择器。确认系统、浅色、深色钉在顶部;选择深色并确认触发器显示「深色」,且 UI 切换为深色。
3) 选择浅色并确认 UI 切换为浅色。
4) 打开语言行的可搜索选择器。确认“跟随系统”钉在顶部并显示检测到的本地名称,且列表按本地名称列出 English、简体中文、繁體中文、Türkçe、Deutsch、Español、Français、한국어 和 Português (Brasil)。系统区域设置为简体中文时选择“跟随系统”会应用简体中文;系统区域设置为繁体中文时会应用繁体中文;系统区域设置为巴西葡萄牙语时会应用 pt-BR。
@@ -1380,12 +1380,12 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备
- **里程碑**:M4
- **状态**:部分自动化(`scripts/e2e-settings-scroll.mjs` 覆盖 pt-BR 选择和界面切换);完整多语言列表及 OS“跟随系统”矩阵仍为文档化验证。
-#### E2E-SETTINGS-ai-tab-pickers-use-in-app-menus:全局 AI 下拉使用应用内菜单
+#### E2E-SETTINGS-ai-tab-pickers-use-in-app-menus:行为页下拉使用应用内菜单
- **先决条件**:应用正在运行,主机至少报告一个已配置的命令 Shell,以及至少一个在当前平台不可用的目录内 Shell。
- **步骤**:
- 1) 打开设置 → 常规,展开主题和语言选择器,记下药丸触发器与展开后的表面。
- 2) 打开全局 AI。
+ 1) 打开设置 → 外观,展开主题和语言选择器,记下药丸触发器与展开后的表面。
+ 2) 打开「行为」。
3) 展开权限卡的权限模式控件,依次选择询问、接受编辑、自动。
4) 展开默认项卡的命令 Shell 控件;查看不可用条目并选择一个可用的 Shell。
5) 先用 Escape、再用外部点击分别关闭打开的菜单。
@@ -1713,7 +1713,7 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备
#### E2E-024J:插件主题适用并在撤回时回退
- **先决条件**:可从市场或 `.piplug` 包安装的 `examples/plugins/hello` 变体(`demo.hello`),其 `midnight` 主题 CSS 引用已声明的包内相对图片 `art/preview.png`;CSS 使用 `@import` 或远程 `url()` 的拒绝用插件及仅在注释中出现这些关键字的变体;另有声明图片资源和 `windowAppearance` 背景、分别带/不带 `ui.window.appearance` 权限的主题变体。
-- **步骤**:1) 从市场安装 Hello 包变体或导入其 `.piplug` 包,在设置 → 常规 → 主题中选择 `Hello Midnight`。2) 重启应用。3) 禁用提供主题的插件。4) 重新启用后卸载。5) 加载不安全 CSS 插件。6) 加载仅在注释中提到关键字的变体。7) 在 Windows/Linux 与 macOS 上选中资源变体主题,验证包内相对图片通过 `plugin-asset:` 在外壳和插件面板中渲染,并加载引用未声明相对资源的样式表以验证其被拒绝。8) 去掉 `ui.window.appearance` 后取消选中该主题。
+- **步骤**:1) 从市场安装 Hello 包变体或导入其 `.piplug` 包,在设置 → 外观 → 主题中选择 `Hello Midnight`。2) 重启应用。3) 禁用提供主题的插件。4) 重新启用后卸载。5) 加载不安全 CSS 插件。6) 加载仅在注释中提到关键字的变体。7) 在 Windows/Linux 与 macOS 上选中资源变体主题,验证包内相对图片通过 `plugin-asset:` 在外壳和插件面板中渲染,并加载引用未声明相对资源的样式表以验证其被拒绝。8) 去掉 `ui.window.appearance` 后取消选中该主题。
- **预期**:带包内相对图片的插件包成功安装,图片在插件根目录内解析;插件主题出现在选择器中并立即应用,图片通过 `plugin-asset:` 提供;选择在重启后仍保留为 `plugin:demo.hello:midnight`;禁用或卸载提供程序会退回到 `system` 而不是无样式的 shell;不安全 CSS 在加载时被拒绝并记录原因,且不注入 `<style>` 元素;仅在注释中提到关键字的样式表正常加载并提供主题,因为消毒器只检查浏览器实际生效的 CSS;声明的资源在宿主外壳与插件自己的面板中都经 `plugin-asset:` 渲染,未声明引用被拒绝并记录原因,声明的背景在 Windows/Linux 上给原生窗口着色、在 macOS 上不下发;取消选中主题或收回权限后窗口回到宿主背景;整个外壳都跟随主题,包括工作面板列、标题栏以及浏览器/文件查看器条目栏,其表面色读取 `--ds-bg-dock` / `--ds-bg-dock-raised` 而不是字面量。
- **链接规格**:`07-plugins/02-plugin-manifest-schema.md`、`07-plugins/04-plugin-security.md` §3.1、`04-ux/07-ui-design-system.md`、D175
- **接受**:G(主题贡献)+安全
@@ -2778,7 +2778,7 @@ MainChat 弥补了缺口。 Maximized/fullscreen 调用保留最新的
#### E2E-CHAT-radial-background-menu:对话空白处的环形菜单
-- **前提条件**:设置 → 常规 → 环形右键菜单可用;会话中有一条已完成的用户提示、一条已完成的助手回答,且历史足以滚动。
+- **前提条件**:设置 → 外观 → 环形右键菜单可用;会话中有一条已完成的用户提示、一条已完成的助手回答,且历史足以滚动。
- **步骤**:1)关闭开关,右键最后一回合下方的空白处,确认弹出纵向对话菜单。2)打开开关,右键同一位置,检查四个扇区及其静止时显示的图标与动作名。3)让指针经过各扇区,点击复制整段对话;重新打开后,在某扇区上按下右键并原地松开,确认动作执行。4)把「上」设为复制最后一条回复、「右」设为留空,重新打开环形菜单。5)不移动指针直接点击中心圆;再重新打开后依次按 Escape、点击外部、滚动、调整窗口尺寸;再次打开后在扇区上按下右键、移到中心圆松开,确认不执行任何动作。6)用 Shift+F10 打开,用方向键遍历扇区,按 Enter 执行一项。7)重启应用,确认开关和四个方向都保留;再把某个方向的未知动作写入设置文件,确认该方向回退到默认值。
- **预期**:开关关闭时纵向菜单原样打开。开关开启后,以指针为圆心的四扇区环形菜单取代它,靠近窗口边缘时仍完整可见。每个扇区在悬停前就显示该动作的图标与名称;指针所在扇区以整块填充高亮,不出现聚焦方框;点击后执行该动作、关闭菜单,复制类动作照常弹出提示。菜单打开时按下右键,在哪个扇区松开就执行哪个动作;在中心圆上松开只关闭、不执行动作,打开菜单那次右键尾随的松开不触发任何动作。「留空」方向渲染为禁用扇区且不执行任何动作;尚无回答文本时复制最后一条回复为禁用。打开浏览器会让工作面板显示一个空白浏览器标签页;工作面板方向是切换:面板收起时显示「打开工作面板」,打开后改为「关闭工作面板」,再点一次收起;打开项目文件夹会在系统文件管理器中打开会话所属项目,没有项目路径的会话为禁用。点击中心圆、外部按下、Escape、Tab、滚动和窗口尺寸变化都只关闭菜单。方向键移动高亮,Enter 执行当前动作。开关和四个方向在重启后保留,存储中的未知动作回退到该方向的默认值。消息行、链接、文件引用、侧边栏和工作面板仍使用各自的纵向菜单。
- **关联规范**:`04-ux/09-interaction-patterns.md` §1.11、`04-ux/06-settings-ia.md`
@@ -3555,7 +3555,7 @@ PI-Desktop 图标;两个表面都不会暴露库存 Electron 名称或图标
- **先决条件**:PI-Desktop 在 Windows 上运行,有光和暗
可用的主题。
-- **步骤**:1)在浅色主题中,打开仍存在的本机选择(计划任务表单),并确认设置里的常规、全局 AI 和技能导入模式选择器都是应用内菜单而不是平台 `<select>`。2)以深色主题重复剩余本机列表。3)切换主题后无需重启即可再次打开每个列表。
+- **步骤**:1)在浅色主题中,打开仍存在的本机选择(计划任务表单),并确认设置里的外观、行为和技能导入模式选择器都是应用内菜单而不是平台 `<select>`。2)以深色主题重复剩余本机列表。3)切换主题后无需重启即可再次打开每个列表。
- **预期**:设置里的紧凑选择器使用共享锚定菜单。每个仍存在的关闭本机触发器和打开的本机选项列表都使用活动主题的可读 foreground/background 配对。没有黑暗主题列表退回到带有浅色文本的浅色 Windows 表面,没有浅色主题列表使用深色主题墨水,更改主题会更新后续打开。同样的结果适用于设置之外的本机选择。
- **链接规格**:`04-ux/06-settings-ia.md`,
`04-ux/07-ui-design-system.md`
@@ -3704,7 +3704,7 @@ IPC 请求无法关闭。
- macOS 上启动页与侧边栏使用同一套玻璃 tint/sheen,叠在原生 `sidebar` vibrancy 之上;已挂载的 shell 在退出淡出前保持隐藏,再交叉淡入。其他平台仍为不透明的 `--ds-bg-primary`。
- `<dataDir>/startup/` 中有视频时(D679):首个绘制帧里 `data-testid="startup-animation"` 取代启动画面,在不透明黑底上播放,无控件无声音,播完后同一层黑色继续遮住窗口直到引导完成,然后在约一秒内淡出,淡出期间主界面已可点击。启动比视频慢时,黑幕满 3 秒后出现不确定进度条。`Escape` 直接跳到该淡出。
- 不可播放的文件绝不会劫持启动:动画在 2 秒内(无首帧)或 `error` 时结束,渐显与正常播完完全一致。
- - 减少运动、渲染器重载,以及从托盘或 Dock 重新打开的窗口都不播放动画,改用品牌启动画面。设置 → 常规 → 外观 会显示选中的文件、提供打开文件夹的动作,开关改动只在下次启动生效。
+ - 减少运动、渲染器重载,以及从托盘或 Dock 重新打开的窗口都不播放动画,改用品牌启动画面。设置 → 外观 → 界面 会显示选中的文件、提供打开文件夹的动作,开关改动只在下次启动生效。
- 启动被搁置超过看门狗边界时,恢复界面取代动画——绝不会被留在不透明遮罩后面。
- 没有简单的无品牌“开始...”居中文本作为唯一的启动 UI。
- Overlay/dialog 输入动作使用共享令牌;减少的运动可以保持状态变化,而无需装饰持续时间。
@@ -3805,7 +3805,7 @@ IPC 请求无法关闭。
- **前提条件**:应用程序运行;语言可以在英语和中文之间切换。
- **步骤**:
1. 检查空首页提示、侧边栏临时聊天部分和 status/connection toast。
- 2. 打开设置 → AI 提供商和市场刷新操作。
+ 2. 打开设置 → 模型和市场刷新操作。
3. 将应用程序语言切换为中文并重新检查相同的界面。
- **预期**:
- 文案以简单的产品语言(AI 提供商、项目、市场、connected/limited)而非 host/backend/repo 行话解释结果。
@@ -5513,7 +5513,7 @@ eleven-tool-round desktop paths are verified by
- **先决条件**:应用运行在项目 Agent 会话中,并提供主页输入框。先使用默认阈值,再将大段粘贴阈值改为确定的较小测试值。记录应用数据目录、会话 ID 以及包含多行 Unicode 文本的固定输入。
- **步骤**:
- 1. 打开设置 → AI → 默认项,确认大段文本粘贴阈值为 600;将其改为测试值并保存,然后返回输入框。
+ 1. 打开设置 → 对话 → 输入与链接,确认大段文本粘贴阈值为 600;将其改为测试值并保存,然后返回输入框。
2. 粘贴刚好达到阈值的文本,确认仍使用原生文本区域;在草稿开头、中间和末尾粘贴多一个字符的文本,包括多行和 Unicode 内容。
3. 检查每次超阈值粘贴:确认前后文本保持不变,原始选择处出现生成的 `pasted-text-*.txt` 芯片,编辑器没有临时文件绝对路径,传输期间显示正确的忙碌/错误状态。
4. 点击生成的 TXT 芯片,再用键盘聚焦并按 Enter、Space 重复测试。确认准确的 UTF-8 内容在原位置替换芯片,文本可以继续编辑,插入符号位于内容末尾,随后发送使用修改后的文本。读取等待期间切换草稿或删除芯片,确认过期响应不会修改当前草稿。
@@ -6329,8 +6329,7 @@ eleven-tool-round desktop paths are verified by
### US-UI-24 设置全页 shell
- 打开设置(页脚配置文件 → 设置)。
-- 预计**全页**设置(无应用程序 sidebar/nav)。左导轨有返回应用、搜索,以及常规、AI、
- 快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、远程主机、信息,
+- 预计**全页**设置(无应用程序 sidebar/nav)。左导轨有返回应用、搜索,以及外观、对话、快捷键、语音、行为、模型、指令、技能、MCP、子智能体、项目、系统、云同步、远程主机、信息,
按该顺序排列(云同步和远程主机在打包版均显示实验性标签);内容窗格显示所选设置页或
项目存档。
- 返回应用程序外壳并期望插件保持独立
@@ -6434,13 +6433,12 @@ eleven-tool-round desktop paths are verified by
### US-UI-44 设置紧凑目录+合并部分
- 打开设置灯光主题~1200×690。
- 全页外壳:`#f3f3f3` 上的轨道 ~260px,主 `#fff`;搜索药丸位于导轨顶部;返回应用程序
- 固定在导轨底部,并与主外壳侧边栏底部图标行垂直居中于同一条线;带有图标的常规
- 活动药丸。
-- 导轨顺序为常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、
- 远程主机和信息;下方显示偏好、智能体、工作区和系统四个柔和标题,组间没有
+ 固定在导轨底部,并与主外壳侧边栏底部图标行垂直居中于同一条线;选中的「外观」
+ 行带强调色底片与强调色字形。
+- 导轨顺序为外观、对话、快捷键、语音、行为、模型、指令、技能、MCP、子智能体、项目、系统、云同步、远程主机、信息;下方显示偏好、智能体、工作区和系统四个柔和标题,组间没有
分割线、重复目的地或占位符行。选中页面仍保留描述性标题,例如“模型配置”
- 和“项目归档”。
-- 常规内容:大标题和一张带有工作信息的**外观**卡
+ 和“项目归档”,并以导轨字形在页面尺度开场,必要时带一行副标题。
+- 外观内容:页头和一张可用的**界面**卡
system/light/dark 控件。全局AI持有权限、默认项和命令 Shell 行;
上下文管理没有设置卡。快捷键包含键盘快捷键卡。
文件打开目标、语言
@@ -6513,16 +6511,16 @@ eleven-tool-round desktop paths are verified by
独立的新任务行。
### US-UI-52 设置外观指标 (D070)
-- 在约 1200×690 的窗口中打开浅色主题的“设置 → 常规”。
-- 侧栏宽度约 275 像素,背景为 `#f4f4f4`,常规项为唯一选中项,并显示返回和搜索。
+- 在约 1200×690 的窗口中打开浅色主题的“设置 → 外观”。
+- 侧栏宽度约 275 像素,背景为 `#f4f4f4`,「外观」为唯一选中项,并显示返回和搜索。
- 主题选择器可正常使用,且没有无效开关或打开目标行。
-- “常规”页显示外观卡片,“AI”页显示权限和默认值卡片。核心侧栏依次包含常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、远程主机和信息;云同步与远程主机在所有构建中都显示实验性标签。开发版且开启开发者模式时,AI 与快捷键之间可能显示语音;插件扩展目的地位于核心分组之后。侧栏不再有“导入”入口。
+- “外观”页显示界面卡片,“行为”页显示会话默认、执行与电脑操作卡,“对话”页显示「显示」与「输入与链接」,“系统”页显示网络、存储、电源(Windows/Linux 另有关闭行为)。核心侧栏依次包含外观、对话、快捷键、语音、行为、模型、指令、技能、MCP、子智能体、项目、系统、云同步、远程主机、信息;云同步与远程主机在所有构建中都显示实验性标签,语音在所有构建中都可见;插件扩展目的地位于核心分组之后。侧栏不再有“导入”入口。
- 在 800、1200 和 1600 像素宽度之间调整窗口;内容卡片填充
每种尺寸都可用右窗格,无需更换导轨或引入
水平滚动。
### US-UI-53 设置暗壳 (D070)
-- 深色主题设置常规页:黑色侧栏、卡片层级、蓝色开启状态,返回操作回到聊天。
+- 深色主题设置外观页:黑色侧栏、卡片层级、蓝色开启状态,返回操作回到聊天。
- 行描述使用主题感知辅助文本并保持清晰可读
`#212121` 卡面;它们不能退回到低对比度的柔和墨水。
@@ -6986,7 +6984,7 @@ eleven-tool-round desktop paths are verified by
- **前置条件**:应用在 macOS 上运行,系统装有与内置令牌栈不同的字体
(例如 PingFang SC);使用干净的 `~/.pi-desktop` 配置。
- **步骤**:
- 1) 打开设置 → 常规,确认外观卡片在主题与语言下方显示一个字体行,
+ 1) 打开设置 → 外观,确认界面卡片在主题与语言下方显示一个字体行,
触发器标签为「跟随系统」。
2) 打开字体选择器,确认只列出跟随系统与系统已安装字体——
没有内置开源字体,任何一行都没有许可证角标;
@@ -7019,7 +7017,7 @@ eleven-tool-round desktop paths are verified by
- **前置条件**:干净的 `~/.pi-desktop` 配置,并有一条能看到会话内容、输入框和侧栏的对话。
- **步骤**:
- 1) 打开设置 → 常规,确认外观卡片在字体行下方显示字体大小,「大杯」选中,滑杆为 100%。
+ 1) 打开设置 → 外观,确认界面卡片在字体行下方显示字体大小,「大杯」选中,滑杆为 100%。
2) 选择「超大杯」。确认会话、输入框、设置标签、侧栏会话标题和 Lucide 图标无需重载即按相对阶一起变大,控件显示 115%。
3) 把滑杆拖到 125%。确认「超超大杯」被选中,全部 `--text-*` 表面和图标继续变大。确认界面没有 px 输入。
4) 打开「浏览器」和「文件浏览器」两个工作面板标签,再使用放大与重置缩放。确认窗口缩放仍会放大 chrome、重置后文字比例仍为 125%,且两个停靠插件页跟随该比例:文字与控件和应用的相对大小一致,浏览器访客页仍铺满按新字号绘制的工具栏下方区域。
@@ -7783,7 +7781,7 @@ eleven-tool-round desktop paths are verified by
- **前提条件**:可访问的本地 HTTP 或 SOCKS5 代理,或用于失败路径的无效端口;另有一个可通过该代理访问的已配置供应商/模型,用于模型请求步骤。
- **步骤**:
- 1. 打开设置 → 常规。确认网络卡提供系统 / 直连 / 自定义。从未配置过代理的配置文件默认是系统。
+ 1. 打开设置 → 系统。确认网络卡提供系统 / 直连 / 自定义。从未配置过代理的配置文件默认是系统。
2. 选择自定义。确认代理 URL、默认绕过列表和测试。输入 `not-a-proxy` 并失焦。确认内联错误且未保存。
3. 输入 `socks5://127.0.0.1:1080` 或 `http://127.0.0.1:7890` 后,立即选择“系统”,中间不要点击其他位置。确认 `settings.get` 中 `mode` 为 `system`,且 URL 与绕过列表仍保留。再选回“自定义”,确认两个值恢复到输入框,且 `mode` 为 `custom`。
4. 对正在监听的代理点测试,确认已连接;对关闭的端口点测试,确认失败且不改已保存 URL。对需要认证的 HTTP / SOCKS5 代理填入 `user:pass@` 后再测,确认是已连接而不是 `net::ERR_NO_SUPPORTED_PROXIES`(issue #490)。
@@ -8503,10 +8501,10 @@ runner 会在运行时的隔离临时目录中生成六个插件形态 fixture
#### E2E-250:上下文用量显示偏好切换检查器引导数值
-- **前提条件**:一个 Agent 会话已完成至少一个报告了令牌用量的回合。可打开设置 → 全局 AI → 默认项。
+- **前提条件**:一个 Agent 会话已完成至少一个报告了令牌用量的回合。可打开设置 → 对话 → 显示。
- **步骤**:
1. 确认输入框工具栏上下文环显示剩余容量(环近乎满圆,百分比 ≈ 剩余 %,tooltip 与 aria-label 使用剩余词汇)。
- 2. 打开设置 → 全局 AI → 默认项,将上下文用量显示分段控件从「剩余」切到「已用」。
+ 2. 打开设置 → 对话 → 显示,将上下文用量显示分段控件从「剩余」切到「已用」。
3. 回到聊天,检查上下文环:圆弧按 `usedRatio` 填充(低占用时近乎空环),百分比显示 ≈ 已用 %,弹层标题显示已用令牌 + 百分比,tooltip/aria-label 使用已用容量词汇。
4. 确认警告/临界颜色仍按剩余容量判定:剩余 > 25 % 时环保持中性色,即使已用 % 较高。
5. 切回「剩余」,确认恢复原始显示。
@@ -9715,13 +9713,13 @@ Follow the [current S3 acceptance scenario](/spec/06-delivery/04-e2e-test-plan#e
### E2E-SETTINGS-destination-scroll-reset
-- 打开设置 → AI,滚动到中间,再选择快捷键:标题和首项从顶部显示。滚动后
- 返回 AI,该页也从顶部显示。
+- 打开设置 → 对话,滚动到中间,再选择快捷键:标题和首项从顶部显示。滚动后
+ 返回对话,该页也从顶部显示。
- 再次选择当前分类,或不离开当前页更新设置,保留内容区滚动位置。
- 覆盖内置分类 → 插件、插件 → 插件、插件 → 先前选择的内置分类;再次
选择当前插件分类时保留位置。
-- 从其他分类、当前打开的插件分类,以及 AI 当前页通过全局搜索设置锚点进入
- AI:插件页关闭,目标项在下一次绘制前可见,消费锚点后保持定位。没有锚点的
+- 从其他分类、当前打开的插件分类,以及对话当前页通过全局搜索设置锚点进入
+ 对话:插件页关闭,目标项在下一次绘制前可见,消费锚点后保持定位。没有锚点的
外部切页也会离开插件,并从顶部开始。
- 在明暗两种主题下运行。
- 自动化覆盖:`pnpm test:e2e:settings-scroll` 在隔离 Electron 中挂载真实的
@@ -9732,6 +9730,42 @@ Follow the [current S3 acceptance scenario](/spec/06-delivery/04-e2e-test-plan#e
不覆盖 host 持久化或
完整全局搜索弹窗。
+### E2E-SETTINGS-one-destination-one-subject
+
+- **场景**:D684 的目录拆分。每一项设置都能从负责它那个主题的目的地找到,且不会
+ 出现在两个目的地里。
+- **步骤**:
+ 1. 打开设置。导轨按四个带标题的分组列出外观、对话、快捷键、语音、行为、模型、
+ 指令、技能、MCP、子智能体、项目、系统、云同步、远程主机、信息。
+ 2. 进入外观:界面(主题、语言、字体、字号,macOS 另有毛玻璃)、侧边栏及其两个
+ 缩进子开关、轮盘右键菜单、启动。没有网络、存储、电源或关闭行为卡。
+ 3. 进入对话:显示(显示思考 + 子行、过程显示 + 子行、上下文用量、平滑流式、
+ 内联可视化)在一行可见副标题之下,该副标题说明这里只改变呈现;然后是输入与
+ 链接(回车发送、粘贴阈值、链接打开目标)。
+ 4. 进入行为:会话默认(默认模式、权限模式、命令 Shell)、执行(无尽重试、定时
+ 任务)、电脑操作在最后。
+ 5. 进入系统:网络、存储、电源,以及 Windows/Linux 上的关闭行为。
+ 6. 在导轨搜索 `theme`、`主题`、`proxy`、`scheduled`、`paste`、`permission`。
+ 每个查询只命中真正渲染该行的目的地,点击命中后滚动到该行并闪烁提示。
+ 7. 在这四页各改一项设置,关闭设置再打开,读回取值。
+- **预期**:没有设置同时出现在两个目的地,也没有设置无处可去。每页以导轨字形的
+ 页面尺度版本、标题和一行副标题开场;能力页、模型页和项目页改为显示自己的描述、
+ 不带副标题。行的解释仍只在它的问号之后,唯一常驻的说明文案是卡的副标题。
+ 迁移不改变持久化取值——拆分之前写入的配置读回来完全一致。
+- **自动化**:`settings-general.test.mjs` 钉住目的地索引、各页归属与语言包键;
+ `pnpm test:e2e:settings-scroll` 在 Electron 中检验导轨、搜索锚点与各目的地滚动。
+
+### E2E-SETTINGS-retired-destination-ids-resolve
+
+- **场景**:拆分之前写下的目的地 id 仍能打开页面。
+- **步骤**:让配置或深链选中 `general` 后打开设置;再用 `ai` 重复。随后触发原生
+ 设置菜单项与命令面板的设置入口。
+- **预期**:`general` 打开外观,`ai` 打开行为;两个 id 都不出现在导轨和设置搜索中。
+ 未知 id 打开外观。内容区绝不空白。
+- **自动化**:`settings-general.test.mjs` 断言解析表,
+ `settings-developer-only-destinations.test.mjs` 断言隐藏目的地的回落使用索引的
+ 默认目的地而不是写死的 id。
+
### E2E-SCHEDULED-dispatch
- **场景**:独立分发到期任务。
@@ -10058,12 +10092,12 @@ host-created files. The full app's file-preview viewer is covered separately.
### E2E-266:项目折叠时标题显示运行活动
-- **前提条件**:至少两个带会话的本地项目组,其中一个有运行中的回合(也可另有等待权限的会话);另有一个已连接且存在运行会话的远程主机项目组。设置 → 常规 → 侧边栏使用默认值。
+- **前提条件**:至少两个带会话的本地项目组,其中一个有运行中的回合(也可另有等待权限的会话);另有一个已连接且存在运行会话的远程主机项目组。设置 → 外观 → 侧边栏使用默认值。
- **步骤**:
1. 在一个项目中启动回合并折叠该项目组。
2. 检查折叠标题,再展开项目组。
3. 在另一个项目中启动并行回合,并在远程主机项目中启动回合。
- 4. 打开设置 → 常规 → 侧边栏,关闭“在项目上显示运行状态”,再检查侧边栏。
+ 4. 打开设置 → 外观 → 侧边栏,关闭“在项目上显示运行状态”,再检查侧边栏。
5. 重新开启总开关,并开启“活动流光”。
6. 只关闭“数量徽标”并检查效果,然后重新开启徽标。
7. 只关闭“活动流光”并检查效果,然后重新开启活动流光。
diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.md
index 6f16854ad..571af45a5 100644
--- a/docs/zh-CN/spec/08-meta/decisions-log.md
+++ b/docs/zh-CN/spec/08-meta/decisions-log.md
@@ -460,6 +460,7 @@
|---|---|---|---|
| D143 | 设置目录导轨图标 | **五个设置目标使用固定 Lucide 字形:基础 = `SlidersHorizontal`、模型配置 = `Bot`、导入 = `Download`、项目存档 = `Archive`、信息 = `Info`。此导轨上未使用 Refresh/rotate 字形。** | 先前的映射重用了 Settings/RefreshCcw/RotateCw,它读取为通用 gear/reload 而不是目标语义;单色 Lucide 保持紧凑目录可扫描。 |
| D166 | 设置目录分为 AI 和快捷方式目的地 | **设置栏按顺序从五个增加到七个目的地:基础知识 (`SlidersHorizontal`)、全局 AI/AI(`Sparkles`,新)、快捷方式(`Keyboard`,新)、模型配置 (`Bot`)、导入 (`Download`)、项目存档 (`Archive`)、信息(`Info`)。权限和上下文管理从基础转向新的人工智能目标;键盘快捷键从“基础”移动到新的“快捷键”目的地;开发人员从基础转向信息。基础仅保留外观和默认值。这取代了 D133 的五个目标 count/order 和 D143 的五个图标集(添加 `Sparkles` 和 `Keyboard`),而不更改任何设置的语义、全页 shell 或轨道指标。** | 基础知识积累了六张不相关的卡片,将全局人工智能行为(权限模式、上下文压缩)和快捷方式配置与外观和感觉一起埋葬;拆分它们为每个关注点提供了一个可扫描的主页,同时在模型配置中保持 provider/connection 配置独立。 |
+| D684 | 一个设置目的地只负责一个主题 | **修订 D143 / D166 / D678,另见 ADR 0345:设置目录为十五个目的地,顺序为——外观(`Palette`)、对话(`MessageSquare`)、快捷键(`Keyboard`)、语音(`Mic`)、行为(`SlidersHorizontal`)、模型(`Bot`)、指令(`FileText`)、技能(`BookOpen`)、MCP(`Server`)、子智能体(`Sparkles`)、项目(`Archive`)、系统(`Monitor`)、云同步(`CloudDownload`)、远程主机(`Globe`)、信息(`Info`)——仍归入原有四个分组。`general` 与 `ai` 退役:常规页的观感类行成为外观(界面 / 侧边栏 / 轮盘右键菜单 / 启动),机器类行成为系统(网络 / 存储 / 电源 / 关闭行为);AI 页的「默认项」杂物卡拆成对话(显示 / 输入与链接)与行为(会话默认 / 执行 / 电脑操作)。两个退役 id 仍解析到各自的后继目的地,且不出现在导轨与搜索中。卡可携带一行可见副标题,目的地可携带一行副标题;每页在强调色底片上以页面尺度重复其导轨字形,选中的导轨行取强调色底片与强调色字形。不改动任何持久化字段、IPC、宿主协议或存储模式——只改变哪一页渲染哪一行。见 E2E-SETTINGS-one-destination-one-subject 与 E2E-SETTINGS-retired-destination-ids-resolve。** | 有两个目的地已经不再是主题,而变成了落脚处:常规把主题与字体和代理、磁盘维护、休眠阻止器、关闭按钮混在一起,AI 页的「默认项」卡长到十三行,横跨转录呈现、输入框输入与运行行为。用户无法预判某项设置在哪一页,而由于每行解释都藏在问号后,唯一的找法就是把整页逐行悬停一遍。重排卡片无法修复一页同时负责两个主题的问题。 |
## R. 未来的决策规则
@@ -5836,3 +5837,39 @@ Markdown 源码,不是 `text/html` 负载;对禁用行内 HTML 的外部编
与 `a_window_that_cannot_be_read_does_not_become_the_bound_one`;对应逻辑本身是平台
代码,只有真机探针覆盖。这次跑到与没跑到的部分见
`docs/implementation/computer-use-evidence.md`。
+
+## 2026-11-05 — 一个设置目的地只负责一个主题(D684)
+
+- 有两个设置目的地已经不再是「主题」,而变成了「落脚处」。常规页把主题、语言、
+ 字体和出站代理、应用数据目录、休眠阻止器、窗口关闭按钮摆在一起;AI 页的
+ **默认项**卡长到十三行:默认运行模式和命令 Shell 夹在过程显示模式、思考开关、
+ 上下文环的引导数值、回车发送和粘贴阈值中间。那是三个主题——界面长什么样、
+ 转录怎么读、一次运行做什么——被塞进两页。
+- 现在的规则是一个目的地一个主题,拆分按这条规则做而不是重排卡片:**外观**
+ (界面、侧边栏、轮盘右键菜单、启动)、**对话**(显示、输入与链接)、**行为**
+ (会话默认、执行、电脑操作)、**系统**(网络、存储、电源,以及 Windows/Linux 上
+ 的关闭行为)。共十五个目的地,仍归入原有四个分组;子智能体接手已退役的 AI
+ 目的地释放出的 `Sparkles` 字形,因此没有两行共用同一图标。
+- 权限模式不再单独占一张卡,而是与默认运行模式、命令 Shell 同在**会话默认**里。
+ 三者是同一个问题的三种问法——新对话从什么开始——而一页由多张单行卡堆成,正是
+ 这次要消除的观感。
+- 设置本身没有任何变化:没有持久化字段、IPC 消息、宿主协议或存储模式的改动。
+ 拆分之前写入的配置读回来完全一致,变的只是渲染每一行的页面。`general` 与 `ai`
+ 通过 `resolveSettingsTab` 解析到外观与行为,因此已保存的选择、原生菜单项、
+ 截图场景或更早的深链都不会打开空白面板,而这两个 id 也不出现在导轨和设置搜索里。
+- 另外新增两条呈现规则,因为单靠 IA 还不足以让一页可读。目的地可以声明**一行
+ 副标题**,卡可以在标题下携带**一行可见副标题**——这是 D601 把行解释收进问号
+ 之后第一处常驻的说明文案。区别在作用范围:卡的副标题说明整组的用途,行的解释
+ 仍归它自己的问号,需要第二句话的文案也留在问号后。能力页、模型页和项目页本来
+ 就以自己的描述开场、不声明副标题,所以同一页不会把用途说两遍。
+- 页头现在在强调色底片上以页面尺度重复导轨字形,选中的导轨行取强调色底片与
+ 强调色字形。四个分组十五行的情况下,「我在哪」必须一眼看出;这两处都是色调
+ 而不是描边,因此仍符合 D297 的在流表面规则。
+- 指向已不存在目的地的文案在九个语言包里一并修正:代理与网络策略提示现在写
+ 「设置 → 系统 → 网络」。相关规格同步更新(`04-ux/06-settings-ia.md`、
+ `00-baseline.md` §40、`04-ux/01-ui-ia.md`、`04-ux/08-component-spec.md`、
+ `03-runtime/04-data-storage.md`、`03-runtime/computer-use.md`)。更早的决策条目
+ 保留原文:它们记录的是当时的决定。
+- 渲染层的外壳现在是一个路由器。每个目的地都是 `features/settings/pages/` 下的
+ 一个模块,这样 `SettingsPage.tsx` 不会再长出第五个主题,同时设置源码契约不受
+ 影响——它读取门面加上 `features/settings` 下的全部文件。
diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.ts
index 2ea412419..cadb0f5b7 100644
--- a/packages/i18n/src/locales/de/index.ts
+++ b/packages/i18n/src/locales/de/index.ts
@@ -963,7 +963,7 @@ sklm: {
remoteError: "Katalogquelle nicht erreichbar – integrierte Auswahl wird angezeigt",
previewError: "Das Dokument dieser Skill konnte nicht geladen werden – nichts wurde installiert.",
previewPolicyError: "Die Adressprüfung der App hat dieses Dokument blockiert – nichts wurde installiert.",
- proxyHint: "Diese Prüfung löst den Host lokal auf, der Download selbst würde über Ihren Proxy laufen. Bei Proxy oder VPN: Einstellungen → Allgemein → Netzwerk prüfen.",
+ proxyHint: "Diese Prüfung löst den Host lokal auf, der Download selbst würde über Ihren Proxy laufen. Bei Proxy oder VPN: Einstellungen → System → Netzwerk prüfen.",
failureDetail: "Details: ",
retryPreview: "Erneut versuchen",
retryCatalog: "Erneut versuchen",
@@ -973,16 +973,16 @@ sklm: {
previewResolveError:
"Die Adressprüfung der App konnte diesen Host nicht auflösen – es wurde nichts installiert.",
dnsHint:
- "Diese Prüfung löst den Host lokal auf, der Download selbst würde jedoch über deinen Proxy laufen. Wenn du einen Proxy, ein VPN oder ein eigenes DNS-Setup verwendest, prüfe Einstellungen → Allgemein → Netzwerk.",
+ "Diese Prüfung löst den Host lokal auf, der Download selbst würde jedoch über deinen Proxy laufen. Wenn du einen Proxy, ein VPN oder ein eigenes DNS-Setup verwendest, prüfe Einstellungen → System → Netzwerk.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"Dein Proxy hat die Katalogquellen mit fake-IP-Adressen beantwortet – integrierte Auswahl wird angezeigt",
previewFakeIpError:
"Dein Proxy hat diesen Host auf eine fake-IP-Adresse aufgelöst, daher hat die Adressprüfung der App abgelehnt – es wurde nichts installiert.",
fakeIpHint:
- "Dein Proxy hat {{host}} mit {{address}} beantwortet – einem reservierten Benchmark-Bereich, den Proxys als fake-IP-Platzhalter verwenden, nicht der echten Adresse der Quelle. Stelle den Proxy auf Systemproxy-Modus um oder prüfe Einstellungen → Allgemein → Netzwerk.",
+ "Dein Proxy hat {{host}} mit {{address}} beantwortet – einem reservierten Benchmark-Bereich, den Proxys als fake-IP-Platzhalter verwenden, nicht der echten Adresse der Quelle. Stelle den Proxy auf Systemproxy-Modus um oder prüfe Einstellungen → System → Netzwerk.",
fakeIpHintPlain:
- "Ein lokaler Proxy hat diesen Host auf einen fake-IP-Platzhalter in einem reservierten Bereich aufgelöst, nicht auf die echte Adresse der Quelle. Stelle den Proxy auf Systemproxy-Modus um oder prüfe Einstellungen → Allgemein → Netzwerk.",
+ "Ein lokaler Proxy hat diesen Host auf einen fake-IP-Platzhalter in einem reservierten Bereich aufgelöst, nicht auf die echte Adresse der Quelle. Stelle den Proxy auf Systemproxy-Modus um oder prüfe Einstellungen → System → Netzwerk.",
remoteErrorQuery: "Der Skill-Markt konnte nicht abgefragt werden – integrierte Auswahl wird angezeigt",
remotePartial: "Einige Katalogquellen sind nicht verfügbar ({{names}})",
remoteStaleSnapshot: "Ergebnisse des letzten erfolgreichen Ladens werden angezeigt ({{time}})",
@@ -1019,8 +1019,10 @@ sklm: {
"groupSystem": "System",
"groupExtensions": "Erweiterungen",
"nav": {
- "general": "Allgemein",
- "ai": "KI",
+ "appearance": "Darstellung",
+ "chat": "Unterhaltung",
+ "behavior": "Verhalten",
+ "system": "System",
"shortcuts": "Verknüpfungen",
"instructions": "Anweisungen",
"models": "Modelle",
@@ -1193,8 +1195,23 @@ sklm: {
error: "Needs attention",
},
},
- "general": "Allgemein",
- "ai": "AI",
+ "conversation": "Unterhaltung",
+ "agentBehavior": "Agentenverhalten",
+ "system": "System",
+ "interface": "Oberfläche",
+ "startup": "Start",
+ "chatDisplay": "Darstellung",
+ "chatDisplayCaption": "Nur Darstellung – nichts hiervon ändert das Verhalten des Modells.",
+ "chatInput": "Eingabe und Links",
+ "sessionDefaults": "Standards für neue Unterhaltungen",
+ "sessionDefaultsCaption": "Womit jede neue Unterhaltung beginnt.",
+ "execution": "Ausführung",
+ "appearanceSubtitle": "Thema, Sprache, Schrift und die Oberfläche um Ihre Unterhaltungen.",
+ "conversationSubtitle": "Wie ein Verlauf dargestellt wird und wie das Eingabefeld Ihre Eingaben annimmt.",
+ "agentBehaviorSubtitle": "Womit eine neue Unterhaltung beginnt und was der Agent währenddessen darf.",
+ "systemSubtitle": "Netzwerk, Speicher, Energie und das Fensterverhalten dieser Installation.",
+ "shortcutsSubtitle": "Jede Aktion neu belegen oder ohne Belegung lassen.",
+ "aboutSubtitle": "Versionen, Updates und wo Sie nachsehen, wenn etwas nicht funktioniert.",
"shortcuts": "Verknüpfungen",
"instructions": "Anweisungen",
"instructionsGlobal": "Globale Anweisungen",
@@ -3020,7 +3037,7 @@ sklm: {
"PROVIDER_ERROR": "Der KI-Anbieter hat einen Fehler zurückgegeben.",
"NETWORK_ERROR": "Der KI-Anbieter kann nicht erreicht werden. Überprüfen Sie Ihr Netzwerk oder Ihre Basis-URL.",
providerCertificate: "Das Zertifikat des KI-Dienstes konnte nicht überprüft werden. Prüfen Sie das Zertifikat, die Systemzeit und die vertrauenswürdigen Stammzertifikate Ihrer Sicherheitssoftware oder Ihres Proxys. Starten Sie die App nach Änderungen an den Vertrauenseinstellungen neu.",
- NETWORK_POLICY_BLOCKED: "Die Adressprüfung der App hat diese Anfrage blockiert. Bei Proxy oder VPN: Einstellungen → Allgemein → Netzwerk prüfen.",
+ NETWORK_POLICY_BLOCKED: "Die Adressprüfung der App hat diese Anfrage blockiert. Bei Proxy oder VPN: Einstellungen → System → Netzwerk prüfen.",
"TIMEOUT": "Bei der Anfrage an den KI-Anbieter ist eine Zeitüberschreitung aufgetreten.",
"STREAM_FAILED": "Die Antwort wurde unterbrochen.",
"EMPTY_MODEL_RESPONSE": "Das Modell beendete seinen Zug zweimal hintereinander, ohne etwas zu sagen. Versuchen Sie es erneut oder formulieren Sie Ihre Anfrage um.",
diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.ts
index 45aeda9fe..b2b50cfea 100644
--- a/packages/i18n/src/locales/en/index.ts
+++ b/packages/i18n/src/locales/en/index.ts
@@ -973,7 +973,7 @@ sklm: {
remoteError: "Catalog source unreachable — showing built-in picks",
previewError: "Could not load this skill's document — nothing was installed.",
previewPolicyError: "The app's own address check blocked this document — nothing was installed.",
- proxyHint: "That check resolves the host locally, while the download itself would use your proxy. If you use a proxy or VPN, check Settings → General → Network.",
+ proxyHint: "That check resolves the host locally, while the download itself would use your proxy. If you use a proxy or VPN, check Settings → System → Network.",
failureDetail: "Details: ",
retryPreview: "Retry",
retryCatalog: "Retry",
@@ -983,16 +983,16 @@ sklm: {
previewResolveError:
"The app's address check could not resolve this host — nothing was installed.",
dnsHint:
- "That check resolves the host locally, while the download itself would use your proxy. If you use a proxy, a VPN, or a custom DNS setup, check Settings → General → Network.",
+ "That check resolves the host locally, while the download itself would use your proxy. If you use a proxy, a VPN, or a custom DNS setup, check Settings → System → Network.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"Your proxy answered the catalog sources with fake-IP addresses — showing built-in picks",
previewFakeIpError:
"Your proxy resolved this host to a fake-IP address, so the app's address check refused it — nothing was installed.",
fakeIpHint:
- "Your proxy answered {{host}} with {{address}} — a reserved benchmark range that proxies use as a fake-IP placeholder, not the source's real address. Switch the proxy to system-proxy mode, or check Settings → General → Network.",
+ "Your proxy answered {{host}} with {{address}} — a reserved benchmark range that proxies use as a fake-IP placeholder, not the source's real address. Switch the proxy to system-proxy mode, or check Settings → System → Network.",
fakeIpHintPlain:
- "A local proxy resolved this host to a fake-IP placeholder in a reserved range, not to the source's real address. Switch the proxy to system-proxy mode, or check Settings → General → Network.",
+ "A local proxy resolved this host to a fake-IP placeholder in a reserved range, not to the source's real address. Switch the proxy to system-proxy mode, or check Settings → System → Network.",
remoteErrorQuery: "Could not query the skill market — showing built-in picks",
remotePartial: "Some catalog sources are unavailable ({{names}})",
remoteStaleSnapshot: "Showing the results from your last successful load ({{time}})",
@@ -1029,8 +1029,10 @@ sklm: {
groupSystem: "System",
groupExtensions: "Extensions",
nav: {
- general: "General",
- ai: "AI",
+ appearance: "Appearance",
+ chat: "Conversation",
+ behavior: "Behavior",
+ system: "System",
shortcuts: "Shortcuts",
instructions: "Instructions",
models: "Models",
@@ -1043,8 +1045,23 @@ sklm: {
info: "Info",
voice: "Voice",
},
- general: "General",
- ai: "AI",
+ conversation: "Conversation",
+ agentBehavior: "Agent behavior",
+ system: "System",
+ interface: "Interface",
+ startup: "Startup",
+ chatDisplay: "Display",
+ chatDisplayCaption: "Presentation only — nothing here changes what the model does.",
+ chatInput: "Input & links",
+ sessionDefaults: "Session defaults",
+ sessionDefaultsCaption: "What every new conversation starts with.",
+ execution: "Execution",
+ appearanceSubtitle: "Theme, language, type, and the chrome around your conversations.",
+ conversationSubtitle: "How a transcript is shown, and how the composer takes what you type.",
+ agentBehaviorSubtitle: "What a new conversation starts with, and what the agent may do while it runs.",
+ systemSubtitle: "Network, storage, power, and this installation's window behavior.",
+ shortcutsSubtitle: "Rebind any action, or leave it unbound.",
+ aboutSubtitle: "Versions, updates, and where to look when something breaks.",
shortcuts: "Shortcuts",
instructions: "Instructions",
instructionsGlobal: "Global instructions",
@@ -3159,7 +3176,7 @@ importConfirm: "Imported extensions run inside the agent process with the same a
PROVIDER_ERROR: "The AI provider returned an error.",
NETWORK_ERROR: "Can't reach the AI provider. Check your network or base URL.",
providerCertificate: "The AI service certificate could not be verified. Check the certificate, system clock, and trusted roots used by your security software or proxy. Restart the app after updating trust settings.",
- NETWORK_POLICY_BLOCKED: "The app's address check blocked this request. Behind a proxy or VPN, check Settings → General → Network.",
+ NETWORK_POLICY_BLOCKED: "The app's address check blocked this request. Behind a proxy or VPN, check Settings → System → Network.",
TIMEOUT: "The request to the AI provider timed out.",
STREAM_FAILED: "The reply was interrupted.",
EMPTY_MODEL_RESPONSE:
diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.ts
index 8f6d79492..61e67697b 100644
--- a/packages/i18n/src/locales/es/index.ts
+++ b/packages/i18n/src/locales/es/index.ts
@@ -963,7 +963,7 @@ sklm: {
remoteError: "Fuente no disponible: se muestran las selecciones integradas",
previewError: "No se pudo cargar el documento de este skill; no se instaló nada.",
previewPolicyError: "La comprobación de direcciones de la aplicación bloqueó este documento; no se instaló nada.",
- proxyHint: "Esa comprobación resuelve el host de forma local, mientras que la descarga usaría tu proxy. Si usas proxy o VPN, revisa Configuración → General → Red.",
+ proxyHint: "Esa comprobación resuelve el host de forma local, mientras que la descarga usaría tu proxy. Si usas proxy o VPN, revisa Configuración → Sistema → Red.",
failureDetail: "Detalles: ",
retryPreview: "Reintentar",
retryCatalog: "Reintentar",
@@ -973,16 +973,16 @@ sklm: {
previewResolveError:
"La comprobación de direcciones de la aplicación no pudo resolver este host: no se instaló nada.",
dnsHint:
- "Esa comprobación resuelve el host localmente, mientras que la descarga usaría tu proxy. Si usas un proxy, una VPN o una configuración de DNS propia, revisa Ajustes → General → Red.",
+ "Esa comprobación resuelve el host localmente, mientras que la descarga usaría tu proxy. Si usas un proxy, una VPN o una configuración de DNS propia, revisa Ajustes → Sistema → Red.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"Tu proxy respondió con direcciones fake-IP para las fuentes del catálogo: se muestran las selecciones integradas",
previewFakeIpError:
"Tu proxy resolvió este host a una dirección fake-IP, así que la comprobación de direcciones de la aplicación lo rechazó: no se instaló nada.",
fakeIpHint:
- "Tu proxy respondió {{host}} con {{address}}, un rango de referencia reservado que los proxys usan como marcador fake-IP, no la dirección real de la fuente. Cambia el proxy al modo de proxy del sistema o revisa Ajustes → General → Red.",
+ "Tu proxy respondió {{host}} con {{address}}, un rango de referencia reservado que los proxys usan como marcador fake-IP, no la dirección real de la fuente. Cambia el proxy al modo de proxy del sistema o revisa Ajustes → Sistema → Red.",
fakeIpHintPlain:
- "Un proxy local resolvió este host a un marcador fake-IP en un rango reservado, no a la dirección real de la fuente. Cambia el proxy al modo de proxy del sistema o revisa Ajustes → General → Red.",
+ "Un proxy local resolvió este host a un marcador fake-IP en un rango reservado, no a la dirección real de la fuente. Cambia el proxy al modo de proxy del sistema o revisa Ajustes → Sistema → Red.",
remoteErrorQuery: "No se pudo consultar el mercado de skills: se muestran las selecciones integradas",
remotePartial: "Algunas fuentes del catálogo no están disponibles ({{names}})",
remoteStaleSnapshot: "Mostrando los resultados de la última carga correcta ({{time}})",
@@ -1019,8 +1019,10 @@ sklm: {
"groupSystem": "Sistema",
"groupExtensions": "Extensiones",
"nav": {
- "general": "General",
- "ai": "AI",
+ "appearance": "Apariencia",
+ "chat": "Conversación",
+ "behavior": "Comportamiento",
+ "system": "Sistema",
"shortcuts": "Atajos",
"instructions": "Instrucciones",
"models": "Modelos",
@@ -1193,8 +1195,23 @@ sklm: {
error: "Needs attention",
},
},
- "general": "General",
- "ai": "AI",
+ "conversation": "Conversación",
+ "agentBehavior": "Comportamiento del agente",
+ "system": "Sistema",
+ "interface": "Interfaz",
+ "startup": "Inicio",
+ "chatDisplay": "Visualización",
+ "chatDisplayCaption": "Solo presentación: nada de esto cambia lo que hace el modelo.",
+ "chatInput": "Entrada y enlaces",
+ "sessionDefaults": "Valores iniciales de la sesión",
+ "sessionDefaultsCaption": "Con qué empieza cada conversación nueva.",
+ "execution": "Ejecución",
+ "appearanceSubtitle": "Tema, idioma, tipografía y la interfaz que rodea tus conversaciones.",
+ "conversationSubtitle": "Cómo se muestra la transcripción y cómo el editor recibe lo que escribes.",
+ "agentBehaviorSubtitle": "Con qué empieza una conversación nueva y qué puede hacer el agente mientras se ejecuta.",
+ "systemSubtitle": "Red, almacenamiento, energía y el comportamiento de la ventana en esta instalación.",
+ "shortcutsSubtitle": "Reasigna cualquier acción o déjala sin asignar.",
+ "aboutSubtitle": "Versiones, actualizaciones y dónde mirar cuando algo falla.",
"shortcuts": "Atajos",
"instructions": "Instrucciones",
"instructionsGlobal": "Instrucciones globales",
@@ -3018,7 +3035,7 @@ sklm: {
"PROVIDER_ERROR": "El proveedor de IA devolvió un error.",
"NETWORK_ERROR": "No se puede comunicar con el proveedor de IA. Verifique su red o URL base.",
providerCertificate: "No se pudo verificar el certificado del servicio de IA. Compruebe el certificado, la hora del sistema y los certificados raíz de confianza del software de seguridad o proxy. Reinicie la aplicación tras actualizar la configuración de confianza.",
- NETWORK_POLICY_BLOCKED: "La comprobación de direcciones de la aplicación bloqueó esta solicitud. Si usas proxy o VPN, revisa Configuración → General → Red.",
+ NETWORK_POLICY_BLOCKED: "La comprobación de direcciones de la aplicación bloqueó esta solicitud. Si usas proxy o VPN, revisa Configuración → Sistema → Red.",
"TIMEOUT": "Se agotó el tiempo de espera de la solicitud al proveedor de IA.",
"STREAM_FAILED": "La respuesta fue interrumpida.",
"EMPTY_MODEL_RESPONSE": "El modelo terminó su turno sin decir nada, dos veces seguidas. Inténtelo de nuevo o reformule su solicitud.",
diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.ts
index bb1c8b9c7..80a20969c 100644
--- a/packages/i18n/src/locales/fr/index.ts
+++ b/packages/i18n/src/locales/fr/index.ts
@@ -963,7 +963,7 @@ sklm: {
remoteError: "Source inaccessible – sélection intégrée affichée",
previewError: "Impossible de charger le document de cette skill ; rien n'a été installé.",
previewPolicyError: "Le contrôle d'adresse de l'application a bloqué ce document ; rien n'a été installé.",
- proxyHint: "Ce contrôle résout l'hôte localement, alors que le téléchargement passerait par votre proxy. Si vous utilisez un proxy ou un VPN, vérifiez Paramètres → Général → Réseau.",
+ proxyHint: "Ce contrôle résout l'hôte localement, alors que le téléchargement passerait par votre proxy. Si vous utilisez un proxy ou un VPN, vérifiez Paramètres → Système → Réseau.",
failureDetail: "Détails : ",
retryPreview: "Réessayer",
retryCatalog: "Réessayer",
@@ -973,16 +973,16 @@ sklm: {
previewResolveError:
"Le contrôle d'adresse de l'application n'a pas pu résoudre cet hôte – rien n'a été installé.",
dnsHint:
- "Ce contrôle résout l'hôte localement, alors que le téléchargement passerait par votre proxy. Si vous utilisez un proxy, un VPN ou une configuration DNS personnalisée, vérifiez Paramètres → Général → Réseau.",
+ "Ce contrôle résout l'hôte localement, alors que le téléchargement passerait par votre proxy. Si vous utilisez un proxy, un VPN ou une configuration DNS personnalisée, vérifiez Paramètres → Système → Réseau.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"Votre proxy a répondu avec des adresses fake-IP pour les sources du catalogue – sélection intégrée affichée",
previewFakeIpError:
"Votre proxy a résolu cet hôte en une adresse fake-IP ; le contrôle d'adresse de l'application l'a donc refusé – rien n'a été installé.",
fakeIpHint:
- "Votre proxy a répondu {{host}} avec {{address}}, une plage de référence réservée que les proxys utilisent comme adresse factice, et non l'adresse réelle de la source. Passez le proxy en mode proxy système, ou vérifiez Paramètres → Général → Réseau.",
+ "Votre proxy a répondu {{host}} avec {{address}}, une plage de référence réservée que les proxys utilisent comme adresse factice, et non l'adresse réelle de la source. Passez le proxy en mode proxy système, ou vérifiez Paramètres → Système → Réseau.",
fakeIpHintPlain:
- "Un proxy local a résolu cet hôte en une adresse factice d'une plage réservée, et non en l'adresse réelle de la source. Passez le proxy en mode proxy système, ou vérifiez Paramètres → Général → Réseau.",
+ "Un proxy local a résolu cet hôte en une adresse factice d'une plage réservée, et non en l'adresse réelle de la source. Passez le proxy en mode proxy système, ou vérifiez Paramètres → Système → Réseau.",
remoteErrorQuery: "Impossible d'interroger le marché de skills – sélection intégrée affichée",
remotePartial: "Certaines sources du catalogue sont indisponibles ({{names}})",
remoteStaleSnapshot: "Affichage des résultats du dernier chargement réussi ({{time}})",
@@ -1019,8 +1019,10 @@ sklm: {
"groupSystem": "Système",
"groupExtensions": "Extensions",
"nav": {
- "general": "Général",
- "ai": "IA",
+ "appearance": "Apparence",
+ "chat": "Conversation",
+ "behavior": "Comportement",
+ "system": "Système",
"shortcuts": "Raccourcis",
"instructions": "Instructions",
"models": "Modèles",
@@ -1193,8 +1195,23 @@ sklm: {
error: "Needs attention",
},
},
- "general": "Général",
- "ai": "AI",
+ "conversation": "Conversation",
+ "agentBehavior": "Comportement de l'agent",
+ "system": "Système",
+ "interface": "Interface",
+ "startup": "Démarrage",
+ "chatDisplay": "Affichage",
+ "chatDisplayCaption": "Présentation uniquement — rien ici ne change le comportement du modèle.",
+ "chatInput": "Saisie et liens",
+ "sessionDefaults": "Valeurs initiales des sessions",
+ "sessionDefaultsCaption": "Ce avec quoi chaque nouvelle conversation démarre.",
+ "execution": "Exécution",
+ "appearanceSubtitle": "Thème, langue, police et l'interface autour de vos conversations.",
+ "conversationSubtitle": "Comment la transcription s'affiche et comment le champ de saisie traite ce que vous tapez.",
+ "agentBehaviorSubtitle": "Ce avec quoi une nouvelle conversation démarre, et ce que l'agent peut faire pendant son exécution.",
+ "systemSubtitle": "Réseau, stockage, alimentation et le comportement de la fenêtre sur cette installation.",
+ "shortcutsSubtitle": "Réattribuez n'importe quelle action, ou laissez-la sans raccourci.",
+ "aboutSubtitle": "Versions, mises à jour et où regarder quand quelque chose ne va pas.",
"shortcuts": "Raccourcis",
"instructions": "Instructions",
"instructionsGlobal": "Instructions globales",
@@ -3018,7 +3035,7 @@ sklm: {
"PROVIDER_ERROR": "Le fournisseur d'IA a renvoyé une erreur.",
"NETWORK_ERROR": "Impossible de joindre le fournisseur d'IA. Vérifiez votre réseau ou votre URL de base.",
providerCertificate: "Le certificat du service IA n’a pas pu être vérifié. Vérifiez le certificat, l’horloge système et les certificats racines approuvés utilisés par votre logiciel de sécurité ou proxy. Redémarrez l’application après avoir modifié les paramètres de confiance.",
- NETWORK_POLICY_BLOCKED: "Le contrôle d'adresse de l'application a bloqué cette requête. Si vous utilisez un proxy ou un VPN, vérifiez Paramètres → Général → Réseau.",
+ NETWORK_POLICY_BLOCKED: "Le contrôle d'adresse de l'application a bloqué cette requête. Si vous utilisez un proxy ou un VPN, vérifiez Paramètres → Système → Réseau.",
"TIMEOUT": "La demande adressée au fournisseur d'IA a expiré.",
"STREAM_FAILED": "La réponse a été interrompue.",
"EMPTY_MODEL_RESPONSE": "Le modèle a terminé son tour sans rien dire, deux fois de suite. Réessayez ou reformulez votre demande.",
diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.ts
index 6905d5b11..cd651e12b 100644
--- a/packages/i18n/src/locales/ko/index.ts
+++ b/packages/i18n/src/locales/ko/index.ts
@@ -970,7 +970,7 @@ sklm: {
remoteError: "소스에 연결할 수 없어 내장 목록을 표시합니다",
previewError: "이 스킬의 문서를 불러오지 못했습니다. 아무것도 설치되지 않았습니다.",
previewPolicyError: "앱의 주소 검사가 이 문서를 차단했습니다. 아무것도 설치되지 않았습니다.",
- proxyHint: "이 검사는 호스트를 로컬에서 조회하지만, 다운로드 자체는 프록시를 사용합니다. 프록시나 VPN을 사용한다면 설정 → 일반 → 네트워크를 확인하세요.",
+ proxyHint: "이 검사는 호스트를 로컬에서 조회하지만, 다운로드 자체는 프록시를 사용합니다. 프록시나 VPN을 사용한다면 설정 → 시스템 → 네트워크를 확인하세요.",
failureDetail: "세부 정보: ",
retryPreview: "다시 시도",
retryCatalog: "다시 시도",
@@ -980,16 +980,16 @@ sklm: {
previewResolveError:
"앱의 주소 검사가 이 호스트를 확인하지 못했습니다. 아무것도 설치되지 않았습니다.",
dnsHint:
- "이 검사는 호스트를 로컬에서 확인하지만, 다운로드 자체는 프록시를 사용합니다. 프록시, VPN 또는 별도 DNS 설정을 사용한다면 설정 → 일반 → 네트워크를 확인하세요.",
+ "이 검사는 호스트를 로컬에서 확인하지만, 다운로드 자체는 프록시를 사용합니다. 프록시, VPN 또는 별도 DNS 설정을 사용한다면 설정 → 시스템 → 네트워크를 확인하세요.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"프록시가 카탈로그 소스에 fake-IP 주소로 응답했습니다. 내장 목록을 표시합니다",
previewFakeIpError:
"프록시가 이 호스트를 fake-IP 주소로 확인했고, 앱의 주소 검사가 이를 거부했습니다. 아무것도 설치되지 않았습니다.",
fakeIpHint:
- "프록시가 {{host}}를 {{address}}로 응답했습니다. 이는 프록시가 fake-IP 자리표시자로 사용하는 예약된 벤치마크 대역이며, 소스의 실제 주소가 아닙니다. 프록시를 시스템 프록시 모드로 전환하거나 설정 → 일반 → 네트워크를 확인하세요.",
+ "프록시가 {{host}}를 {{address}}로 응답했습니다. 이는 프록시가 fake-IP 자리표시자로 사용하는 예약된 벤치마크 대역이며, 소스의 실제 주소가 아닙니다. 프록시를 시스템 프록시 모드로 전환하거나 설정 → 시스템 → 네트워크를 확인하세요.",
fakeIpHintPlain:
- "로컬 프록시가 이 호스트를 예약 대역의 fake-IP 자리표시자로 확인했습니다. 소스의 실제 주소가 아닙니다. 프록시를 시스템 프록시 모드로 전환하거나 설정 → 일반 → 네트워크를 확인하세요.",
+ "로컬 프록시가 이 호스트를 예약 대역의 fake-IP 자리표시자로 확인했습니다. 소스의 실제 주소가 아닙니다. 프록시를 시스템 프록시 모드로 전환하거나 설정 → 시스템 → 네트워크를 확인하세요.",
remoteErrorQuery: "스킬 마켓을 조회하지 못했습니다. 내장 목록을 표시합니다",
remotePartial: "일부 카탈로그 소스를 사용할 수 없습니다 ({{names}})",
remoteStaleSnapshot: "마지막으로 성공한 불러오기의 결과를 표시합니다 ({{time}})",
@@ -1025,8 +1025,10 @@ sklm: {
groupSystem: "시스템",
groupExtensions: "확장 기능",
nav: {
- general: "일반",
- ai: "AI",
+ appearance: "모양",
+ chat: "대화",
+ behavior: "동작",
+ system: "시스템",
shortcuts: "단축키",
instructions: "지침",
models: "모델",
@@ -1199,8 +1201,23 @@ sklm: {
error: "Needs attention",
},
},
- general: "일반",
- ai: "AI",
+ conversation: "대화",
+ agentBehavior: "에이전트 동작",
+ system: "시스템",
+ interface: "인터페이스",
+ startup: "시작",
+ chatDisplay: "표시",
+ chatDisplayCaption: "표시 방식만 바뀝니다 — 모델의 동작은 달라지지 않습니다.",
+ chatInput: "입력 및 링크",
+ sessionDefaults: "세션 기본값",
+ sessionDefaultsCaption: "모든 새 대화가 시작할 때의 기본값입니다.",
+ execution: "실행",
+ appearanceSubtitle: "테마, 언어, 글꼴, 그리고 대화를 둘러싼 화면 요소.",
+ conversationSubtitle: "기록을 어떻게 보여주고, 입력창이 입력을 어떻게 처리할지.",
+ agentBehaviorSubtitle: "새 대화가 어떤 설정으로 시작하고, 실행 중 에이전트가 무엇을 할 수 있는지.",
+ systemSubtitle: "네트워크, 저장 공간, 전원, 그리고 이 설치본의 창 동작.",
+ shortcutsSubtitle: "어떤 동작이든 다시 지정하거나 지정하지 않은 상태로 둡니다.",
+ aboutSubtitle: "버전, 업데이트, 그리고 문제가 생겼을 때 확인할 곳.",
shortcuts: "단축키",
instructions: "지침",
instructionsGlobal: "전역 지침",
@@ -3057,7 +3074,7 @@ importConfirm: "가져온 확장은 에이전트 프로세스 안에서 에이
PROVIDER_ERROR: "AI 프로바이더에서 오류를 반환했습니다.",
NETWORK_ERROR: "AI 프로바이더에 연결할 수 없습니다. 네트워크 또는 기본 URL을 확인하세요.",
providerCertificate: "AI 서비스 인증서를 확인할 수 없습니다. 인증서, 시스템 시간, 보안 소프트웨어나 프록시가 사용하는 신뢰할 수 있는 루트 인증서를 확인하세요. 신뢰 설정을 변경한 후 앱을 다시 시작하세요.",
- NETWORK_POLICY_BLOCKED: "앱의 주소 검사가 이 요청을 차단했습니다. 프록시나 VPN을 사용한다면 설정 → 일반 → 네트워크를 확인하세요.",
+ NETWORK_POLICY_BLOCKED: "앱의 주소 검사가 이 요청을 차단했습니다. 프록시나 VPN을 사용한다면 설정 → 시스템 → 네트워크를 확인하세요.",
TIMEOUT: "AI 프로바이더 요청 시간이 초과되었습니다.",
STREAM_FAILED: "답변이 중단되었습니다.",
EMPTY_MODEL_RESPONSE:
diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.ts
index 6f5da957b..66a8d3686 100644
--- a/packages/i18n/src/locales/pt-BR/index.ts
+++ b/packages/i18n/src/locales/pt-BR/index.ts
@@ -956,19 +956,19 @@ export const ptBR = {
remoteError: "Fonte indisponível: exibindo seleções integradas",
previewError: "Não foi possível carregar o documento desta habilidade; nada foi instalado.",
previewPolicyError: "A verificação de endereço do aplicativo bloqueou este documento; nada foi instalado.",
- proxyHint: "Esta verificação resolve o host localmente, enquanto o download usaria seu proxy. Se usar proxy ou VPN, revise Configurações → Geral → Rede.",
+ proxyHint: "Esta verificação resolve o host localmente, enquanto o download usaria seu proxy. Se usar proxy ou VPN, revise Configurações → Sistema → Rede.",
failureDetail: "Detalhes: ",
retryPreview: "Tentar novamente",
retryCatalog: "Tentar novamente",
remoteErrorPolicy: "A verificação de endereço do aplicativo bloqueou as fontes do catálogo: exibindo seleções integradas",
remoteErrorUnresolved: "O resolvedor local não conseguiu resolver as fontes do catálogo: exibindo seleções integradas",
previewResolveError: "A verificação de endereço do aplicativo não conseguiu resolver este host: nada foi instalado.",
- dnsHint: "Esta verificação resolve o host localmente, enquanto o download usaria seu proxy. Se usar um proxy, uma VPN ou configuração de DNS personalizada, revise Configurações → Geral → Rede.",
+ dnsHint: "Esta verificação resolve o host localmente, enquanto o download usaria seu proxy. Se usar um proxy, uma VPN ou configuração de DNS personalizada, revise Configurações → Sistema → Rede.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp: "Seu proxy respondeu com endereços fake-IP para as fontes do catálogo: exibindo seleções integradas",
previewFakeIpError: "Seu proxy resolveu este host para um endereço fake-IP, portanto a verificação de endereço do aplicativo o rejeitou: nada foi instalado.",
- fakeIpHint: "Seu proxy respondeu {{host}} com {{address}}, uma faixa reservada usada como marcador fake-IP, não o endereço real da fonte. Altere o proxy para o modo de proxy do sistema ou revise Configurações → Geral → Rede.",
- fakeIpHintPlain: "Um proxy local resolveu este host para um marcador fake-IP em uma faixa reservada, não o endereço real da fonte. Altere o proxy para o modo de proxy do sistema ou revise Configurações → Geral → Rede.",
+ fakeIpHint: "Seu proxy respondeu {{host}} com {{address}}, uma faixa reservada usada como marcador fake-IP, não o endereço real da fonte. Altere o proxy para o modo de proxy do sistema ou revise Configurações → Sistema → Rede.",
+ fakeIpHintPlain: "Um proxy local resolveu este host para um marcador fake-IP em uma faixa reservada, não o endereço real da fonte. Altere o proxy para o modo de proxy do sistema ou revise Configurações → Sistema → Rede.",
remoteErrorQuery: "Não foi possível consultar o mercado de habilidades — exibindo seleções integradas",
remotePartial: "Algumas fontes do catálogo não estão disponíveis ({{names}})",
remoteStaleSnapshot: "Exibindo os resultados do último carregamento bem-sucedido ({{time}})"
@@ -1003,8 +1003,10 @@ export const ptBR = {
groupSystem: "Sistema",
groupExtensions: "Extensões",
nav: {
- general: "Geral",
- ai: "IA",
+ appearance: "Aparência",
+ chat: "Conversa",
+ behavior: "Comportamento",
+ system: "Sistema",
shortcuts: "Atalhos",
instructions: "Instruções",
models: "Modelos",
@@ -1017,8 +1019,23 @@ export const ptBR = {
info: "Sobre",
voice: "Voz"
},
- general: "Geral",
- ai: "IA",
+ conversation: "Conversa",
+ agentBehavior: "Comportamento do agente",
+ system: "Sistema",
+ interface: "Interface",
+ startup: "Inicialização",
+ chatDisplay: "Exibição",
+ chatDisplayCaption: "Apenas apresentação — nada aqui muda o que o modelo faz.",
+ chatInput: "Entrada e links",
+ sessionDefaults: "Padrões da sessão",
+ sessionDefaultsCaption: "Com o que cada nova conversa começa.",
+ execution: "Execução",
+ appearanceSubtitle: "Tema, idioma, tipografia e a interface em volta das suas conversas.",
+ conversationSubtitle: "Como a transcrição é exibida e como o campo de entrada trata o que você digita.",
+ agentBehaviorSubtitle: "Com o que uma nova conversa começa e o que o agente pode fazer enquanto executa.",
+ systemSubtitle: "Rede, armazenamento, energia e o comportamento da janela nesta instalação.",
+ shortcutsSubtitle: "Reatribua qualquer ação ou deixe-a sem atalho.",
+ aboutSubtitle: "Versões, atualizações e onde olhar quando algo falha.",
shortcuts: "Atalhos",
instructions: "Instruções",
instructionsGlobal: "Instruções globais",
@@ -2988,7 +3005,7 @@ export const ptBR = {
PROVIDER_ERROR: "O provedor de IA retornou um erro.",
NETWORK_ERROR: "Não foi possível alcançar o provedor de IA. Verifique sua conexão ou a URL base.",
providerCertificate: "Não foi possível verificar o certificado do serviço de IA. Verifique o certificado, o relógio do sistema e as raízes confiáveis usadas pelo seu software de segurança ou proxy. Reinicie o aplicativo após atualizar as configurações de confiança.",
- NETWORK_POLICY_BLOCKED: "A verificação de endereço do aplicativo bloqueou esta solicitação. Em redes com proxy ou VPN, verifique Configurações → Geral → Rede.",
+ NETWORK_POLICY_BLOCKED: "A verificação de endereço do aplicativo bloqueou esta solicitação. Em redes com proxy ou VPN, verifique Configurações → Sistema → Rede.",
TIMEOUT: "A solicitação ao provedor de IA atingiu o tempo limite.",
STREAM_FAILED: "A resposta foi interrompida.",
EMPTY_MODEL_RESPONSE: "O modelo encerrou a rodada sem gerar resposta, duas vezes seguidas. Tente novamente ou reformule sua solicitação.",
diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.ts
index 41bd6d425..a27b6fb26 100644
--- a/packages/i18n/src/locales/tr/index.ts
+++ b/packages/i18n/src/locales/tr/index.ts
@@ -970,7 +970,7 @@ sklm: {
remoteError: "Kaynak erişilemiyor – yerleşik seçkiler gösteriliyor",
previewError: "Bu skilin belgesi yüklenemedi; hiçbir şey kurulmadı.",
previewPolicyError: "Uygulamanın adres denetimi bu belgeyi engelledi; hiçbir şey kurulmadı.",
- proxyHint: "Bu denetim ana makineyi yerel olarak çözer, indirme ise proxy üzerinden yapılır. Proxy veya VPN kullanıyorsanız Ayarlar → Genel → Ağ bölümüne bakın.",
+ proxyHint: "Bu denetim ana makineyi yerel olarak çözer, indirme ise proxy üzerinden yapılır. Proxy veya VPN kullanıyorsanız Ayarlar → Sistem → Ağ bölümüne bakın.",
failureDetail: "Ayrıntılar: ",
retryPreview: "Yeniden dene",
retryCatalog: "Yeniden dene",
@@ -980,16 +980,16 @@ sklm: {
previewResolveError:
"Uygulamanın adres denetimi bu ana bilgisayarı çözemedi – hiçbir şey yüklenmedi.",
dnsHint:
- "Bu denetim ana bilgisayarı yerel olarak çözer, indirmenin kendisi ise proxy'nizden geçer. Proxy, VPN veya özel bir DNS kurulumu kullanıyorsanız Ayarlar → Genel → Ağ bölümünü kontrol edin.",
+ "Bu denetim ana bilgisayarı yerel olarak çözer, indirmenin kendisi ise proxy'nizden geçer. Proxy, VPN veya özel bir DNS kurulumu kullanıyorsanız Ayarlar → Sistem → Ağ bölümünü kontrol edin.",
failureSourceHost: "{{name}} ({{host}})",
remoteErrorFakeIp:
"Proxy'niz katalog kaynaklarına fake-IP adresleriyle yanıt verdi – yerleşik seçkiler gösteriliyor",
previewFakeIpError:
"Proxy'niz bu ana bilgisayarı bir fake-IP adresine çözdü, bu yüzden uygulamanın adres denetimi reddetti – hiçbir şey yüklenmedi.",
fakeIpHint:
- "Proxy'niz {{host}} için {{address}} yanıtını verdi; bu, proxy'lerin fake-IP yer tutucusu olarak kullandığı ayrılmış bir referans aralığıdır, kaynağın gerçek adresi değildir. Proxy'yi sistem proxy moduna alın veya Ayarlar → Genel → Ağ bölümünü kontrol edin.",
+ "Proxy'niz {{host}} için {{address}} yanıtını verdi; bu, proxy'lerin fake-IP yer tutucusu olarak kullandığı ayrılmış bir referans aralığıdır, kaynağın gerçek adresi değildir. Proxy'yi sistem proxy moduna alın veya Ayarlar → Sistem → Ağ bölümünü kontrol edin.",
fakeIpHintPlain:
- "Yerel bir proxy bu ana bilgisayarı ayrılmış bir aralıktaki fake-IP yer tutucusuna çözdü; kaynağın gerçek adresi değildir. Proxy'yi sistem proxy moduna alın veya Ayarlar → Genel → Ağ bölümünü kontrol edin.",
+ "Yerel bir proxy bu ana bilgisayarı ayrılmış bir aralıktaki fake-IP yer tutucusuna çözdü; kaynağın gerçek adresi değildir. Proxy'yi sistem proxy moduna alın veya Ayarlar → Sistem → Ağ bölümünü kontrol edin.",
remoteErrorQuery: "Skill market sorgulanamadı – yerleşik seçkiler gösteriliyor",
remotePartial: "Bazı katalog kaynakları kullanılamıyor ({{names}})",
remoteStaleSnapshot: "Son başarılı yüklemenin sonuçları gösteriliyor ({{time}})",
@@ -1025,8 +1025,10 @@ sklm: {
groupSystem: "Sistem",
groupExtensions: "Uzantılar",
nav: {
- general: "Genel",
- ai: "AI",
+ appearance: "Görünüm",
+ chat: "Sohbet",
+ behavior: "Davranış",
+ system: "Sistem",
shortcuts: "Kısayollar",
instructions: "Yönergeler",
models: "Modeller",
@@ -1193,8 +1195,23 @@ sklm: {
error: "İlgilenilmesi gerekiyor",
},
},
- general: "Genel",
- ai: "AI",
+ conversation: "Sohbet",
+ agentBehavior: "Aracı davranışı",
+ system: "Sistem",
+ interface: "Arayüz",
+ startup: "Başlangıç",
+ chatDisplay: "Görüntüleme",
+ chatDisplayCaption: "Yalnızca sunum — buradaki hiçbir şey modelin davranışını değiştirmez.",
+ chatInput: "Giriş ve bağlantılar",
+ sessionDefaults: "Oturum varsayılanları",
+ sessionDefaultsCaption: "Her yeni sohbetin başladığı ayarlar.",
+ execution: "Yürütme",
+ appearanceSubtitle: "Tema, dil, yazı tipi ve sohbetlerinizi çevreleyen arayüz.",
+ conversationSubtitle: "Dökümün nasıl gösterildiği ve yazdıklarınızın nasıl alındığı.",
+ agentBehaviorSubtitle: "Yeni bir sohbetin hangi ayarlarla başladığı ve aracının çalışırken neler yapabileceği.",
+ systemSubtitle: "Ağ, depolama, güç ve bu kurulumun pencere davranışı.",
+ shortcutsSubtitle: "Herhangi bir eylemi yeniden atayın ya da atamasız bırakın.",
+ aboutSubtitle: "Sürümler, güncellemeler ve bir şey bozulduğunda nereye bakacağınız.",
shortcuts: "Kısayollar",
instructions: "Yönergeler",
instructionsGlobal: "Genel yönergeler",
@@ -3050,7 +3067,7 @@ importConfirm: "İçe aktarılan uzantılar ajan sürecinde, ajanın kendi araç
PROVIDER_ERROR: "AI servisi bir hata döndürdü.",
NETWORK_ERROR: "AI servisine ulaşılamıyor. Ağınızı veya temel URL’yi kontrol edin.",
providerCertificate: "AI hizmetinin sertifikası doğrulanamadı. Sertifikayı, sistem saatini ve güvenlik yazılımınızın veya proxy’nizin kullandığı güvenilir kök sertifikaları kontrol edin. Güven ayarlarını güncelledikten sonra uygulamayı yeniden başlatın.",
- NETWORK_POLICY_BLOCKED: "Uygulamanın adres denetimi bu isteği engelledi. Proxy veya VPN kullanıyorsanız Ayarlar → Genel → Ağ bölümüne bakın.",
+ NETWORK_POLICY_BLOCKED: "Uygulamanın adres denetimi bu isteği engelledi. Proxy veya VPN kullanıyorsanız Ayarlar → Sistem → Ağ bölümüne bakın.",
TIMEOUT: "AI servisine istek zaman aşımına uğradı.",
STREAM_FAILED: "Yanıt kesildi.",
EMPTY_MODEL_RESPONSE:
diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.ts
index ffd154991..513fc3ea6 100644
--- a/packages/i18n/src/locales/zh-CN/index.ts
+++ b/packages/i18n/src/locales/zh-CN/index.ts
@@ -965,7 +965,7 @@ sklm: {
remoteError: "目录源暂不可达,已显示内置精选",
previewError: "无法加载该技能的文档,未安装任何内容。",
previewPolicyError: "应用自身的地址校验阻止了该文档,未安装任何内容。",
- proxyHint: "该校验在本地解析域名,而下载本身会走你的代理。若使用代理或 VPN,请检查 设置 → 常规 → 网络。",
+ proxyHint: "该校验在本地解析域名,而下载本身会走你的代理。若使用代理或 VPN,请检查 设置 → 系统 → 网络。",
failureDetail: "详情: ",
retryPreview: "重试",
retryCatalog: "重试",
@@ -973,14 +973,14 @@ sklm: {
remoteErrorUnresolved: "本机 DNS 无法解析目录源,已显示内置精选",
previewResolveError: "应用的地址校验无法解析该主机,未安装任何内容。",
dnsHint:
- "该校验在本机解析主机,而下载本身会走代理。如果你使用代理、VPN 或自定义 DNS,请检查 设置 → 通用 → 网络。",
+ "该校验在本机解析主机,而下载本身会走代理。如果你使用代理、VPN 或自定义 DNS,请检查 设置 → 系统 → 网络。",
failureSourceHost: "{{name}}({{host}})",
remoteErrorFakeIp: "代理用 fake-IP 地址应答了目录源,已显示内置精选",
previewFakeIpError: "代理把该主机解析成了 fake-IP 地址,应用的地址校验因此拒绝,未安装任何内容。",
fakeIpHint:
- "代理把 {{host}} 应答为 {{address}} —— 这是代理用作 fake-IP 占位地址的保留基准测试段,不是该源的真实地址。请把代理切换为系统代理模式,或检查 设置 → 通用 → 网络。",
+ "代理把 {{host}} 应答为 {{address}} —— 这是代理用作 fake-IP 占位地址的保留基准测试段,不是该源的真实地址。请把代理切换为系统代理模式,或检查 设置 → 系统 → 网络。",
fakeIpHintPlain:
- "本地代理把该主机解析成了保留段里的 fake-IP 占位地址,而不是该源的真实地址。请把代理切换为系统代理模式,或检查 设置 → 通用 → 网络。",
+ "本地代理把该主机解析成了保留段里的 fake-IP 占位地址,而不是该源的真实地址。请把代理切换为系统代理模式,或检查 设置 → 系统 → 网络。",
remoteErrorQuery: "无法查询技能市场,已显示内置精选",
remotePartial: "部分目录源不可用({{names}})",
remoteStaleSnapshot: "正在显示上次成功加载的结果({{time}})",
@@ -1016,8 +1016,10 @@ sklm: {
groupSystem: "系统",
groupExtensions: "扩展",
nav: {
- general: "常规",
- ai: "AI",
+ appearance: "外观",
+ chat: "对话",
+ behavior: "行为",
+ system: "系统",
shortcuts: "快捷键",
instructions: "指令",
models: "模型",
@@ -1184,8 +1186,23 @@ sklm: {
error: "需要处理",
},
},
- general: "常规",
- ai: "全局 AI",
+ conversation: "对话",
+ agentBehavior: "智能体行为",
+ system: "系统",
+ interface: "界面",
+ startup: "启动",
+ chatDisplay: "显示",
+ chatDisplayCaption: "只影响呈现方式,不改变模型的行为。",
+ chatInput: "输入与链接",
+ sessionDefaults: "会话默认",
+ sessionDefaultsCaption: "每个新对话的起始设置。",
+ execution: "执行",
+ appearanceSubtitle: "主题、语言、字体,以及对话周围的界面元素。",
+ conversationSubtitle: "转录如何呈现,以及输入框如何处理你输入的内容。",
+ agentBehaviorSubtitle: "新对话的起始设置,以及智能体运行时可以做什么。",
+ systemSubtitle: "网络、存储、电源,以及本机的窗口行为。",
+ shortcutsSubtitle: "重新绑定任意操作,或让它保持未绑定。",
+ aboutSubtitle: "版本、更新,以及出问题时该去哪里查。",
shortcuts: "快捷键",
instructions: "指令",
instructionsGlobal: "全局指令",
@@ -3090,7 +3107,7 @@ sklm: {
PROVIDER_ERROR: "AI 服务返回了错误。",
NETWORK_ERROR: "无法连接 AI 服务,请检查网络或接口地址。",
providerCertificate: "无法验证 AI 服务的证书。请检查证书、系统时间,以及安全软件或代理使用的受信任根证书。更新信任设置后请重启应用。",
- NETWORK_POLICY_BLOCKED: "应用的地址校验阻止了该请求。若使用代理或 VPN,请检查 设置 → 常规 → 网络。",
+ NETWORK_POLICY_BLOCKED: "应用的地址校验阻止了该请求。若使用代理或 VPN,请检查 设置 → 系统 → 网络。",
TIMEOUT: "请求 AI 服务超时。",
STREAM_FAILED: "回复中断了。",
EMPTY_MODEL_RESPONSE: "模型连续两轮都没有输出内容。可以重试,或换一种说法。",
diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.ts
index 3a08e1e2e..98fbb1f72 100644
--- a/packages/i18n/src/locales/zh-TW/index.ts
+++ b/packages/i18n/src/locales/zh-TW/index.ts
@@ -965,7 +965,7 @@ sklm: {
remoteError: "目錄源暫不可達,已顯示內建精選",
previewError: "無法載入該技能的文檔,未安裝任何內容。",
previewPolicyError: "應用程式自身的地址校驗阻止了該文檔,未安裝任何內容。",
- proxyHint: "該校驗在本機解析網域,而下載本身會走你的代理。若使用代理或 VPN,請檢查 設定 → 常規 → 網路。",
+ proxyHint: "該校驗在本機解析網域,而下載本身會走你的代理。若使用代理或 VPN,請檢查 設定 → 系統 → 網路。",
failureDetail: "詳情: ",
retryPreview: "重試",
retryCatalog: "重試",
@@ -1016,8 +1016,10 @@ sklm: {
groupSystem: "系統",
groupExtensions: "擴充功能",
nav: {
- general: "常規",
- ai: "AI",
+ appearance: "外觀",
+ chat: "對話",
+ behavior: "行為",
+ system: "系統",
shortcuts: "快捷鍵",
instructions: "指令",
models: "模型",
@@ -1184,8 +1186,23 @@ sklm: {
error: "需要處理",
},
},
- general: "常規",
- ai: "全域性 AI",
+ conversation: "對話",
+ agentBehavior: "智慧體行為",
+ system: "系統",
+ interface: "介面",
+ startup: "啟動",
+ chatDisplay: "顯示",
+ chatDisplayCaption: "只影響呈現方式,不會改變模型的行為。",
+ chatInput: "輸入與連結",
+ sessionDefaults: "對話預設",
+ sessionDefaultsCaption: "每個新對話的起始設定。",
+ execution: "執行",
+ appearanceSubtitle: "主題、語言、字型,以及對話周圍的介面元素。",
+ conversationSubtitle: "轉錄如何呈現,以及輸入框如何處理你輸入的內容。",
+ agentBehaviorSubtitle: "新對話的起始設定,以及智慧體執行時可以做什麼。",
+ systemSubtitle: "網路、儲存、電源,以及本機的視窗行為。",
+ shortcutsSubtitle: "重新綁定任何操作,或讓它保持未綁定。",
+ aboutSubtitle: "版本、更新,以及出問題時該去哪裡查。",
shortcuts: "快捷鍵",
instructions: "指令",
instructionsGlobal: "全域性指令",
@@ -3040,7 +3057,7 @@ sklm: {
PROVIDER_ERROR: "AI 服務返回了錯誤。",
NETWORK_ERROR: "無法連線 AI 服務,請檢查網路或介面地址。",
providerCertificate: "無法驗證 AI 服務的憑證。請檢查憑證、系統時間,以及安全軟體或代理使用的受信任根憑證。更新信任設定後請重新啟動應用程式。",
- NETWORK_POLICY_BLOCKED: "應用程式的地址校驗阻止了該請求。若使用代理或 VPN,請檢查 設定 → 常規 → 網路。",
+ NETWORK_POLICY_BLOCKED: "應用程式的地址校驗阻止了該請求。若使用代理或 VPN,請檢查 設定 → 系統 → 網路。",
TIMEOUT: "請求 AI 服務超時。",
STREAM_FAILED: "回覆中斷了。",
EMPTY_MODEL_RESPONSE: "模型連續兩輪都沒有輸出內容。可以重試,或換一種說法。",
diff --git a/packages/i18n/test/catalogs.test.mjs b/packages/i18n/test/catalogs.test.mjs
index 50048b556..cec2def7a 100644
--- a/packages/i18n/test/catalogs.test.mjs
+++ b/packages/i18n/test/catalogs.test.mjs
@@ -135,50 +135,73 @@ test("creation-phase delegation copy is catalog-backed", () => {
test("settings rail labels stay concise and parallel across locales", () => {
const chinese = flattenCatalog(zhCN);
const keys = [
- "general",
- "ai",
+ "appearance",
+ "chat",
"shortcuts",
- "instructions",
+ "voice",
+ "behavior",
"models",
+ "instructions",
"skills",
"mcp",
"subagents",
"projects",
+ "system",
+ "sync",
+ "remoteHosts",
"info",
].map((key) => `settings.nav.${key}`);
assert.deepEqual(
keys.map((key) => english[key]),
[
- "General",
- "AI",
+ "Appearance",
+ "Conversation",
"Shortcuts",
- "Instructions",
+ "Voice",
+ "Behavior",
"Models",
+ "Instructions",
"Skills",
"MCP",
"Subagents",
"Projects",
+ "System",
+ "Cloud sync",
+ "Remote hosts",
"Info",
],
);
assert.deepEqual(
keys.map((key) => chinese[key]),
[
- "常规",
- "AI",
+ "外观",
+ "对话",
"快捷键",
- "指令",
+ "语音",
+ "行为",
"模型",
+ "指令",
"技能",
"MCP",
"子智能体",
"项目",
+ "系统",
+ "云同步",
+ "远程主机",
"信息",
],
);
- assert.equal(english["settings.nav.import"], undefined);
- assert.equal(chinese["settings.nav.import"], undefined);
+ for (const [id, catalog] of Object.entries(catalogs)) {
+ const flat = flattenCatalog(catalog);
+ for (const key of keys) {
+ assert.equal(typeof flat[key], "string", `${id} ${key}`);
+ assert.ok(flat[key].trim(), `${id} ${key} must not be blank`);
+ }
+ for (const retired of ["general", "ai", "import"]) {
+ assert.equal(flat[`settings.nav.${retired}`], undefined, `${id} ${retired}`);
+ }
+ }
assert.equal(english["settings.import"], undefined);
assert.equal(chinese["settings.import"], undefined);
assert.equal(english["settings.groupPreferences"], "Preferences");
diff --git a/scripts/e2e/settings-scroll.jsx b/scripts/e2e/settings-scroll.jsx
index ced005878..2adc1aa57 100644
--- a/scripts/e2e/settings-scroll.jsx
+++ b/scripts/e2e/settings-scroll.jsx
@@ -96,7 +96,7 @@ await i18n.use(initReactI18next).init({
},
interpolation: { escapeValue: false },
});
-useAppStore.setState({ settings, settingsTab: "ai", page: "settings" });
+useAppStore.setState({ settings, settingsTab: "chat", page: "settings" });
initLanguageSync();
const root = createRoot(document.getElementById("root"));
flushSync(() => root.render(<SettingsPage />));
@@ -218,7 +218,7 @@ async function exerciseUpdatePreference() {
"Manual mode must offer the release page for an available version",
);
- await select("AI");
+ await select("Conversation");
await select("Info");
await settle();
assert(trigger().textContent?.includes("Manual"), "Manual preference must survive leaving and reopening Info");
@@ -228,7 +228,7 @@ async function exerciseUpdatePreference() {
}
async function exerciseBrazilianPortuguese() {
- await select("General");
+ await select("Appearance");
const trigger = document.querySelector(".settings-language-trigger");
assert(trigger instanceof HTMLButtonElement, "Language picker trigger must render");
flushSync(() => trigger.click());
@@ -253,8 +253,8 @@ async function exerciseBrazilianPortuguese() {
assert(settings.language === "pt-BR", "Choosing Portuguese must persist pt-BR");
assert(useAppStore.getState().settings?.language === "pt-BR", "App settings must retain pt-BR");
assert(document.documentElement.lang === "pt-BR", "Document language must update to pt-BR");
- assert(navButton("Geral"), "Settings navigation must switch to Brazilian Portuguese");
- assert(!navButton("General"), "English navigation must be replaced after switching locales");
+ assert(navButton("Aparência"), "Settings navigation must switch to Brazilian Portuguese");
+ assert(!navButton("Appearance"), "English navigation must be replaced after switching locales");
const languageTitle = [...document.querySelectorAll(".settings-row-title")]
.find((node) => node.textContent?.trim() === "Idioma");
assert(languageTitle, "The language setting label must be translated");
@@ -263,7 +263,7 @@ async function exerciseBrazilianPortuguese() {
return { locale: i18n.language, language: settings.language, label: selectedLabel.textContent.trim() };
}
async function exerciseProxyDraftRestoration() {
- await select("General");
+ await select("System");
const urlInput = () => document.querySelector('input[aria-label="Proxy URL"]');
const input = urlInput();
assert(input instanceof HTMLInputElement, "Custom proxy URL field must render");
@@ -307,18 +307,18 @@ window.settingsScrollProbe = async () => {
await checkCloudSyncVisibility();
for (const theme of ["light", "dark"]) {
document.documentElement.dataset.theme = theme;
- await select("AI");
+ await select("Conversation");
const position = await scroll();
- await select("AI");
- assert(pane().scrollTop === position, "Re-selecting AI must retain scroll");
+ await select("Conversation");
+ assert(pane().scrollTop === position, "Re-selecting Conversation must retain scroll");
flushSync(() => useAppStore.setState({ settings: { ...settings, enterToSend: false } }));
await settle();
assert(pane().scrollTop === position, "Settings updates must retain scroll");
await select("Shortcuts");
assert(pane().scrollTop === 0, "AI → Shortcuts must start at top");
await scroll();
- await select("AI");
- assert(pane().scrollTop === 0, "Returning to AI must start at top");
+ await select("Conversation");
+ assert(pane().scrollTop === 0, "Returning to Conversation must start at top");
await scroll();
await select("Themes A");
assert(pane().scrollTop === 0, "Built-in → extension must start at top");
@@ -328,7 +328,7 @@ window.settingsScrollProbe = async () => {
await select("Themes B");
assert(pane().scrollTop === 0, "Extension → extension must start at top");
await scroll();
- await select("AI");
+ await select("Conversation");
assert(pane().scrollTop === 0, "Extension → unchanged built-in tab must start at top");
await select("Themes A");
await scroll();
@@ -340,7 +340,7 @@ window.settingsScrollProbe = async () => {
await scroll();
flushSync(() => {
useAppStore.getState().setSettingsAnchor("settings.enterToSend");
- useAppStore.getState().setSettingsTab("ai");
+ useAppStore.getState().setSettingsTab("chat");
});
assert(!document.querySelector(".plugin-scenic-theme-card"), "Search must leave the plugin destination");
const fromPlugin = document.querySelector(".settings-anchor-flash");
@@ -354,7 +354,7 @@ window.settingsScrollProbe = async () => {
await scroll();
flushSync(() => {
useAppStore.getState().setSettingsAnchor("settings.enterToSend");
- useAppStore.getState().setSettingsTab("ai");
+ useAppStore.getState().setSettingsTab("chat");
});
const target = document.querySelector(".settings-anchor-flash");
assert(target && pane().scrollTop > 0, "Search anchor must be positioned before paint");
@@ -381,7 +381,7 @@ window.settingsScrollProbe = async () => {
window.settingsSegmentProbe = async (language, fontScale) => {
settings = { ...settings, language };
- flushSync(() => useAppStore.setState({ settings, settingsTab: "ai" }));
+ flushSync(() => useAppStore.setState({ settings, settingsTab: "chat" }));
await i18n.changeLanguage(language);
document.documentElement.style.setProperty("--font-scale", String(fontScale));
await settle();
diff --git a/scripts/e2e/storage-settings.jsx b/scripts/e2e/storage-settings.jsx
index 95045f724..67e4ef84b 100644
--- a/scripts/e2e/storage-settings.jsx
+++ b/scripts/e2e/storage-settings.jsx
@@ -15,6 +15,7 @@ const baseline = {
};
let info = { ...baseline };
let chosen = "/new/PI-Desktop";
+let settingsReadError = true;
let readError = false;
let operationError = false;
let operationGate = null;
@@ -25,6 +26,10 @@ window.piDesktop = {
async invoke(channel, input) {
let data;
switch (channel) {
+ case IPC.invoke.settingsGet:
+ if (settingsReadError) return { ok: false, error: { code: "TEST", message: "settings unavailable" } };
+ data = { language: "en", theme: "light", defaultMode: "agent", enterToSend: true };
+ break;
case IPC.invoke.storageGet:
if (readError) return { ok: false, error: { code: "TEST", message: "storage unavailable" } };
data = info;
@@ -45,7 +50,7 @@ window.piDesktop = {
},
};
await i18n.use(initReactI18next).init({ lng: "en", fallbackLng: "en", interpolation: { escapeValue: false }, resources: Object.fromEntries(Object.entries(catalogs).map(([language, catalog]) => [language, { translation: catalog }])) });
-useAppStore.setState({ settingsTab: "general", settings: { language: "en", theme: "light", defaultMode: "agent", enterToSend: true }, version: null });
+useAppStore.setState({ settingsTab: "system", settings: null, version: null });
const root = createRoot(document.getElementById("root"));
let revision = 0;
const assert = (value, message) => { if (!value) throw new Error(message); };
@@ -66,6 +71,16 @@ async function mount(overrides = {}) {
window.storageSettingsProbe = async () => {
const checks = [];
await mount();
+ const recovery = document.querySelector(".settings-recovery");
+ assert(recovery?.textContent.includes(text("errors.HOST_UNAVAILABLE")), "System must explain a settings read failure");
+ const retry = recovery.querySelector("button");
+ assert(retry?.textContent.trim() === text("errors.action.retry"), "System must offer settings retry");
+ settingsReadError = false;
+ flushSync(() => retry.click());
+ await settled();
+ assert(!document.querySelector(".settings-recovery"), "Successful retry must replace the failure state");
+ assert(useAppStore.getState().settings?.theme === "light", "Retry must restore the settings snapshot");
+ checks.push("system settings failure and retry");
assert(scope().textContent.includes(baseline.dataPath), "Current data path must be visible");
assert(scope().textContent.includes("2 MiB"), "Reclaimable size must be visible");
chosen = null;