Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(desktop): 扩展设置搜索索引与导航 (#4973)
DavidShenXDcae5f1796b1d
diff --git a/apps/desktop/src/renderer/components/settings/AboutSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/AboutSection.settings-search.tsnew file mode 100644index 0000000000..a2b4b867fa--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/AboutSection.settings-search.ts@@ -0,0 +1,17 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'about',+ order: 16,+ entries: [+ { id: 'about', tab: 'about', targetId: 'settings-panel-about', titleKey: 'settings.tabs.about', sectionKey: 'settings.sections.about' },+ { id: 'settings.about.appVersionLabel', isVisible: ({ region }) => region === 'cn', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-appVersionLabel', titleKey: 'settings.about.appVersionLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.autoUpdateLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-autoUpdateLabel', titleKey: 'settings.about.autoUpdateLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.analyticsLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-analyticsLabel', titleKey: 'settings.about.analyticsLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.debugLogLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-debugLogLabel', titleKey: 'settings.about.debugLogLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.logsDirLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-logsDirLabel', titleKey: 'settings.about.logsDirLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.logUpload.crashAutoLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-logUpload-crashAutoLabel', titleKey: 'settings.about.logUpload.crashAutoLabel', sectionKey: 'settings.tabs.about' },+ { id: 'settings.about.logUpload.uploadLabel', fallbackTargetId: 'settings-panel-about', tab: 'about', targetId: 'settings-search-settings-about-logUpload-uploadLabel', titleKey: 'settings.about.logUpload.uploadLabel', sectionKey: 'settings.tabs.about' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/AboutSection.tsx b/apps/desktop/src/renderer/components/settings/AboutSection.tsxindex 4ed6b6544c..1b6cf8b46c 100644--- a/apps/desktop/src/renderer/components/settings/AboutSection.tsx+++ b/apps/desktop/src/renderer/components/settings/AboutSection.tsx@@ -240,7 +240,7 @@ export function AboutSection() {</div>{/* Info Card */}- <div+ <div id="settings-search-settings-about-appVersionLabel"className={cn('flex flex-col rounded-xl','bg-[var(--settings-theme-card-bg)]',@@ -434,7 +434,7 @@ export function AutoUpdateToggleRow() {return (<div className="flex flex-col gap-1.5 px-[18px] py-4"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-autoUpdateLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.autoUpdateLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -479,7 +479,7 @@ export function AutoUpdateToggleRow() {<div className="flex flex-col gap-1.5 px-[18px] py-4"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-autoUpdateLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.autoUpdateLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -555,7 +555,7 @@ function AnalyticsToggleRow() {<div className="flex flex-col gap-1.5 px-[18px] py-4"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-analyticsLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.analyticsLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -604,7 +604,7 @@ function DebugLogToggleRow() {return (<div className="flex flex-col gap-1.5 px-[18px] py-4"><div className="flex items-center justify-between gap-3">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-debugLogLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.debugLogLabel')}</span><Switch@@ -634,7 +634,7 @@ function OpenLogsRow() {return (<div className="flex items-center justify-between gap-3 px-[18px] py-4">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-logsDirLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.logsDirLabel')}</span><Button@@ -705,7 +705,7 @@ function CrashAutoUploadToggleRow() {<div className="flex flex-col gap-1.5 px-[18px] py-4"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-logUpload-crashAutoLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.logUpload.crashAutoLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -787,7 +787,7 @@ function UploadLogsRow() {文字块中间;与标签对齐才和同页其它「标签 + 按钮」行(日志目录 / 服务条款)读起来一致。 */}<div className="flex items-start justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-logUpload-uploadLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.logUpload.uploadLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">diff --git a/apps/desktop/src/renderer/components/settings/AgentIslandSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/AgentIslandSection.settings-search.tsnew file mode 100644index 0000000000..8945d30d41--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/AgentIslandSection.settings-search.ts@@ -0,0 +1,15 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'agent-island',+ order: 10,+ entries: [+ { id: 'agentIsland', tab: 'agent-island', targetId: 'settings-panel-agent-island', titleKey: 'settings.tabs.agentIsland', sectionKey: 'settings.sections.agentIsland' },+ { id: 'settings.agentIsland.enableLabel', fallbackTargetId: 'settings-panel-agent-island', tab: 'agent-island', targetId: 'settings-search-settings-agentIsland-enableLabel', titleKey: 'settings.agentIsland.enableLabel', sectionKey: 'settings.tabs.agentIsland', descriptionKey: 'settings.agentIsland.enableHint' },+ { id: 'settings.agentIsland.displayLabel', fallbackTargetId: 'settings-panel-agent-island', tab: 'agent-island', targetId: 'settings-search-settings-agentIsland-displayLabel', titleKey: 'settings.agentIsland.displayLabel', sectionKey: 'settings.tabs.agentIsland', descriptionKey: 'settings.agentIsland.displayHint' },+ { id: 'settings.agentIsland.skinLabel', fallbackTargetId: 'settings-panel-agent-island', tab: 'agent-island', targetId: 'settings-search-settings-agentIsland-skinLabel', titleKey: 'settings.agentIsland.skinLabel', sectionKey: 'settings.tabs.agentIsland', descriptionKey: 'settings.agentIsland.skinHint' },+ { id: 'settings.agentIsland.soundLabel', fallbackTargetId: 'settings-panel-agent-island', tab: 'agent-island', targetId: 'settings-search-settings-agentIsland-soundLabel', titleKey: 'settings.agentIsland.soundLabel', sectionKey: 'settings.tabs.agentIsland', descriptionKey: 'settings.agentIsland.soundHint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx b/apps/desktop/src/renderer/components/settings/AgentIslandSection.tsxindex 9c4f2fc827..0240dc4910 100644--- a/apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx+++ b/apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx@@ -273,7 +273,7 @@ export function AgentIslandSection() {<SettingsCard className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-agentIsland-enableLabel" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.agentIsland.enableLabel')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -292,7 +292,7 @@ export function AgentIslandSection() {<><SettingsCard className="flex flex-col gap-3"><div className="flex min-w-0 flex-col gap-1">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-agentIsland-displayLabel" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.agentIsland.displayLabel')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -337,7 +337,7 @@ export function AgentIslandSection() {<SettingsCard className="flex flex-col gap-4"><div className="flex min-w-0 flex-col gap-1">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-agentIsland-skinLabel" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.agentIsland.skinLabel')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -362,7 +362,7 @@ export function AgentIslandSection() {<SettingsCard className="flex flex-col gap-3"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-agentIsland-soundLabel" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.agentIsland.soundLabel')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">diff --git a/apps/desktop/src/renderer/components/settings/AgentResourceSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/AgentResourceSection.settings-search.tsnew file mode 100644index 0000000000..55fa77dd81--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/AgentResourceSection.settings-search.ts@@ -0,0 +1,14 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by AgentResourceSection. */+export default {+ id: 'AgentResourceSection',+ order: 30,+ entries: [+ { id: 'settings.agentResource.preset', fallbackTargetId: 'settings-agent-resource', tab: 'general', targetId: 'settings-search-settings-agentResource-preset', titleKey: 'settings.agentResource.preset', sectionKey: 'settings.sections.agentResource' },+ { id: 'settings.agentResource.maxConcurrent', fallbackTargetId: 'settings-agent-resource', tab: 'general', targetId: 'settings-search-settings-agentResource-maxConcurrent', titleKey: 'settings.agentResource.maxConcurrent', sectionKey: 'settings.sections.agentResource', descriptionKey: 'settings.agentResource.maxConcurrentHint' },+ { id: 'settings.agentResource.priority', fallbackTargetId: 'settings-agent-resource', tab: 'general', targetId: 'settings-search-settings-agentResource-priority', titleKey: 'settings.agentResource.priority', sectionKey: 'settings.sections.agentResource', descriptionKey: 'settings.agentResource.priorityHint' },+ { id: 'settings.agentResource.capThreads', fallbackTargetId: 'settings-agent-resource', tab: 'general', targetId: 'settings-search-settings-agentResource-capThreads', titleKey: 'settings.agentResource.capThreads', sectionKey: 'settings.sections.agentResource', descriptionKey: 'settings.agentResource.capThreadsHint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx b/apps/desktop/src/renderer/components/settings/AgentResourceSection.tsxindex c8e3d3dd53..cd710c6575 100644--- a/apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx+++ b/apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx@@ -232,7 +232,7 @@ export function AgentResourceSection() {才能像同卡其它行一样相对「标签 + 说明」整块垂直居中。 */}<div className={ROW_CLASS}><div className="flex min-w-0 flex-col gap-1">- <p className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <p id="settings-search-settings-agentResource-preset" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.agentResource.preset')}</p>{/* 四段提示全部常挂载、叠在同一个 grid 格里,只有当前档位那段可见(其余@@ -270,7 +270,7 @@ export function AgentResourceSection() {{/* 并发命令上限 */}<label className={ROW_CLASS}><span className="flex min-w-0 flex-col gap-1">- <span className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <span id="settings-search-settings-agentResource-maxConcurrent" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.agentResource.maxConcurrent')}</span><span className={ROW_HINT_CLASS}>{t('settings.agentResource.maxConcurrentHint')}</span>@@ -304,7 +304,7 @@ export function AgentResourceSection() {{/* 进程优先级 */}<div className={ROW_CLASS}><div className="flex min-w-0 flex-col gap-1">- <p className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <p id="settings-search-settings-agentResource-priority" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.agentResource.priority')}</p><p className={ROW_HINT_CLASS}>{t('settings.agentResource.priorityHint')}</p>@@ -326,7 +326,7 @@ export function AgentResourceSection() {{/* 工具链限核 */}<div className={ROW_CLASS}><div className="flex min-w-0 flex-col gap-1">- <p className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <p id="settings-search-settings-agentResource-capThreads" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.agentResource.capThreads')}</p><p className={ROW_HINT_CLASS}>{t('settings.agentResource.capThreadsHint')}</p>diff --git a/apps/desktop/src/renderer/components/settings/AppearanceSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/AppearanceSection.settings-search.tsnew file mode 100644index 0000000000..bec06ba0b2--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/AppearanceSection.settings-search.ts@@ -0,0 +1,20 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by AppearanceSection. */+export default {+ id: 'AppearanceSection',+ order: 30,+ entries: [+ { id: 'settings.appearance.modeLabel', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-modeLabel', titleKey: 'settings.appearance.modeLabel', sectionKey: 'settings.sections.appearance' },+ { id: 'settings.appearance.themeLabel', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-themeLabel', titleKey: 'settings.appearance.themeLabel', sectionKey: 'settings.sections.appearance' },+ { id: 'settings.appearance.localThemes.title', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-localThemes-title', titleKey: 'settings.appearance.localThemes.title', sectionKey: 'settings.sections.appearance' },+ { id: 'settings.appearance.font.uiFamily.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-font-uiFamily-label', titleKey: 'settings.appearance.font.uiFamily.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.font.uiFamily.description' },+ { id: 'settings.appearance.font.uiSize.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-font-uiSize-label', titleKey: 'settings.appearance.font.uiSize.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.font.uiSize.description' },+ { id: 'settings.appearance.font.codeFamily.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-font-codeFamily-label', titleKey: 'settings.appearance.font.codeFamily.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.font.codeFamily.description' },+ { id: 'settings.appearance.font.codeSize.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-font-codeSize-label', titleKey: 'settings.appearance.font.codeSize.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.font.codeSize.description' },+ { id: 'settings.appearance.sidebarCardMode.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-sidebarCardMode-label', titleKey: 'settings.appearance.sidebarCardMode.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.sidebarCardMode.hint' },+ { id: 'settings.appearance.sidebarMainListMode.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-sidebarMainListMode-label', titleKey: 'settings.appearance.sidebarMainListMode.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.sidebarMainListMode.hint' },+ { id: 'settings.appearance.ghostPanelRestore.label', fallbackTargetId: 'settings-search-target-general-appearance', tab: 'general', targetId: 'settings-search-settings-appearance-ghostPanelRestore-label', titleKey: 'settings.appearance.ghostPanelRestore.label', sectionKey: 'settings.sections.appearance', descriptionKey: 'settings.appearance.ghostPanelRestore.hint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/AppearanceSection.tsx b/apps/desktop/src/renderer/components/settings/AppearanceSection.tsxindex b867eef646..db346e80b2 100644--- a/apps/desktop/src/renderer/components/settings/AppearanceSection.tsx+++ b/apps/desktop/src/renderer/components/settings/AppearanceSection.tsx@@ -501,7 +501,7 @@ export function AppearanceSection() {</h2>{/* Theme card — rounded 12, Card bg, 1px Board, padding 20 */}- <div+ <div id="settings-search-settings-appearance-themeLabel"className={cn('flex flex-col gap-[14px] rounded-xl p-5','bg-[var(--settings-theme-card-bg)]',@@ -509,7 +509,7 @@ export function AppearanceSection() {)}>{/* Appearance mode */}- <p+ <p id="settings-search-settings-appearance-modeLabel"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -577,7 +577,7 @@ export function AppearanceSection() {/><div className="flex flex-col gap-2 pt-1">- <p+ <p id="settings-search-settings-appearance-localThemes-title"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -622,7 +622,7 @@ export function AppearanceSection() {) : null}</div>- <div+ <div id="settings-search-settings-appearance-font-uiFamily-label"className={cn('flex flex-col gap-[14px] rounded-xl p-5','bg-[var(--settings-theme-card-bg)]',@@ -646,7 +646,7 @@ export function AppearanceSection() {<div className="flex flex-col gap-3"><div className="flex items-start justify-between gap-3"><div className="min-w-0">- <p+ <p id="settings-search-settings-appearance-font-uiSize-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -708,7 +708,8 @@ export function AppearanceSection() {<div className="h-px bg-[var(--settings-input-border)]" />- <FontFamilyPicker+ <div id="settings-search-settings-appearance-font-codeFamily-label">+ <FontFamilyPickerlabel={t('settings.appearance.font.codeFamily.label')}description={t('settings.appearance.font.codeFamily.description')}ariaLabel={t('settings.appearance.font.codeFamily.aria')}@@ -719,14 +720,15 @@ export function AppearanceSection() {previewFallbackFamily="var(--app-font-code-default)"onChange={setCodeFamily}onReset={resetCodeFamily}- />+ />+ </div><div className="h-px bg-[var(--settings-input-border)]" /><div className="flex flex-col gap-3"><div className="flex items-start justify-between gap-3"><div className="min-w-0">- <p+ <p id="settings-search-settings-appearance-font-codeSize-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -798,7 +800,7 @@ export function AppearanceSection() {><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-appearance-sidebarCardMode-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -823,7 +825,7 @@ export function AppearanceSection() {<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-appearance-sidebarMainListMode-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -847,7 +849,7 @@ export function AppearanceSection() {<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-appearance-ghostPanelRestore-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>diff --git a/apps/desktop/src/renderer/components/settings/BillingSettings.settings-search.ts b/apps/desktop/src/renderer/components/settings/BillingSettings.settings-search.tsnew file mode 100644index 0000000000..e4f678fd5d--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/BillingSettings.settings-search.ts@@ -0,0 +1,10 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'billing',+ order: 3,+ entries: [+ { id: 'billing', tab: 'billing', targetId: 'settings-panel-billing', titleKey: 'settings.tabs.billing', sectionKey: 'settings.sections.billing' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.settings-search.tsnew file mode 100644index 0000000000..0382eaed10--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'builtin-tools',+ order: 8,+ entries: [+ { id: 'builtinTools', tab: 'builtin-tools', targetId: 'settings-panel-builtin-tools', titleKey: 'settings.tabs.builtinTools', sectionKey: 'settings.sections.mcpServers' },+ { id: 'settings.builtinTools.title', fallbackTargetId: 'settings-panel-builtin-tools', tab: 'builtin-tools', targetId: 'settings-search-settings-builtinTools-title', titleKey: 'settings.builtinTools.title', sectionKey: 'settings.tabs.builtinTools', descriptionKey: 'settings.builtinTools.description' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx b/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsxindex dc1f826a06..b672db7f3d 100644--- a/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx+++ b/apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx@@ -199,7 +199,7 @@ export function BuiltinToolsSection({ workingDir }: BuiltinToolsSectionProps) {<div className="flex flex-col gap-[14px]"><div className="flex items-start justify-between gap-3"><div className="flex flex-col gap-1 min-w-0">- <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">+ <h2 id="settings-search-settings-builtinTools-title" className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">{t('settings.builtinTools.title')}</h2><p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">diff --git a/apps/desktop/src/renderer/components/settings/CindyMakeSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/CindyMakeSection.settings-search.tsnew file mode 100644index 0000000000..16e4a089d7--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/CindyMakeSection.settings-search.ts@@ -0,0 +1,12 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'cindy-make',+ order: 14,+ entries: [+ { id: 'cindyMake', tab: 'cindy-make', targetId: 'settings-panel-cindy-make', titleKey: 'settings.tabs.cindyMake', sectionKey: 'settings.tabs.cindyMake' },+ { id: 'settings.cindyMake.source.title', fallbackTargetId: 'settings-panel-cindy-make', tab: 'cindy-make', targetId: 'settings-search-settings-cindyMake-source-title', titleKey: 'settings.cindyMake.source.title', sectionKey: 'settings.tabs.cindyMake', descriptionKey: 'settings.cindyMake.source.description' },+ { id: 'settings.cindyMake.syncBeforeBuild.title', fallbackTargetId: 'settings-panel-cindy-make', tab: 'cindy-make', targetId: 'settings-search-settings-cindyMake-syncBeforeBuild-title', titleKey: 'settings.cindyMake.syncBeforeBuild.title', sectionKey: 'settings.tabs.cindyMake', descriptionKey: 'settings.cindyMake.syncBeforeBuild.description' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/CindyMakeSection.tsx b/apps/desktop/src/renderer/components/settings/CindyMakeSection.tsxindex 3252e90eb8..f113fdcbc2 100644--- a/apps/desktop/src/renderer/components/settings/CindyMakeSection.tsx+++ b/apps/desktop/src/renderer/components/settings/CindyMakeSection.tsx@@ -387,7 +387,7 @@ export function CindyMakeSection() {</Button><div className="flex items-start justify-between gap-4 rounded-xl border border-[var(--settings-theme-card-border)] bg-[var(--settings-theme-card-bg)] p-5"><div className="min-w-0">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-cindyMake-syncBeforeBuild-title" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.cindyMake.syncBeforeBuild.title')}</p><p className="mt-1 text-12 leading-[1.45] text-[var(--settings-section-desc)]">@@ -536,7 +536,7 @@ function CindyMakeSourceStatusCard({.catch(() => toast.error(t('cindyMakeDoctor.failed')));};return (- <section+ <section id="settings-search-settings-cindyMake-source-title"className="min-w-0 text-14 text-[var(--text-primary)]"aria-label={t('settings.cindyMake.source.title')}>diff --git a/apps/desktop/src/renderer/components/settings/CollaborationSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/CollaborationSection.settings-search.tsnew file mode 100644index 0000000000..1ff70ed798--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/CollaborationSection.settings-search.ts@@ -0,0 +1,13 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by CollaborationSection. */+export default {+ id: 'CollaborationSection',+ order: 30,+ entries: [+ { id: 'settings.collaboration.workerSoftLimit', fallbackTargetId: 'settings-collaboration', tab: 'general', targetId: 'settings-search-settings-collaboration-workerSoftLimit', titleKey: 'settings.collaboration.workerSoftLimit', sectionKey: 'settings.sections.collaboration', descriptionKey: 'settings.collaboration.workerSoftLimitHint' },+ { id: 'settings.collaboration.workerHardLimit', fallbackTargetId: 'settings-collaboration', tab: 'general', targetId: 'settings-search-settings-collaboration-workerHardLimit', titleKey: 'settings.collaboration.workerHardLimit', sectionKey: 'settings.sections.collaboration', descriptionKey: 'settings.collaboration.workerHardLimitHint' },+ { id: 'settings.collaboration.idleRelease', fallbackTargetId: 'settings-collaboration', tab: 'general', targetId: 'settings-search-settings-collaboration-idleRelease', titleKey: 'settings.collaboration.idleRelease', sectionKey: 'settings.sections.collaboration', descriptionKey: 'settings.collaboration.idleReleaseHint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx b/apps/desktop/src/renderer/components/settings/CollaborationSection.tsxindex f37f50bc66..d09974008c 100644--- a/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx+++ b/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx@@ -97,7 +97,7 @@ export function CollaborationSection() {{/* Worker Soft Limit */}<label className={ROW_CLASS}><span className="flex min-w-0 flex-col gap-1">- <span className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <span id="settings-search-settings-collaboration-workerSoftLimit" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.collaboration.workerSoftLimit')}</span><span className={ROW_HINT_CLASS}>@@ -123,7 +123,7 @@ export function CollaborationSection() {{/* Worker Hard Limit */}<label className={ROW_CLASS}><span className="flex min-w-0 flex-col gap-1">- <span className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <span id="settings-search-settings-collaboration-workerHardLimit" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.collaboration.workerHardLimit')}</span><span className={ROW_HINT_CLASS}>@@ -152,7 +152,7 @@ export function CollaborationSection() {{/* Idle Release Minutes */}<label className={ROW_CLASS}><span className="flex min-w-0 flex-col gap-1">- <span className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>+ <span id="settings-search-settings-collaboration-idleRelease" className={ROW_LABEL_CLASS} style={{ letterSpacing: '0.12px' }}>{t('settings.collaboration.idleRelease')}</span><span className={ROW_HINT_CLASS}>diff --git a/apps/desktop/src/renderer/components/settings/ComputerUseSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/ComputerUseSection.settings-search.tsnew file mode 100644index 0000000000..9120feb61b--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/ComputerUseSection.settings-search.ts@@ -0,0 +1,18 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'computer-use',+ order: 9,+ entries: [+ { id: 'computerUse', tab: 'computer-use', targetId: 'settings-panel-computer-use', titleKey: 'settings.tabs.computerUse', sectionKey: 'settings.computerUse.title' },+ { id: 'settings.computerUse.browser.title', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-browser-title', titleKey: 'settings.computerUse.browser.title', sectionKey: 'settings.tabs.computerUse', descriptionKey: 'settings.computerUse.browser.description' },+ { id: 'settings.computerUse.directControl.title', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-directControl-title', titleKey: 'settings.computerUse.directControl.title', sectionKey: 'settings.tabs.computerUse', descriptionKey: 'settings.computerUse.directControl.description' },+ { id: 'settings.computerUse.android.title', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-android-title', titleKey: 'settings.computerUse.android.title', sectionKey: 'settings.tabs.computerUse', descriptionKey: 'settings.computerUse.android.description' },+ { id: 'settings.computerUse.android.adb.title', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-android-adb-title', titleKey: 'settings.computerUse.android.adb.title', sectionKey: 'settings.tabs.computerUse' },+ { id: 'settings.computerUse.directControl.permissions.title', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-directControl-permissions-title', titleKey: 'settings.computerUse.directControl.permissions.title', sectionKey: 'settings.tabs.computerUse', isVisible: ({ platform }) => platform === 'darwin' },+ { id: 'settings.computerUse.directControl.permissions.accessibilityLabel', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-directControl-permissions-accessibilityLabel', titleKey: 'settings.computerUse.directControl.permissions.accessibilityLabel', sectionKey: 'settings.tabs.computerUse', isVisible: ({ platform }) => platform === 'darwin' },+ { id: 'settings.computerUse.directControl.permissions.screenRecordingLabel', fallbackTargetId: 'settings-panel-computer-use', tab: 'computer-use', targetId: 'settings-search-settings-computerUse-directControl-permissions-screenRecordingLabel', titleKey: 'settings.computerUse.directControl.permissions.screenRecordingLabel', sectionKey: 'settings.tabs.computerUse', isVisible: ({ platform }) => platform === 'darwin' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx b/apps/desktop/src/renderer/components/settings/ComputerUseSection.tsxindex 1ba3dc13fa..faa315997f 100644--- a/apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx+++ b/apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx@@ -1305,7 +1305,7 @@ export function ComputerUseSection({<Globe size={16} className="text-[var(--settings-section-title)]" /></div><div className="flex min-w-0 flex-col gap-[8px]">- <p className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">+ <p id="settings-search-settings-computerUse-browser-title" className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">{t('settings.computerUse.browser.title')}</p><p className="truncate text-12 leading-none text-[var(--settings-section-desc)]">@@ -1403,7 +1403,7 @@ export function ComputerUseSection({<MonitorCog size={16} className="text-[var(--settings-section-title)]" /></div><div className="flex min-w-0 flex-col gap-[8px]">- <p className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">+ <p id="settings-search-settings-computerUse-directControl-title" className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">{t('settings.computerUse.directControl.title')}</p><p className="truncate text-12 leading-none text-[var(--settings-section-desc)]">@@ -1422,7 +1422,7 @@ export function ComputerUseSection({{window.electronAPI.platform === 'darwin' ? (<div className="border-t border-[var(--settings-theme-card-border)] px-4 py-4"><div className="flex items-center justify-between gap-3">- <p className="text-13 font-medium text-[var(--settings-section-title)]">+ <p id="settings-search-settings-computerUse-directControl-permissions-title" className="text-13 font-medium text-[var(--settings-section-title)]">{t('settings.computerUse.directControl.permissions.title')}</p>{computerInstallPending || computerPermissionPending ? (@@ -1448,7 +1448,7 @@ export function ComputerUseSection({)}</div>- <div className="mt-3 grid gap-2.5 sm:grid-cols-2">+ <div id="settings-search-settings-computerUse-directControl-permissions-accessibilityLabel" className="mt-3 grid gap-2.5 sm:grid-cols-2"><ComputerPermissionRowlabel={t('settings.computerUse.directControl.permissions.accessibilityLabel')}iconSrc={accessibilityPermissionIcon}@@ -1472,6 +1472,7 @@ export function ComputerUseSection({)}/>+ <div id="settings-search-settings-computerUse-directControl-permissions-screenRecordingLabel"><ComputerPermissionRowlabel={t('settings.computerUse.directControl.permissions.screenRecordingLabel')}iconSrc={screenRecordingPermissionIcon}@@ -1495,6 +1496,7 @@ export function ComputerUseSection({)}/>+ </div></div></div>) : null}@@ -1641,7 +1643,7 @@ export function ComputerUseSection({<Smartphone size={16} className="text-[var(--settings-section-title)]" /></div><div className="flex min-w-0 flex-col gap-[8px]">- <p className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">+ <p id="settings-search-settings-computerUse-android-title" className="truncate text-14 font-medium leading-none text-[var(--settings-section-title)]">{t('settings.computerUse.android.title')}</p><p className="truncate text-12 leading-none text-[var(--settings-section-desc)]">@@ -1807,7 +1809,7 @@ export function ComputerUseSection({) : null}<div className="flex flex-wrap items-center justify-between gap-3 border-t border-[var(--settings-theme-card-border)] px-4 py-[14px]"><div className="flex min-w-0 flex-col gap-1">- <p className="text-12 font-medium leading-[1.5] text-[var(--settings-section-title)]">+ <p id="settings-search-settings-computerUse-android-adb-title" className="text-12 font-medium leading-[1.5] text-[var(--settings-section-title)]">{t('settings.computerUse.android.adb.title')}</p><p className="min-w-0 break-all text-12 leading-[1.5] text-[var(--settings-section-desc)]">diff --git a/apps/desktop/src/renderer/components/settings/GeneralSettings.settings-search.ts b/apps/desktop/src/renderer/components/settings/GeneralSettings.settings-search.tsnew file mode 100644index 0000000000..d091c589fb--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/GeneralSettings.settings-search.ts@@ -0,0 +1,22 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'general',+ order: 0,+ entries: [+ { id: 'general', tab: 'general', targetId: 'settings-panel-general', titleKey: 'settings.tabs.general', sectionKey: 'settings.tabs.general' },+ { id: 'general.user', tab: 'general', targetId: 'settings-search-target-general-user', titleKey: 'settings.sections.user', sectionKey: 'settings.sections.user' },+ { id: 'general.appearance', tab: 'general', targetId: 'settings-search-target-general-appearance', titleKey: 'settings.sections.appearance', sectionKey: 'settings.sections.appearance' },+ { id: 'general.language', tab: 'general', targetId: 'settings-search-target-general-language', titleKey: 'settings.sections.language', sectionKey: 'settings.sections.language' },+ { id: 'general.notifications', tab: 'general', targetId: 'settings-notifications', titleKey: 'settings.sections.notifications', sectionKey: 'settings.sections.notifications' },+ { id: 'general.bots', tab: 'general', targetId: 'settings-bots', titleKey: 'settings.sections.bots', sectionKey: 'settings.sections.bots' },+ { id: 'general.windowBehavior', tab: 'general', targetId: 'settings-window-behavior', titleKey: 'settings.sections.windowBehavior', sectionKey: 'settings.sections.windowBehavior' },+ { id: 'general.composer', tab: 'general', targetId: 'settings-composer', titleKey: 'settings.sections.composer', sectionKey: 'settings.sections.composer' },+ { id: 'general.collaboration', tab: 'general', targetId: 'settings-collaboration', titleKey: 'settings.sections.collaboration', sectionKey: 'settings.sections.collaboration', aliases: ['collaboration'] },+ { id: 'general.agentResource', tab: 'general', targetId: 'settings-agent-resource', titleKey: 'settings.sections.agentResource', sectionKey: 'settings.sections.agentResource' },+ { id: 'general.gitSafety', tab: 'general', targetId: 'settings-search-target-general-git-safety', titleKey: 'settings.sections.gitSafety', sectionKey: 'settings.sections.gitSafety' },+ { id: 'general.experimental', tab: 'general', targetId: 'settings-search-target-general-experimental', titleKey: 'settings.sections.experimental', sectionKey: 'settings.sections.experimental' },+ { id: 'general.piExtensions', tab: 'general', targetId: 'settings-pi-extensions', titleKey: 'settings.piPackages.entryTitle', sectionKey: 'settings.piPackages.entryTitle' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/GitSafetySection.settings-search.ts b/apps/desktop/src/renderer/components/settings/GitSafetySection.settings-search.tsnew file mode 100644index 0000000000..b68a5e2abb--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/GitSafetySection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by GitSafetySection. */+export default {+ id: 'GitSafetySection',+ order: 30,+ entries: [+ { id: 'settings.gitSafety.autoSnapshotTitle', fallbackTargetId: 'settings-search-target-general-git-safety', tab: 'general', targetId: 'settings-search-settings-gitSafety-autoSnapshotTitle', titleKey: 'settings.gitSafety.autoSnapshotTitle', sectionKey: 'settings.sections.gitSafety' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/GitSafetySection.tsx b/apps/desktop/src/renderer/components/settings/GitSafetySection.tsxindex 7e822d9a52..4d0538cb1b 100644--- a/apps/desktop/src/renderer/components/settings/GitSafetySection.tsx+++ b/apps/desktop/src/renderer/components/settings/GitSafetySection.tsx@@ -51,7 +51,7 @@ export function GitSafetySection() {><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <p className="text-13 font-medium text-[var(--settings-section-sublabel)]">+ <p id="settings-search-settings-gitSafety-autoSnapshotTitle" className="text-13 font-medium text-[var(--settings-section-sublabel)]">{t('settings.gitSafety.autoSnapshotTitle')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">{t('settings.gitSafety.description')}</p>diff --git a/apps/desktop/src/renderer/components/settings/HelpSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/HelpSection.settings-search.tsnew file mode 100644index 0000000000..bac2f233b5--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/HelpSection.settings-search.ts@@ -0,0 +1,15 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'help',+ order: 15,+ entries: [+ { id: 'help', tab: 'help', targetId: 'settings-panel-help', titleKey: 'settings.tabs.help', sectionKey: 'settings.sections.help' },+ { id: 'settings.help.gettingStarted.title', fallbackTargetId: 'settings-panel-help', tab: 'help', targetId: 'settings-search-settings-help-gettingStarted-title', titleKey: 'settings.help.gettingStarted.title', sectionKey: 'settings.tabs.help' },+ { id: 'settings.help.workflows.title', fallbackTargetId: 'settings-panel-help', tab: 'help', targetId: 'settings-search-settings-help-workflows-title', titleKey: 'settings.help.workflows.title', sectionKey: 'settings.tabs.help', descriptionKey: 'settings.help.workflows.description' },+ { id: 'settings.help.recommendedWays.title', fallbackTargetId: 'settings-panel-help', tab: 'help', targetId: 'settings-search-settings-help-recommendedWays-title', titleKey: 'settings.help.recommendedWays.title', sectionKey: 'settings.tabs.help', descriptionKey: 'settings.help.recommendedWays.description' },+ { id: 'settings.help.qnaTitle', fallbackTargetId: 'settings-panel-help', tab: 'help', targetId: 'settings-search-settings-help-qnaTitle', titleKey: 'settings.help.qnaTitle', sectionKey: 'settings.tabs.help' },+ { id: 'settings.help.linuxUpdates.title', fallbackTargetId: 'settings-panel-help', tab: 'help', targetId: 'settings-search-settings-help-linuxUpdates-title', titleKey: 'settings.help.linuxUpdates.title', sectionKey: 'settings.tabs.help', descriptionKey: 'settings.help.linuxUpdates.description', isVisible: ({ platform }) => platform === 'linux' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/HelpSection.tsx b/apps/desktop/src/renderer/components/settings/HelpSection.tsxindex 2b3d191438..e0d475b337 100644--- a/apps/desktop/src/renderer/components/settings/HelpSection.tsx+++ b/apps/desktop/src/renderer/components/settings/HelpSection.tsx@@ -36,7 +36,7 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {<div className="flex items-start gap-3"><Sparkles size={16} className="mt-0.5 shrink-0 text-[var(--settings-section-title)]" /><div className="min-w-0">- <div className={sectionTitleClass}>{t('settings.help.gettingStarted.title')}</div>+ <div id="settings-search-settings-help-gettingStarted-title" className={sectionTitleClass}>{t('settings.help.gettingStarted.title')}</div><ol className="mt-2 list-decimal space-y-1.5 pl-4 text-13 leading-[1.6] text-[var(--settings-section-title)]"><li>{t('settings.help.gettingStarted.step1')}</li><li>{t('settings.help.gettingStarted.step2')}</li>@@ -50,7 +50,7 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {<div className="flex items-start gap-3"><GitBranch size={16} className="mt-0.5 shrink-0 text-[var(--settings-section-title)]" /><div className="min-w-0">- <div className={sectionTitleClass}>{t('settings.help.workflows.title')}</div>+ <div id="settings-search-settings-help-workflows-title" className={sectionTitleClass}>{t('settings.help.workflows.title')}</div><p className={sectionDescClass}>{t('settings.help.workflows.description')}</p><ul className="mt-2 space-y-1.5 text-13 leading-[1.6] text-[var(--settings-section-title)]"><li>{t('settings.help.workflows.item1')}</li>@@ -65,7 +65,7 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {<div className="flex items-start gap-3"><MessageSquareText size={16} className="mt-0.5 shrink-0 text-[var(--settings-section-title)]" /><div className="min-w-0">- <div className={sectionTitleClass}>{t('settings.help.recommendedWays.title')}</div>+ <div id="settings-search-settings-help-recommendedWays-title" className={sectionTitleClass}>{t('settings.help.recommendedWays.title')}</div><p className={sectionDescClass}>{t('settings.help.recommendedWays.description')}</p><ul className="mt-2 space-y-1.5 text-13 leading-[1.6] text-[var(--settings-section-title)]"><li>{t('settings.help.recommendedWays.item1')}</li>@@ -81,7 +81,7 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {<div className="flex items-start gap-3"><Download size={16} className="mt-0.5 shrink-0 text-[var(--settings-section-title)]" /><div className="min-w-0">- <div className={sectionTitleClass}>{t('settings.help.linuxUpdates.title')}</div>+ <div id="settings-search-settings-help-linuxUpdates-title" className={sectionTitleClass}>{t('settings.help.linuxUpdates.title')}</div><p className={sectionDescClass}>{t('settings.help.linuxUpdates.description')}</p><ul className="mt-2 space-y-1.5 text-13 leading-[1.6] text-[var(--settings-section-title)]"><li>{t('settings.help.linuxUpdates.item1')}</li>@@ -96,7 +96,7 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {<div className={cardClass}><div className="flex items-center justify-between gap-3"><div className="min-w-0">- <div className={sectionTitleClass}>{t('settings.help.qnaTitle')}</div>+ <div id="settings-search-settings-help-qnaTitle" className={sectionTitleClass}>{t('settings.help.qnaTitle')}</div><p className={sectionDescClass}>{t('settings.help.qnaDescription')}</p></div><Buttondiff --git a/apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx b/apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsxindex df0fbc5ad7..83a747a36f 100644--- a/apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx+++ b/apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx@@ -36,7 +36,7 @@ import { Button } from '@/components/ui/button';* 颜色全部走主题 token; 状态徽章沿用「个人」栏的 --settings-badge-* 语义色。*/-import { useCallback, useEffect, useRef, useState, type KeyboardEvent } from 'react';+import { useCallback, useEffect, useLayoutEffect, useRef, useState, type KeyboardEvent } from 'react';import { useTranslation } from 'react-i18next';import { Check, ChevronDown, Plus, Trash2 } from 'lucide-react';@@ -69,6 +69,7 @@ import {type NeutralCardProvider = 'telegram' | 'x';import { useHookWorkspacePrefs, WorkspacePrefsEditor } from './HookWorkspacePrefsEditor';import { ImChannelSettingsCard } from './ImChannelSettingsCard';+import { useSettingsSearchNavigation } from './SettingsSearchNavigation';import {TelegramBehaviorSettings,TelegramGroupActivationSettings,@@ -456,6 +457,7 @@ export function workspaceRowsToMap(export function HookConnectionsSection() {const { t } = useTranslation();+ const { entry, activation } = useSettingsSearchNavigation();const [hook, setHook] = useState<SlackHookView | null>(null);/** 工作目录行的本地编辑态(别名输入中不被状态推送打断, blur 时提交)。 */const [rows, setRows] = useState<Array<{ alias: string; dir: string }>>([]);@@ -466,7 +468,13 @@ export function HookConnectionsSection() {* 全收起 —— 收起行自带状态徽章与绑定摘要。打开渠道开关时自动展开对应卡,* 让授权进度与兜底动作(复制链接 / 安装引导)立即可见。*/- const [expandedCard, setExpandedCard] = useState<CindyImCard | null>(null);+ const targetCard = (['slack', 'telegram', 'x'] as const).find(+ (card) => entry?.targetId === 'cindy-im-' + card,+ ) ?? null;+ const [expandedCard, setExpandedCard] = useState<CindyImCard | null>(targetCard);+ useLayoutEffect(() => {+ if (targetCard) setExpandedCard(targetCard);+ }, [targetCard, activation]);const [slackAuthActionPending, setSlackAuthActionPending] = useState(false);const slackAuthActionInFlightRef = useRef(false);const toggleCard = (card: CindyImCard) =>diff --git a/apps/desktop/src/renderer/components/settings/ImBotSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/ImBotSection.settings-search.tsnew file mode 100644index 0000000000..2b000ccf35--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/ImBotSection.settings-search.ts@@ -0,0 +1,21 @@+import { showCindyGroup, showDiscordBot, showTelegramBot } from './imBotVisibility';+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'im-bot',+ order: 12,+ entries: [+ { id: 'imBot', tab: 'im-bot', targetId: 'settings-panel-im-bot', titleKey: 'settings.tabs.imBot', sectionKey: 'settings.sections.imBot' },+ { id: 'imBot.cindy', isVisible: showCindyGroup, tab: 'im-bot', targetId: 'im-bot-group-cindy', titleKey: 'settings.imBot.groups.cindy', sectionKey: 'settings.sections.imBot', aliases: ['Cindy', 'official bot', '官方机器人'] },+ { id: 'imBot.cindy.slack', isVisible: (identity) => identity.mode === 'cloud' && showCindyGroup(identity), fallbackTargetId: 'im-bot-group-cindy', tab: 'im-bot', targetId: 'cindy-im-slack', titleKey: 'settings.remoteControl.sections.hook', sectionKey: 'settings.imBot.groups.cindy', aliases: ['Slack', 'Slack bot', 'IM'] },+ { id: 'imBot.cindy.telegram', isVisible: (identity) => identity.mode === 'cloud' && showCindyGroup(identity), fallbackTargetId: 'im-bot-group-cindy', tab: 'im-bot', targetId: 'cindy-im-telegram', titleKey: 'settings.tina.prefs.providerTelegram', sectionKey: 'settings.imBot.groups.cindy', descriptionKey: 'settings.remoteControl.hook.telegram.description', aliases: ['Telegram', 'Telegram bot'] },+ { id: 'imBot.cindy.x', isVisible: (identity) => identity.mode === 'cloud' && showCindyGroup(identity), fallbackTargetId: 'im-bot-group-cindy', tab: 'im-bot', targetId: 'cindy-im-x', titleKey: 'settings.tina.prefs.providerX', sectionKey: 'settings.imBot.groups.cindy', descriptionKey: 'settings.remoteControl.hook.x.description', aliases: ['X', 'Twitter'] },+ { id: 'imBot.wechat', tab: 'im-bot', targetId: 'personal-im-wechat', titleKey: 'settings.wechatBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['WeChat', '微信', '个人微信'] },+ { id: 'imBot.wecom', tab: 'im-bot', targetId: 'personal-im-wecom', titleKey: 'settings.wecomBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['WeCom', '企业微信', '企业微信机器人'] },+ { id: 'imBot.feishu', tab: 'im-bot', targetId: 'personal-im-feishu', titleKey: 'settings.feishuBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['Feishu', '飞书', '飞书机器人'] },+ { id: 'imBot.dingtalk', tab: 'im-bot', targetId: 'personal-im-dingtalk', titleKey: 'settings.dingtalkBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['DingTalk', '钉钉', '钉钉机器人'] },+ { id: 'imBot.discord', isVisible: showDiscordBot, tab: 'im-bot', targetId: 'personal-im-discord', titleKey: 'settings.discordBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['Discord', 'Discord bot'] },+ { id: 'imBot.telegram', isVisible: showTelegramBot, tab: 'im-bot', targetId: 'personal-im-telegram', titleKey: 'settings.telegramBot.title', sectionKey: 'settings.imBot.groups.personal', aliases: ['Telegram', 'Telegram bot'] },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/ImBotSection.tsx b/apps/desktop/src/renderer/components/settings/ImBotSection.tsxindex bc2bbba452..5bb0df94ba 100644--- a/apps/desktop/src/renderer/components/settings/ImBotSection.tsx+++ b/apps/desktop/src/renderer/components/settings/ImBotSection.tsx@@ -19,8 +19,9 @@*/import { Lightbulb } from 'lucide-react';-import { useEffect, useRef, useState } from 'react';+import { useEffect, useLayoutEffect, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';+import { useSettingsSearchNavigation } from './SettingsSearchNavigation';import { useAuth } from '@/contexts/AuthContext';import { CURRENT_CINDY_REGION } from '../../../shared/brandRegion';@@ -72,14 +73,22 @@ function PersonalGroupContent({showDiscord,showLark,showTelegram,+ targetChannel,+ activation,}: {showDiscord: boolean;showLark: boolean;showTelegram: boolean;+ targetChannel: 'wechat' | 'wecom' | 'feishu' | 'discord' | 'telegram' | 'dingtalk' | null;+ activation: number;}) {const [expandedChannel, setExpandedChannel] = useState<'wechat' | 'wecom' | 'feishu' | 'discord' | 'telegram' | 'dingtalk' | null- >(null);+ >(targetChannel);++ useLayoutEffect(() => {+ if (targetChannel) setExpandedChannel(targetChannel);+ }, [targetChannel, activation]);const toggle = (channel: 'wechat' | 'wecom' | 'feishu' | 'discord' | 'telegram' | 'dingtalk') => {setExpandedChannel((current) => (current === channel ? null : channel));@@ -117,6 +126,7 @@ function PersonalGroupContent({export function ImBotSection({ targetGroup }: { targetGroup: ImBotSettingsGroup | null }) {const { t } = useTranslation();const { mode, dataOwnerId, user } = useAuth();+ const { entry, activation } = useSettingsSearchNavigation();const identity: ImBotIdentity = {region: CURRENT_CINDY_REGION,mode,@@ -126,6 +136,8 @@ export function ImBotSection({ targetGroup }: { targetGroup: ImBotSettingsGroupconst discordVisible = showDiscordBot(identity);const larkVisible = showLarkBot(identity);const telegramVisible = showTelegramBot(identity);+ const targetChannel = (['wechat', 'wecom', 'feishu', 'discord', 'telegram', 'dingtalk'] as const)+ .find((channel) => entry?.targetId === 'personal-im-' + channel) ?? null;const cindySectionRef = useRef<HTMLElement | null>(null);const personalSectionRef = useRef<HTMLElement | null>(null);const effectiveTargetGroup = targetGroup@@ -195,6 +207,8 @@ export function ImBotSection({ targetGroup }: { targetGroup: ImBotSettingsGroupshowDiscord={discordVisible}showLark={larkVisible}showTelegram={telegramVisible}+ targetChannel={targetChannel}+ activation={activation}/></section></div>diff --git a/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.settings-search.tsnew file mode 100644index 0000000000..0a29bd32f1--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'shortcuts',+ order: 7,+ entries: [+ { id: 'shortcuts', tab: 'shortcuts', targetId: 'settings-panel-shortcuts', titleKey: 'settings.tabs.shortcuts', sectionKey: 'settings.sections.shortcuts' },+ { id: 'settings.shortcuts.accessories.title', fallbackTargetId: 'settings-panel-shortcuts', tab: 'shortcuts', targetId: 'settings-search-settings-shortcuts-accessories-title', titleKey: 'settings.shortcuts.accessories.title', sectionKey: 'settings.tabs.shortcuts', descriptionKey: 'settings.shortcuts.accessories.description' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx b/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsxindex 36a2115b77..7a9cc78ddf 100644--- a/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx+++ b/apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx@@ -93,7 +93,7 @@ function AccessoriesEntry({ onOpen }: { onOpen(): void }) {<Package size={18} aria-hidden="true" /></span><span className="flex min-w-0 flex-1 flex-col gap-1">- <span className="truncate text-13 font-medium text-[var(--text-primary)]">+ <span id="settings-search-settings-shortcuts-accessories-title" className="truncate text-13 font-medium text-[var(--text-primary)]">{t('settings.shortcuts.accessories.title')}</span><span className="text-12 leading-[1.4] text-[var(--text-secondary)]">diff --git a/apps/desktop/src/renderer/components/settings/NotificationSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/NotificationSection.settings-search.tsnew file mode 100644index 0000000000..db4002facb--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/NotificationSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by NotificationSection. */+export default {+ id: 'NotificationSection',+ order: 30,+ entries: [+ { id: 'settings.notifications.sessionDoneLabel', fallbackTargetId: 'settings-notifications', tab: 'general', targetId: 'settings-search-settings-notifications-sessionDoneLabel', titleKey: 'settings.notifications.sessionDoneLabel', sectionKey: 'settings.sections.notifications', descriptionKey: 'settings.notifications.sessionDoneHint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/NotificationSection.tsx b/apps/desktop/src/renderer/components/settings/NotificationSection.tsxindex fec97ec67d..2d3be31bbb 100644--- a/apps/desktop/src/renderer/components/settings/NotificationSection.tsx+++ b/apps/desktop/src/renderer/components/settings/NotificationSection.tsx@@ -33,7 +33,7 @@ export function NotificationSection() {)}><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-notifications-sessionDoneLabel"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>diff --git a/apps/desktop/src/renderer/components/settings/PersonalizationDetails.settings-search.ts b/apps/desktop/src/renderer/components/settings/PersonalizationDetails.settings-search.tsnew file mode 100644index 0000000000..8eba3a02b4--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/PersonalizationDetails.settings-search.ts@@ -0,0 +1,26 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search metadata for cards rendered inside the long settings pages. */+export default {+ id: 'personalization-details',+ order: 31,+ entries: [+ { id: 'settings.composer.sendShortcut.label', fallbackTargetId: 'settings-composer', tab: 'general', targetId: 'settings-composer', titleKey: 'settings.composer.sendShortcut.label', sectionKey: 'settings.sections.composer', descriptionKey: 'settings.composer.sendShortcut.hint', aliases: ['send shortcut', 'enter to send', '发送快捷键'] },+ { id: 'settings.memory.maker.label', fallbackTargetId: 'settings-search-target-personalization-memory', tab: 'personalization', targetId: 'settings-search-target-personalization-memory', titleKey: 'settings.memory.maker.label', sectionKey: 'settings.sections.memory', descriptionKey: 'settings.memory.maker.description', aliases: ['maker memory', '记忆'] },+ { id: 'settings.memory.agents.claude-code.label', fallbackTargetId: 'settings-search-target-personalization-memory', tab: 'personalization', targetId: 'settings-search-target-personalization-memory', titleKey: 'settings.memory.agents.claude-code.label', sectionKey: 'settings.sections.memory' },+ { id: 'settings.memory.agents.codex.label', fallbackTargetId: 'settings-search-target-personalization-memory', tab: 'personalization', targetId: 'settings-search-target-personalization-memory', titleKey: 'settings.memory.agents.codex.label', sectionKey: 'settings.sections.memory' },+ { id: 'settings.memory.agents.pi.label', fallbackTargetId: 'settings-search-target-personalization-memory', tab: 'personalization', targetId: 'settings-search-target-personalization-memory', titleKey: 'settings.memory.agents.pi.label', sectionKey: 'settings.sections.memory' },+ { id: 'settings.auxiliaryModels.title', fallbackTargetId: 'settings-search-target-personalization-auxiliary-models', tab: 'personalization', targetId: 'settings-search-target-personalization-auxiliary-models', titleKey: 'settings.auxiliaryModels.title', sectionKey: 'settings.sections.auxiliaryModels', descriptionKey: 'settings.auxiliaryModels.description', aliases: ['auxiliary model', '辅助模型'] },+ { id: 'settings.auxiliaryModels.preferred.label', fallbackTargetId: 'settings-search-target-personalization-auxiliary-models', tab: 'personalization', targetId: 'settings-search-target-personalization-auxiliary-models', titleKey: 'settings.auxiliaryModels.preferred.label', sectionKey: 'settings.sections.auxiliaryModels' },+ { id: 'settings.auxiliaryModels.fallback1.label', fallbackTargetId: 'settings-search-target-personalization-auxiliary-models', tab: 'personalization', targetId: 'settings-search-target-personalization-auxiliary-models', titleKey: 'settings.auxiliaryModels.fallback1.label', sectionKey: 'settings.sections.auxiliaryModels' },+ { id: 'settings.auxiliaryModels.fallback2.label', fallbackTargetId: 'settings-search-target-personalization-auxiliary-models', tab: 'personalization', targetId: 'settings-search-target-personalization-auxiliary-models', titleKey: 'settings.auxiliaryModels.fallback2.label', sectionKey: 'settings.sections.auxiliaryModels' },+ { id: 'settings.compaction.title', fallbackTargetId: 'settings-search-target-personalization-compaction', tab: 'personalization', targetId: 'settings-search-target-personalization-compaction', titleKey: 'settings.compaction.title', sectionKey: 'settings.sections.compaction', aliases: ['compaction', '上下文压缩'] },+ { id: 'settings.compaction.card', fallbackTargetId: 'settings-search-target-personalization-compaction', tab: 'personalization', targetId: 'settings-search-target-personalization-compaction', titleKey: 'settings.compaction.card', sectionKey: 'settings.sections.compaction' },+ { id: 'settings.compaction.piCard', fallbackTargetId: 'settings-search-target-personalization-compaction', tab: 'personalization', targetId: 'settings-search-target-personalization-compaction', titleKey: 'settings.compaction.piCard', sectionKey: 'settings.sections.compaction' },+ { id: 'settings.terminalShell.card.label', fallbackTargetId: 'settings-search-target-personalization-terminal-shell', tab: 'personalization', targetId: 'settings-search-target-personalization-terminal-shell', titleKey: 'settings.terminalShell.card.label', sectionKey: 'settings.sections.terminalShell', aliases: ['terminal', 'shell', '终端'] },+ { id: 'settings.linkOpen.web.label', fallbackTargetId: 'settings-search-target-personalization-link-open', tab: 'personalization', targetId: 'settings-search-target-personalization-link-open', titleKey: 'settings.linkOpen.web.label', sectionKey: 'settings.sections.linkOpen', aliases: ['open in sidebar', '内置侧栏'] },+ { id: 'settings.linkOpen.local.label', fallbackTargetId: 'settings-search-target-personalization-link-open', tab: 'personalization', targetId: 'settings-search-target-personalization-link-open', titleKey: 'settings.linkOpen.local.label', sectionKey: 'settings.sections.linkOpen', aliases: ['open externally', '系统浏览器'] },+ { id: 'settings.streamFade.label', fallbackTargetId: 'settings-search-target-personalization-stream-fade', tab: 'personalization', targetId: 'settings-search-target-personalization-stream-fade', titleKey: 'settings.streamFade.label', sectionKey: 'settings.sections.streamFade', aliases: ['fade in', '流式淡入'] },+ { id: 'settings.compatMode.title', fallbackTargetId: 'settings-search-target-personalization-tips', tab: 'personalization', targetId: 'settings-search-target-personalization-tips', titleKey: 'settings.compatMode.title', sectionKey: 'settings.sections.compatMode' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/PersonalizationSettings.settings-search.ts b/apps/desktop/src/renderer/components/settings/PersonalizationSettings.settings-search.tsnew file mode 100644index 0000000000..6965abe9b2--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/PersonalizationSettings.settings-search.ts@@ -0,0 +1,21 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'personalization',+ order: 1,+ entries: [+ { id: 'personalization', tab: 'personalization', targetId: 'settings-panel-personalization', titleKey: 'settings.tabs.personalization', sectionKey: 'settings.tabs.personalization' },+ { id: 'personalization.userPrompt', tab: 'personalization', targetId: 'settings-search-target-personalization-user-prompt', titleKey: 'settings.sections.personalization', sectionKey: 'settings.sections.personalization', aliases: ['prompt', 'instructions', '提示词', '指令'] },+ { id: 'personalization.memory', tab: 'personalization', targetId: 'settings-search-target-personalization-memory', titleKey: 'settings.sections.memory', sectionKey: 'settings.sections.memory', aliases: ['memories', '记忆'] },+ { id: 'personalization.subagents', tab: 'personalization', targetId: 'settings-search-target-personalization-subagents', titleKey: 'settings.sections.subagentModels', sectionKey: 'settings.sections.subagentModels' },+ { id: 'personalization.auxiliaryModels', tab: 'personalization', targetId: 'settings-search-target-personalization-auxiliary-models', titleKey: 'settings.sections.auxiliaryModels', sectionKey: 'settings.sections.auxiliaryModels' },+ { id: 'personalization.visionBridge', tab: 'personalization', targetId: 'settings-search-target-personalization-vision-bridge', titleKey: 'settings.sections.visionBridge', sectionKey: 'settings.sections.visionBridge' },+ { id: 'personalization.contacts', tab: 'personalization', targetId: 'settings-contacts', titleKey: 'settings.contacts.title', sectionKey: 'settings.contacts.title' },+ { id: 'personalization.compaction', tab: 'personalization', targetId: 'settings-search-target-personalization-compaction', titleKey: 'settings.sections.compaction', sectionKey: 'settings.sections.compaction' },+ { id: 'personalization.terminalShell', tab: 'personalization', targetId: 'settings-search-target-personalization-terminal-shell', titleKey: 'settings.sections.terminalShell', sectionKey: 'settings.sections.terminalShell', aliases: ['terminal', 'shell', '终端'] },+ { id: 'personalization.linkOpen', tab: 'personalization', targetId: 'settings-search-target-personalization-link-open', titleKey: 'settings.sections.linkOpen', sectionKey: 'settings.sections.linkOpen' },+ { id: 'personalization.streamFade', tab: 'personalization', targetId: 'settings-search-target-personalization-stream-fade', titleKey: 'settings.sections.streamFade', sectionKey: 'settings.sections.streamFade' },+ { id: 'personalization.tips', tab: 'personalization', targetId: 'settings-search-target-personalization-tips', titleKey: 'settings.sections.compatMode', sectionKey: 'settings.sections.compatMode' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/ProvidersSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/ProvidersSection.settings-search.tsnew file mode 100644index 0000000000..9fc00c7094--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/ProvidersSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'providers',+ order: 5,+ entries: [+ { id: 'providers', tab: 'providers', targetId: 'settings-panel-providers', titleKey: 'settings.tabs.providers', sectionKey: 'settings.sections.providers' },+ { id: 'settings.providers.addProvider', fallbackTargetId: 'settings-panel-providers', tab: 'providers', targetId: 'settings-search-settings-providers-addProvider', titleKey: 'settings.providers.addProvider', sectionKey: 'settings.tabs.providers' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx b/apps/desktop/src/renderer/components/settings/ProvidersSection.tsxindex f55a655916..ffa83fd97f 100644--- a/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx+++ b/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx@@ -2890,7 +2890,7 @@ export function ProvidersSection() {</>)}</div>- <div+ <div id="settings-search-settings-providers-addProvider"className="border-t p-2"style={{ borderColor: 'var(--settings-theme-card-border)' }}>diff --git a/apps/desktop/src/renderer/components/settings/RemoteControlSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/RemoteControlSection.settings-search.tsnew file mode 100644index 0000000000..5c64cda01a--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/RemoteControlSection.settings-search.ts@@ -0,0 +1,12 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'remote-control',+ order: 2,+ entries: [+ { id: 'remoteControl.devices', isVisible: ({ mode }) => mode === 'cloud', tab: 'remote-control', targetId: 'settings-search-target-remote-devices', titleKey: 'settings.remoteControl.sections.myDevices', sectionKey: 'settings.sections.remoteControl', aliases: ['device link', 'devices', '设备互联', '我的设备'] },+ { id: 'remoteControl.ssh', tab: 'remote-control', targetId: 'settings-search-target-remote-ssh', titleKey: 'settings.remoteControl.sections.ssh', sectionKey: 'settings.sections.remoteControl', aliases: ['SSH', 'SSH host', 'SSH hosts', 'SSH主机', 'remote host', '远程主机', '主机'] },+ { id: 'remoteControl', tab: 'remote-control', targetId: 'settings-panel-remote-control', titleKey: 'settings.tabs.remoteControl', sectionKey: 'settings.sections.remoteControl' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx b/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsxindex 358b136f03..8167129299 100644--- a/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx+++ b/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx@@ -17,7 +17,7 @@* SSH 主机摘要由本组件自取轻量快照(list + onStatusChanged),不侵入 RemoteSection。*/-import { useCallback, useEffect, useRef, useState, type ReactNode } from 'react';+import { useCallback, useEffect, useLayoutEffect, useRef, useState, type ReactNode } from 'react';import { useTranslation } from 'react-i18next';import { useLocation, useNavigate } from 'react-router-dom';import { ChevronDown, ChevronRight } from 'lucide-react';@@ -27,6 +27,7 @@ import { MyDevicesPanel } from './MyDevicesPanel';import { RemoteDesktopSetting } from './RemoteDesktopSetting';import { RemoteSection } from './RemoteSection';import { useAuth } from '@/contexts/AuthContext';+import { useSettingsSearchNavigation } from './SettingsSearchNavigation';/** SSH 状态 → 摘要状态点的优先级:有已连接给绿,其次进行中给橙,再次失败给红,否则灰。 */const SSH_PROGRESS_STATUSES: ReadonlySet<RemoteHostSnapshot['status']> = new Set([@@ -36,6 +37,7 @@ const SSH_PROGRESS_STATUSES: ReadonlySet<RemoteHostSnapshot['status']> = new Set]);function CollapsibleSubSection({+ id,title,summary,dotColor,@@ -44,6 +46,7 @@ function CollapsibleSubSection({pinned,children,}: {+ id?: string;title: string;/** 收起态 header 右侧的状态摘要;null = 数据未就绪,整块不显示(避免闪一帧错误状态)。 */summary: string | null;@@ -55,7 +58,7 @@ function CollapsibleSubSection({children: ReactNode;}) {return (- <section className="flex flex-col gap-3">+ <section id={id} className="flex flex-col gap-3"><buttontype="button"onClick={onToggle}@@ -136,6 +139,7 @@ function sshSummary(}export function RemoteControlSection() {+ const { entry, activation } = useSettingsSearchNavigation();const { t } = useTranslation();const { mode } = useAuth();const location = useLocation();@@ -146,20 +150,27 @@ export function RemoteControlSection() {// 深链 ?section=devices 必须在首帧就是展开态:放到 effect 里会先画一帧收起,// 再把下方内容顶开一格。const [devicesOpen, setDevicesOpen] = useState(- () => new URLSearchParams(location.search).get('section') === 'devices',+ () => ['devices', 'remoteControl.devices'].includes(new URLSearchParams(location.search).get('section') ?? ''),+ );+ const [sshOpen, setSshOpen] = useState(+ () => new URLSearchParams(location.search).get('section') === 'remoteControl.ssh',);- const [sshOpen, setSshOpen] = useState(false);// SSH 主机轻量快照 —— 只为收起态摘要服务。RemoteSection 内部自管自己的一份;// 这里不外提它的状态是有意的(979 行组件不为一行摘要重构)。const [hosts, setHosts] = useState<RemoteHostSnapshot[] | null>(null);useEffect(() => {- if (new URLSearchParams(location.search).get('section') === 'devices') {+ if (['devices', 'remoteControl.devices'].includes(new URLSearchParams(location.search).get('section') ?? '')) {setDevicesOpen(true);}}, [location.search]);+ useLayoutEffect(() => {+ if (entry?.targetId === 'settings-search-target-remote-ssh') setSshOpen(true);+ if (entry?.targetId === 'settings-search-target-remote-devices') setDevicesOpen(true);+ }, [entry, activation]);+const collapseRequestedRef = useRef(false);const toggleDevices = useCallback(() => {setDevicesOpen((previous) => {@@ -177,7 +188,7 @@ export function RemoteControlSection() {collapseRequestedRef.current = false;const next = new URLSearchParams(location.search);- if (next.get('section') !== 'devices') return;+ if (!['devices', 'remoteControl.devices'].includes(next.get('section') ?? '')) return;next.delete('section');const search = next.toString();navigate(@@ -240,6 +251,7 @@ export function RemoteControlSection() {{deviceLinkAvailable ? (<><CollapsibleSubSection+ id="settings-search-target-remote-devices"title={t('settings.remoteControl.sections.myDevices')}summary={devSumText}dotColor={null}@@ -256,6 +268,7 @@ export function RemoteControlSection() {) : null}<CollapsibleSubSection+ id="settings-search-target-remote-ssh"title={t('settings.remoteControl.sections.ssh')}summary={sshSum?.text ?? null}dotColor={sshSum?.dot ?? null}diff --git a/apps/desktop/src/renderer/components/settings/SessionImportSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/SessionImportSection.settings-search.tsnew file mode 100644index 0000000000..bd94e06880--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SessionImportSection.settings-search.ts@@ -0,0 +1,10 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'import',+ order: 11,+ entries: [+ { id: 'import', tab: 'import', targetId: 'settings-panel-import', titleKey: 'settings.tabs.import', sectionKey: 'settings.sections.import' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.settings-search.ts b/apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.settings-search.tsnew file mode 100644index 0000000000..84025fb91f--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.settings-search.ts@@ -0,0 +1,10 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'ghosts',+ order: 13,+ entries: [+ { id: 'plugins', tab: 'ghosts', targetId: 'settings-panel-ghosts', titleKey: 'settings.tabs.ghosts', sectionKey: 'settings.tabs.ghosts' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/SettingsSearchBox.tsx b/apps/desktop/src/renderer/components/settings/SettingsSearchBox.tsxnew file mode 100644index 0000000000..fc7a5aca5e--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SettingsSearchBox.tsx@@ -0,0 +1,158 @@+import type { SettingsSearchContext } from './settingsSearchTypes';+import { useEffect, useMemo, useRef, useState } from 'react';+import { Search, X } from 'lucide-react';+import { useTranslation } from 'react-i18next';++import { Input } from '@/components/ui/input';+import { Tip } from '@/components/ui/tooltip';+import { cn } from '@/lib/utils';+import type { SettingsTab, VisibleSettingsTab } from '@/lib/tabLabels';+import {+ buildSettingsSearchDocuments,+ searchSettings,+ type SettingsSearchDocument,+} from './settingsSearchCatalog';++interface SettingsSearchBoxProps {+ visibleTabIds: readonly VisibleSettingsTab[];+ searchContext?: SettingsSearchContext;+ onSelect?: (result: { tab: SettingsTab; sectionId: string }) => void;+}++export function SettingsSearchBox({ visibleTabIds, searchContext, onSelect }: SettingsSearchBoxProps) {+ const { t } = useTranslation();+ const [query, setQuery] = useState('');+ const [activeIndex, setActiveIndex] = useState(0);+ const inputRef = useRef<HTMLInputElement>(null);+ const documents = useMemo(+ () => buildSettingsSearchDocuments(t, visibleTabIds, searchContext),+ [t, visibleTabIds, searchContext],+ );+ const results = useMemo(() => searchSettings(documents, query), [documents, query]);+ const hasQuery = query.trim().length > 0;+ const activeResult = results[activeIndex];++ useEffect(() => {+ setActiveIndex((index) => Math.min(index, Math.max(0, results.length - 1)));+ }, [results.length]);++ useEffect(() => {+ if (!activeResult) return;+ const element = document.getElementById(`settings-search-result-${activeResult.entry.id}`);+ element?.scrollIntoView?.({ block: 'nearest' });+ }, [activeResult]);++ const selectResult = (result: SettingsSearchDocument) => {+ onSelect?.({ tab: result.entry.tab, sectionId: result.entry.id });+ setQuery('');+ setActiveIndex(0);+ };++ return (+ <div className="mb-3 px-1">+ <div className="relative">+ <Search+ aria-hidden="true"+ size={15}+ className="pointer-events-none absolute left-3 top-1/2 z-[1] -translate-y-1/2 text-[var(--settings-section-sublabel)]"+ />+ <Input+ inputRef={inputRef}+ value={query}+ onChange={(value) => {+ setQuery(value);+ setActiveIndex(0);+ }}+ size="sm"+ surface="ivory"+ ariaLabel={t('settings.search.ariaLabel')}+ placeholder={t('settings.search.placeholder')}+ role="combobox"+ aria-expanded={hasQuery}+ aria-controls={hasQuery ? 'settings-search-results' : undefined}+ aria-autocomplete="list"+ aria-activedescendant={activeResult ? 'settings-search-result-' + activeResult.entry.id : undefined}+ inputClassName="pl-9 pr-9"+ onKeyDown={(event) => {+ if (!hasQuery) return;+ if (event.nativeEvent.isComposing) return;+ if (event.key === 'ArrowDown') {+ event.preventDefault();+ setActiveIndex((index) => (results.length ? (index + 1) % results.length : 0));+ } else if (event.key === 'ArrowUp') {+ event.preventDefault();+ setActiveIndex((index) => (results.length ? (index - 1 + results.length) % results.length : 0));+ } else if (event.key === 'Enter' && activeResult) {+ event.preventDefault();+ selectResult(activeResult);+ } else if (event.key === 'Escape') {+ event.preventDefault();+ setQuery('');+ setActiveIndex(0);+ }+ }}+ trailing={+ hasQuery ? (+ <Tip text={t('settings.search.clear')}>+ <button+ type="button"+ aria-label={t('settings.search.clear')}+ onClick={() => {+ setQuery('');+ setActiveIndex(0);+ inputRef.current?.focus();+ }}+ className="absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full text-[var(--settings-section-sublabel)] transition-colors hover:bg-[var(--settings-menu-bg-hover)] hover:text-[var(--settings-section-title)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)]"+ >+ <X size={14} aria-hidden="true" />+ </button>+ </Tip>+ ) : undefined+ }+ />+ </div>++ {hasQuery ? (+ <div+ id="settings-search-results"+ role="listbox"+ aria-label={t('settings.search.resultsLabel')}+ className="mt-1 max-h-[min(55vh,420px)] overflow-y-auto rounded-xl border border-[var(--border-default)] bg-[var(--surface-elevated)] p-1"+ >+ {results.length > 0 ? (+ results.map((result, index) => (+ <button+ key={result.entry.id}+ id={'settings-search-result-' + result.entry.id}+ type="button"+ role="option"+ aria-selected={index === activeIndex}+ onMouseEnter={() => setActiveIndex(index)}+ onClick={() => selectResult(result)}+ className={cn(+ 'flex w-full flex-col items-start rounded-lg px-2.5 py-2 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)]',+ index === activeIndex+ ? 'bg-[var(--settings-menu-bg-hover)]'+ : 'hover:bg-[var(--settings-menu-bg-hover)]',+ )}+ >+ <span className="w-full truncate text-12 font-medium text-[var(--settings-section-title)]">+ {result.title}+ </span>+ <span className="w-full truncate text-11 text-[var(--settings-section-sublabel)]">+ {result.entry.id === result.entry.tab+ ? result.category+ : `${result.category} · ${result.section}`}+ </span>+ </button>+ ))+ ) : (+ <div className="px-2.5 py-3 text-12 text-[var(--settings-section-sublabel)]">+ {t('settings.search.noResults')}+ </div>+ )}+ </div>+ ) : null}+ </div>+ );+}diff --git a/apps/desktop/src/renderer/components/settings/SettingsSearchNavigation.ts b/apps/desktop/src/renderer/components/settings/SettingsSearchNavigation.tsnew file mode 100644index 0000000000..585de003cb--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SettingsSearchNavigation.ts@@ -0,0 +1,12 @@+import { createContext, useContext } from 'react';+import type { SettingsSearchEntry } from './settingsSearchTypes';++/** Page-owned reveal handlers consume the same resolved target as the scroll lifecycle. */+export const SettingsSearchNavigationContext = createContext<{+ entry: SettingsSearchEntry | null;+ activation: number;+}>({ entry: null, activation: 0 });++export function useSettingsSearchNavigation() {+ return useContext(SettingsSearchNavigationContext);+}diff --git a/apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx b/apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsxindex 238480d964..a4e2272591 100644--- a/apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx+++ b/apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx@@ -1,3 +1,4 @@+import type { SettingsSearchContext } from './settingsSearchTypes';import type { ComponentType, ReactElement } from 'react';import { useTranslation } from 'react-i18next';import type { LucideProps } from 'lucide-react';@@ -23,6 +24,7 @@ import {import { cn } from '@/lib/utils';import { TAB_LABEL_KEY, type SettingsTab, type VisibleSettingsTab } from '@/lib/tabLabels';+import { SettingsSearchBox } from './SettingsSearchBox';const NAV_ITEM_CLASS = 'flex h-9 items-center gap-2.5 rounded-full px-3 text-sm transition-colors';const NAV_ITEM_IDLE_CLASS =@@ -82,57 +84,68 @@ const TAB_ICON: Record<VisibleSettingsTab, SettingsNavIcon> = {interface SettingsSidebarNavProps {tabIds: readonly VisibleSettingsTab[];+ searchContext?: SettingsSearchContext;activeTab: SettingsTab;onSelectTab: (tab: SettingsTab) => void;+ onSelectSearchResult?: (result: { tab: SettingsTab; sectionId: string }) => void;}/** Settings left nav. Every item is an in-panel tab with a matching lucide mark. */-export function SettingsSidebarNav({ tabIds, activeTab, onSelectTab }: SettingsSidebarNavProps) {+export function SettingsSidebarNav({+ tabIds,+ searchContext,+ activeTab,+ onSelectTab,+ onSelectSearchResult,+}: SettingsSidebarNavProps) {const { t } = useTranslation();return (- <nav role="tablist" aria-label={t('settings.title')} className="flex flex-col gap-0.5">- {tabIds.map((tabId) => {- const selected = activeTab === tabId;- const Icon = TAB_ICON[tabId];- return (- <button- key={tabId}- id={`settings-tab-${tabId}`}- type="button"- role="tab"- aria-selected={selected}- aria-controls={`settings-panel-${tabId}`}- onClick={() => onSelectTab(tabId)}- className={cn(NAV_ITEM_CLASS, selected ? NAV_ITEM_ACTIVE_CLASS : NAV_ITEM_IDLE_CLASS)}- >- <Icon- size={15}- strokeWidth={1.8}- aria-hidden="true"- className={cn(- 'shrink-0',- selected- ? 'text-sidebar-item-active-foreground'- : 'text-[var(--settings-menu-text)]',- )}- />- <span className="leading-none">{t(TAB_LABEL_KEY[tabId])}</span>- {tabId === 'cindy-make' && (- <span+ <>+ <SettingsSearchBox visibleTabIds={tabIds} searchContext={searchContext} onSelect={onSelectSearchResult} />+ <nav role="tablist" aria-label={t('settings.title')} className="flex flex-col gap-0.5">+ {tabIds.map((tabId) => {+ const selected = activeTab === tabId;+ const Icon = TAB_ICON[tabId];+ return (+ <button+ key={tabId}+ id={`settings-tab-${tabId}`}+ type="button"+ role="tab"+ aria-selected={selected}+ aria-controls={`settings-panel-${tabId}`}+ onClick={() => onSelectTab(tabId)}+ className={cn(NAV_ITEM_CLASS, selected ? NAV_ITEM_ACTIVE_CLASS : NAV_ITEM_IDLE_CLASS)}+ >+ <Icon+ size={15}+ strokeWidth={1.8}+ aria-hidden="true"className={cn(- 'relative top-0.5 shrink-0 rounded-full border px-2 py-[1px] text-10 font-medium leading-[1.5]',+ 'shrink-0',selected- ? 'border-current bg-transparent text-inherit'- : 'border-[var(--settings-badge-border)] bg-[var(--settings-badge-bg)] text-[var(--settings-menu-text)]',+ ? 'text-sidebar-item-active-foreground'+ : 'text-[var(--settings-menu-text)]',)}- >- {t('cindyMake.beta')}- </span>- )}- </button>- );- })}- </nav>+ />+ <span className="leading-none">{t(TAB_LABEL_KEY[tabId])}</span>+ {tabId === 'cindy-make' && (+ <span+ className={cn(+ 'relative top-0.5 shrink-0 rounded-full border px-2 py-[1px] text-10 font-medium leading-[1.5]',+ selected+ ? 'border-current bg-transparent text-inherit'+ : 'border-[var(--settings-badge-border)] bg-[var(--settings-badge-bg)] text-[var(--settings-menu-text)]',+ )}+ >+ {t('cindyMake.beta')}+ </span>+ )}+ </button>+ );+ })}+ </nav>+ </>);}diff --git a/apps/desktop/src/renderer/components/settings/SettingsView.tsx b/apps/desktop/src/renderer/components/settings/SettingsView.tsxindex d603dc4034..b8f25c0c8d 100644--- a/apps/desktop/src/renderer/components/settings/SettingsView.tsx+++ b/apps/desktop/src/renderer/components/settings/SettingsView.tsx@@ -9,6 +9,10 @@ import { Tip } from '@/components/ui/tooltip';import { TAB_IDS, isSettingsTab } from '@/lib/tabLabels';import type { SettingsTab } from '@/lib/tabLabels';import { SettingsSidebarNav } from './SettingsSidebarNav';+import { resolveSettingsSearchEntry } from './settingsSearchCatalog';+import { SettingsSearchNavigationContext } from './SettingsSearchNavigation';+import type { SettingsSearchContext } from './settingsSearchTypes';+import { useSettingsSectionTarget } from './useSettingsSectionTarget';import { UserProfileCard } from './UserProfileCard';import { VoiceInputSection } from './VoiceInputSection';import { AppearanceSection } from './AppearanceSection';@@ -58,6 +62,7 @@ import { canAccessUsageSettings } from './usageVisibility';import { canAccessCindyMakeSettings } from './cindyMakeVisibility';import { useCindyVersions } from '@/lib/useCindyVersions';import { UsageHistorySection } from './usage/UsageHistorySection';+import { CURRENT_CINDY_REGION } from '../../../shared/brandRegion';const DEFAULT_SETTINGS_MENU_WIDTH = 260;@@ -70,6 +75,7 @@ export function SettingsView() {const outletContext = useOutletContext<SettingsOutletContext | null>();const [searchParams, setSearchParams] = useSearchParams();const { t } = useTranslation();+ const [searchActivation, setSearchActivation] = useState(0);const { mode, dataOwnerId, user } = useAuth();const menuWidth = outletContext?.sidebarWidth ?? DEFAULT_SETTINGS_MENU_WIDTH;const isMac = window.electronAPI?.platform === 'darwin';@@ -165,6 +171,21 @@ export function SettingsView() {[activeTab, piExtensionsPanelOpen, searchParams, setSearchParams],);+ const handleSelectSearchResult = useCallback(+ ({ tab, sectionId }: { tab: SettingsTab; sectionId: string }) => {+ setSearchActivation((value) => value + 1);+ const next = new URLSearchParams(searchParams);+ for (const key of ['openPanel', 'ghost', 'panel', 'imGroup', 'connect', 'wizard', 'intent']) {+ next.delete(key);+ }+ if (tab === 'general') next.delete('tab');+ else next.set('tab', tab);+ next.set('section', sectionId);+ setSearchParams(next, { replace: true });+ },+ [searchParams, setSearchParams],+ );+const handleOpenPiExtensions = useCallback(() => {const next = new URLSearchParams(searchParams);next.delete('tab');@@ -202,22 +223,17 @@ export function SettingsView() {),[canAccessBilling, canAccessCindyMake, canAccessUsage, isMac],);-- // deep-link: ?section=... → scroll to a section inside the active tab.- useEffect(() => {- const section = searchParams.get('section');- const sectionId =- section === 'collaboration'- ? 'settings-collaboration'- : section === 'notifications'- ? 'settings-notifications'- : section === 'contacts'- ? 'settings-contacts'- : null;- if (!sectionId) return;- const el = document.getElementById(sectionId);- if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });- }, [searchParams]);+ const searchContext = useMemo<SettingsSearchContext>(() => ({+ region: CURRENT_CINDY_REGION,+ mode,+ membershipKind: user?.membershipKind ?? null,+ platform: window.electronAPI?.platform ?? '',+ }), [mode, user?.membershipKind]);+ const requestedEntry = resolveSettingsSearchEntry(activeTab, searchParams.get('section'));+ const searchEntry = piExtensionsPanelOpen || (requestedEntry?.isVisible && !requestedEntry.isVisible(searchContext))+ ? null : requestedEntry;+ const searchNavigation = useMemo(() => ({ entry: searchEntry, activation: searchActivation }), [searchEntry, searchActivation]);+ useSettingsSectionTarget(searchEntry?.targetId ?? null, contentScrollRef, searchParams.toString() + ':' + searchActivation, searchEntry?.fallbackTargetId);// 旧「工具密钥」「第三方平台」深链落到设置里的插件分区,不再离开设置。if (shouldRedirectLegacyPluginTabs) {@@ -225,6 +241,7 @@ export function SettingsView() {}return (+ <SettingsSearchNavigationContext.Provider value={searchNavigation}><divclassName="h-full w-full overflow-hidden bg-[var(--settings-bg)]"role="main"@@ -258,8 +275,10 @@ export function SettingsView() {<SettingsSidebarNavtabIds={visibleTabIds}+ searchContext={searchContext}activeTab={activeTab}onSelectTab={handleSelectTab}+ onSelectSearchResult={handleSelectSearchResult}/></aside>@@ -310,29 +329,29 @@ export function SettingsView() {<ArrowLeft size={16} />{t('settings.piPackages.backToGeneral')}</button>- <section className="pb-[18px]" aria-label={t('settings.piPackages.title')}>+ <section id="settings-pi-extensions" className="pb-[18px]" aria-label={t('settings.piPackages.title')}><PiPackagesSection /></section></>) : (<>{/* Section — User Info (pb 18) */}- <section className="pb-[18px]" aria-label={t('settings.sections.user')}>+ <section id="settings-search-target-general-user" className="pb-[18px]" aria-label={t('settings.sections.user')}><UserProfileCard /></section>{/* Section — Appearance (py 18) */}- <section className="py-[18px]" aria-label={t('settings.sections.appearance')}>+ <section id="settings-search-target-general-appearance" className="py-[18px]" aria-label={t('settings.sections.appearance')}><AppearanceSection /></section>{/* Section — Language (py 18) */}- <section className="py-[18px]" aria-label={t('settings.sections.language')}>+ <section id="settings-search-target-general-language" className="py-[18px]" aria-label={t('settings.sections.language')}><LanguageSection /></section>{/* Pi 扩展只在通用页提供一行入口,不占用设置一级菜单。 */}- <section className="py-[18px]" aria-label={t('settings.piPackages.entryTitle')}>+ <section id="settings-pi-extensions" className="py-[18px]" aria-label={t('settings.piPackages.entryTitle')}><buttontype="button"onClick={handleOpenPiExtensions}@@ -412,12 +431,12 @@ export function SettingsView() {</section>{/* Section — Git safety savepoints (formal setting, not experimental). */}- <section className="py-[18px]" aria-label={t('settings.sections.gitSafety')}>+ <section id="settings-search-target-general-git-safety" className="py-[18px]" aria-label={t('settings.sections.gitSafety')}><GitSafetySection /></section>{/* Section — Experimental (py 18). */}- <section className="py-[18px]" aria-label={t('settings.sections.experimental')}>+ <section id="settings-search-target-general-experimental" className="py-[18px]" aria-label={t('settings.sections.experimental')}><ExperimentalSection /></section>@@ -459,21 +478,21 @@ export function SettingsView() {id="settings-panel-personalization"aria-labelledby="settings-tab-personalization">- <section className="pb-[18px]" aria-label={t('settings.sections.personalization')}>+ <section id="settings-search-target-personalization-user-prompt" className="pb-[18px]" aria-label={t('settings.sections.personalization')}><UserPromptSection /></section>- <section className="pb-[18px]" aria-label={t('settings.sections.memory')}>+ <section id="settings-search-target-personalization-memory" className="pb-[18px]" aria-label={t('settings.sections.memory')}><MemorySection /></section>- <section className="pb-[18px]" aria-label={t('settings.sections.subagentModels')}>+ <section id="settings-search-target-personalization-subagents" className="pb-[18px]" aria-label={t('settings.sections.subagentModels')}><SubagentModelSection key={`subagent-models:${mode}:${dataOwnerId ?? 'none'}`} /></section>- <section className="pb-[18px]" aria-label={t('settings.sections.auxiliaryModels')}>+ <section id="settings-search-target-personalization-auxiliary-models" className="pb-[18px]" aria-label={t('settings.sections.auxiliaryModels')}><AuxiliaryModelSectionkey={`auxiliary-models:${mode}:${dataOwnerId ?? 'none'}`}/></section>- <section className="pb-[18px]" aria-label={t('settings.sections.visionBridge')}>+ <section id="settings-search-target-personalization-vision-bridge" className="pb-[18px]" aria-label={t('settings.sections.visionBridge')}><VisionBridgeSection key={`vision-bridge:${mode}:${dataOwnerId ?? 'none'}`} /></section>{/* 通讯录是本机全局库(数据与开关都不依赖云端账号),local 模式同样可用 */}@@ -484,25 +503,25 @@ export function SettingsView() {><ContactsSection key={`contacts:${dataOwnerId ?? 'none'}`} /></section>- <section className="pb-[18px]" aria-label={t('settings.sections.compaction')}>+ <section id="settings-search-target-personalization-compaction" className="pb-[18px]" aria-label={t('settings.sections.compaction')}><CompactionSection key={`compaction:${mode}:${dataOwnerId ?? 'none'}`} /></section>{/* RSB 默认终端 shell —— 改默认只影响新建 tab,已有 tab 不动 */}- <section className="pb-[18px]" aria-label={t('settings.sections.terminalShell')}>+ <section id="settings-search-target-personalization-terminal-shell" className="pb-[18px]" aria-label={t('settings.sections.terminalShell')}><TerminalShellSection /></section>{/* 消息流链接/HTML 文件左键的默认打开位置(内置侧边栏 / 系统浏览器) */}- <section className="pb-[18px]" aria-label={t('settings.sections.linkOpen')}>+ <section id="settings-search-target-personalization-link-open" className="pb-[18px]" aria-label={t('settings.sections.linkOpen')}><LinkOpenSection /></section>{/* 流式输出淡入动效开关(默认开;reduced-motion 时无条件关) */}- <section className="pb-[18px]" aria-label={t('settings.sections.streamFade')}>+ <section id="settings-search-target-personalization-stream-fade" className="pb-[18px]" aria-label={t('settings.sections.streamFade')}><StreamFadeSection /></section>{/* "小技巧" section —— TipsSection 内部把多个功能性 cell(SilentEncryptedRetryCell / ChatEmbeddingCell) 装在一个共享灰底 container,形态跟 MemorySection 对齐 (单标题 + 多 cell + divider)。 */}- <section className="pb-[18px]" aria-label={t('settings.sections.compatMode')}>+ <section id="settings-search-target-personalization-tips" className="pb-[18px]" aria-label={t('settings.sections.compatMode')}><TipsSection /></section></div>@@ -677,5 +696,6 @@ export function SettingsView() {</div><HelpAssistantPanel open={helpAssistantOpen} onClose={() => setHelpAssistantOpen(false)} /></div>+ </SettingsSearchNavigationContext.Provider>);}diff --git a/apps/desktop/src/renderer/components/settings/StorageManagementCard.settings-search.ts b/apps/desktop/src/renderer/components/settings/StorageManagementCard.settings-search.tsnew file mode 100644index 0000000000..46479df093--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/StorageManagementCard.settings-search.ts@@ -0,0 +1,17 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'storage',+ order: 17,+ entries: [+ { id: 'storage', tab: 'storage', targetId: 'settings-panel-storage', titleKey: 'settings.tabs.storage', sectionKey: 'settings.about.storage.title' },+ { id: 'settings.about.storage.databaseSectionTitle', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-databaseSectionTitle', titleKey: 'settings.about.storage.databaseSectionTitle', sectionKey: 'settings.tabs.storage' },+ { id: 'settings.about.storage.mediaSectionTitle', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-mediaSectionTitle', titleKey: 'settings.about.storage.mediaSectionTitle', sectionKey: 'settings.tabs.storage', descriptionKey: 'settings.about.storage.mediaSectionHint' },+ { id: 'settings.about.storage.cleanupLabel', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-cleanupLabel', titleKey: 'settings.about.storage.cleanupLabel', sectionKey: 'settings.tabs.storage' },+ { id: 'settings.about.storage.reconcileLabel', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-reconcileLabel', titleKey: 'settings.about.storage.reconcileLabel', sectionKey: 'settings.tabs.storage' },+ { id: 'settings.about.storage.dbSlimmingLabel', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-dbSlimmingLabel', titleKey: 'settings.about.storage.dbSlimmingLabel', sectionKey: 'settings.tabs.storage' },+ { id: 'settings.about.storage.dbSizeWarningThresholdLabel', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-dbSizeWarningThresholdLabel', titleKey: 'settings.about.storage.dbSizeWarningThresholdLabel', sectionKey: 'settings.tabs.storage' },+ { id: 'settings.about.storage.dbSizeWarningDisableLabel', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-about-storage-dbSizeWarningDisableLabel', titleKey: 'settings.about.storage.dbSizeWarningDisableLabel', sectionKey: 'settings.tabs.storage' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx b/apps/desktop/src/renderer/components/settings/StorageManagementCard.tsxindex a9ff71ab44..59479efd1a 100644--- a/apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx+++ b/apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx@@ -269,7 +269,7 @@ export function StorageManagementCard() {<p className="mt-1 text-12 leading-[1.5] text-[var(--settings-section-sublabel)]">{t('settings.about.storage.overviewDescription')}</p>- <div+ <div id="settings-search-settings-about-storage-databaseSectionTitle"role="progressbar"aria-label={t('settings.about.storage.databaseSectionTitle')}aria-valuemin={0}@@ -290,7 +290,7 @@ export function StorageManagementCard() {<strong className="block text-24 font-medium leading-none tracking-[-0.04em] text-[var(--settings-section-title)]">{totalBytes === null ? t('settings.about.storage.unknown') : formatBytes(totalBytes)}</strong>- <span className="mt-1 block text-11 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-storage-mediaSectionTitle" className="mt-1 block text-11 text-[var(--settings-section-sublabel)]">{t('settings.about.storage.databaseUsage', {size: databaseBytes === null? t('settings.about.storage.unknown')@@ -424,7 +424,7 @@ export function StorageManagementCard() {><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-storage-cleanupLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.storage.cleanupLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -523,7 +523,7 @@ export function StorageManagementCard() {><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-storage-reconcileLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.storage.reconcileLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -846,7 +846,7 @@ function DatabaseSlimmingSection({<div className="flex flex-col gap-3 px-[18px] py-4" aria-busy={scanLoading}><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-1">- <span className="text-13 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-storage-dbSlimmingLabel" className="text-13 text-[var(--settings-section-sublabel)]">{t('settings.about.storage.dbSlimmingLabel')}</span><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -1037,7 +1037,7 @@ function DatabaseSlimmingSection({onConfirm={handleSchedule}/>- <div className="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 rounded-lg border border-[var(--settings-theme-card-border)] px-3 py-2.5">+ <div id="settings-search-settings-about-storage-dbSizeWarningThresholdLabel" className="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 rounded-lg border border-[var(--settings-theme-card-border)] px-3 py-2.5"><FormFieldid="db-size-warning-threshold"label={t('settings.about.storage.dbSizeWarningThresholdLabel')}@@ -1077,7 +1077,7 @@ function DatabaseSlimmingSection({htmlFor="db-size-warning-disabled"className="flex min-w-0 cursor-pointer flex-col gap-0.5">- <span className="text-12 text-[var(--settings-section-sublabel)]">+ <span id="settings-search-settings-about-storage-dbSizeWarningDisableLabel" className="text-12 text-[var(--settings-section-sublabel)]">{t('settings.about.storage.dbSizeWarningDisableLabel')}</span><span className="text-11 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">diff --git a/apps/desktop/src/renderer/components/settings/SubagentModelSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/SubagentModelSection.settings-search.tsnew file mode 100644index 0000000000..f7372c8e73--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/SubagentModelSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by SubagentModelSection. */+export default {+ id: 'SubagentModelSection',+ order: 30,+ entries: [+ { id: 'settings.subagentModels.smartRouting.label', fallbackTargetId: 'settings-search-target-personalization-subagents', tab: 'personalization', targetId: 'settings-search-settings-subagentModels-smartRouting-label', titleKey: 'settings.subagentModels.smartRouting.label', sectionKey: 'settings.sections.subagentModels' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx b/apps/desktop/src/renderer/components/settings/SubagentModelSection.tsxindex 253aada1db..438452d6f6 100644--- a/apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx+++ b/apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx@@ -227,7 +227,7 @@ export function SubagentModelSection() {<div className="flex min-w-0 items-start gap-2"><CodexMark size={16} className="mt-0.5 shrink-0 text-[var(--text-secondary)]" /><div className="flex min-w-0 flex-col gap-1">- <span className="text-14 font-medium text-[var(--text-primary)]">+ <span id="settings-search-settings-subagentModels-smartRouting-label" className="text-14 font-medium text-[var(--text-primary)]">{t('settings.subagentModels.smartRouting.label')}</span><span className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">diff --git a/apps/desktop/src/renderer/components/settings/TipsSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/TipsSection.settings-search.tsnew file mode 100644index 0000000000..821d3ff629--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/TipsSection.settings-search.ts@@ -0,0 +1,11 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by TipsSection. */+export default {+ id: 'TipsSection',+ order: 30,+ entries: [+ { id: 'settings.promptRecommendation.label', fallbackTargetId: 'settings-search-target-personalization-tips', tab: 'personalization', targetId: 'settings-search-settings-promptRecommendation-label', titleKey: 'settings.promptRecommendation.label', sectionKey: 'settings.sections.compatMode', descriptionKey: 'settings.promptRecommendation.description' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/TipsSection.tsx b/apps/desktop/src/renderer/components/settings/TipsSection.tsxindex 9882e5f94b..79430e47b2 100644--- a/apps/desktop/src/renderer/components/settings/TipsSection.tsx+++ b/apps/desktop/src/renderer/components/settings/TipsSection.tsx@@ -72,7 +72,7 @@ export function TipsSection() {<Sparkles size={18} className="text-[var(--settings-section-title)]" /></div><div className="flex flex-col gap-[8px]">- <p className="text-14 font-medium leading-none text-[var(--settings-section-title)]">+ <p id="settings-search-settings-promptRecommendation-label" className="text-14 font-medium leading-none text-[var(--settings-section-title)]">{t('settings.promptRecommendation.label')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-desc)]">diff --git a/apps/desktop/src/renderer/components/settings/VisionBridgeSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/VisionBridgeSection.settings-search.tsnew file mode 100644index 0000000000..482dcc0f16--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/VisionBridgeSection.settings-search.ts@@ -0,0 +1,13 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by VisionBridgeSection. */+export default {+ id: 'VisionBridgeSection',+ order: 30,+ entries: [+ { id: 'settings.visionBridge.enableLabel', fallbackTargetId: 'settings-search-target-personalization-vision-bridge', tab: 'personalization', targetId: 'settings-search-settings-visionBridge-enableLabel', titleKey: 'settings.visionBridge.enableLabel', sectionKey: 'settings.sections.visionBridge', descriptionKey: 'settings.visionBridge.enableHint' },+ { id: 'settings.visionBridge.targetModels.label', fallbackTargetId: 'settings-search-target-personalization-vision-bridge', tab: 'personalization', targetId: 'settings-search-settings-visionBridge-targetModels-label', titleKey: 'settings.visionBridge.targetModels.label', sectionKey: 'settings.sections.visionBridge', descriptionKey: 'settings.visionBridge.targetModels.hint' },+ { id: 'settings.visionBridge.backends.label', fallbackTargetId: 'settings-search-target-personalization-vision-bridge', tab: 'personalization', targetId: 'settings-search-settings-visionBridge-backends-label', titleKey: 'settings.visionBridge.backends.label', sectionKey: 'settings.sections.visionBridge', descriptionKey: 'settings.visionBridge.backends.hint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx b/apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsxindex acb1a7fa6c..168dcb4614 100644--- a/apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx+++ b/apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx@@ -355,7 +355,7 @@ export function VisionBridgeSection() {{/* ── 总开关 ────────────────────────────────────────────────────── */}<div className="flex items-center justify-between gap-3 rounded-xl border border-[var(--settings-theme-card-border)] bg-[var(--settings-theme-card-bg)] px-4 py-4"><div className="flex min-w-0 flex-col gap-1">- <p className="text-14 font-medium text-[var(--text-primary)]">+ <p id="settings-search-settings-visionBridge-enableLabel" className="text-14 font-medium text-[var(--text-primary)]">{t('settings.visionBridge.enableLabel')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -374,7 +374,7 @@ export function VisionBridgeSection() {<div className="flex flex-col rounded-xl border border-[var(--settings-theme-card-border)] bg-[var(--settings-theme-card-bg)]"><div className="flex items-center justify-between gap-3 px-4 py-4"><div className="flex min-w-0 flex-col gap-1">- <p className="text-14 font-medium text-[var(--text-primary)]">+ <p id="settings-search-settings-visionBridge-targetModels-label" className="text-14 font-medium text-[var(--text-primary)]">{t('settings.visionBridge.targetModels.label')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">@@ -431,7 +431,7 @@ export function VisionBridgeSection() {<div className="flex flex-col rounded-xl border border-[var(--settings-theme-card-border)] bg-[var(--settings-theme-card-bg)]"><div className="px-4 py-4"><div className="flex flex-col gap-1">- <p className="text-14 font-medium text-[var(--text-primary)]">+ <p id="settings-search-settings-visionBridge-backends-label" className="text-14 font-medium text-[var(--text-primary)]">{t('settings.visionBridge.backends.label')}</p><p className="text-12 leading-[1.4] text-[var(--settings-section-sublabel)] opacity-70">diff --git a/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.tsnew file mode 100644index 0000000000..200861aaa7--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts@@ -0,0 +1,22 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'voice-input',+ order: 6,+ entries: [+ { id: 'voiceInput', tab: 'voice-input', targetId: 'settings-panel-voice-input', titleKey: 'settings.tabs.voiceInput', sectionKey: 'settings.sections.voiceInput' },+ { id: 'settings.voiceInput.language.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-language-label', titleKey: 'settings.voiceInput.language.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.language.hint' },+ { id: 'settings.voiceInput.microphone.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-microphone-label', titleKey: 'settings.voiceInput.microphone.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.microphone.hint' },+ { id: 'settings.voiceInput.refinement.enabled.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-refinement-enabled-label', titleKey: 'settings.voiceInput.refinement.enabled.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.refinement.enabled.hint' },+ { id: 'settings.voiceInput.refinement.instructions.label', fallbackTargetId: 'settings-search-settings-voiceInput-refinement-enabled-label', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-refinement-instructions-label', titleKey: 'settings.voiceInput.refinement.instructions.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.refinement.instructions.hint' },+ { id: 'settings.voiceInput.refinement.dictionary.label', fallbackTargetId: 'settings-search-settings-voiceInput-refinement-enabled-label', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-refinement-dictionary-label', titleKey: 'settings.voiceInput.refinement.dictionary.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.refinement.dictionary.hint' },+ { id: 'settings.voiceInput.muteSystemAudio.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-muteSystemAudio-label', titleKey: 'settings.voiceInput.muteSystemAudio.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.muteSystemAudio.hint', isVisible: ({ platform }) => platform === 'darwin' || platform === 'win32' },+ { id: 'settings.voiceInput.interactionSound.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-interactionSound-label', titleKey: 'settings.voiceInput.interactionSound.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.interactionSound.hint' },+ { id: 'settings.voiceInput.history.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-history-label', titleKey: 'settings.voiceInput.history.label', sectionKey: 'settings.tabs.voiceInput' },+ { id: 'settings.voiceInput.sections.usageData', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-voice-usage-data', titleKey: 'settings.voiceInput.sections.usageData', sectionKey: 'settings.tabs.voiceInput' },+ { id: 'settings.voiceInput.fastActivation.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-fastActivation-label', titleKey: 'settings.voiceInput.fastActivation.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.fastActivation.hint' },+ { id: 'settings.voiceInput.shortcut.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-shortcut-label', titleKey: 'settings.voiceInput.shortcut.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.shortcut.hint' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx b/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsxindex c49b71c0ef..6983b7cc4f 100644--- a/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx+++ b/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx@@ -1,5 +1,6 @@import { Button } from '@/components/ui/button';-import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactNode } from 'react';+import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactNode } from 'react';+import { useSettingsSearchNavigation } from './SettingsSearchNavigation';import { useTranslation } from 'react-i18next';import { useSearchParams } from 'react-router-dom';import * as Dialog from '@radix-ui/react-dialog';@@ -118,12 +119,14 @@ interface VoiceInputSelectProps<T extends string> {}interface VoiceInputCardProps {+ id?: string;title: ReactNode;action?: ReactNode;children: ReactNode;}interface VoiceInputInlineSettingRowProps {+ id?: string;label: ReactNode;labelAction?: ReactNode;hint?: ReactNode;@@ -297,9 +300,10 @@ function VoiceInputSelect<T extends string>({);}-function VoiceInputCard({ title, action, children }: VoiceInputCardProps) {+function VoiceInputCard({ id, title, action, children }: VoiceInputCardProps) {return (<section+ id={id}className={cn('flex flex-col gap-4 rounded-xl p-4','bg-[var(--settings-theme-card-bg)]',@@ -322,6 +326,7 @@ function VoiceInputCard({ title, action, children }: VoiceInputCardProps) {}function VoiceInputInlineSettingRow({+ id,label,labelAction,hint,@@ -330,6 +335,7 @@ function VoiceInputInlineSettingRow({}: VoiceInputInlineSettingRowProps) {return (<div+ id={id}className={cn('grid min-w-0 gap-3 sm:grid-cols-[minmax(0,1fr)_minmax(220px,320px)] sm:items-center',className,@@ -1023,6 +1029,7 @@ function VoiceInputCollapsibleTextarea({}export function VoiceInputSection() {+ const { entry: searchEntry, activation } = useSettingsSearchNavigation();const { t, i18n } = useTranslation();const supportsGlobalShortcutSetting = window.electronAPI.platform !== 'linux';const supportsSystemAudioMuteSetting =@@ -1055,6 +1062,11 @@ export function VoiceInputSection() {const [historyExpanded, setHistoryExpanded] = useState(false);const [refinementRulesExpanded, setRefinementRulesExpanded] = useState(false);const [customDictionaryExpanded, setCustomDictionaryExpanded] = useState(false);+ useLayoutEffect(() => {+ if (searchEntry?.id === 'settings.voiceInput.refinement.instructions.label') setRefinementRulesExpanded(true);+ if (searchEntry?.id === 'settings.voiceInput.refinement.dictionary.label') setCustomDictionaryExpanded(true);+ if (searchEntry?.id === 'settings.voiceInput.history.label') setHistoryExpanded(true);+ }, [searchEntry, activation]);const [dictionaryFilter, setDictionaryFilter] = useState<DictionaryFilter>('all');const [dictionarySearchExpanded, setDictionarySearchExpanded] = useState(false);const [dictionarySearch, setDictionarySearch] = useState('');@@ -1950,6 +1962,7 @@ export function VoiceInputSection() {<VoiceInputCard title={t('settings.voiceInput.sections.basics')}><VoiceInputInlineSettingRow+ id="settings-search-settings-voiceInput-language-label"label={t('settings.voiceInput.language.label')}hint={t('settings.voiceInput.language.hint')}>@@ -1962,6 +1975,7 @@ export function VoiceInputSection() {</VoiceInputInlineSettingRow><VoiceInputInlineSettingRow+ id="settings-search-settings-voiceInput-microphone-label"label={t('settings.voiceInput.microphone.label')}labelAction={<VoiceInputPermissionBadge@@ -1983,6 +1997,7 @@ export function VoiceInputSection() {</VoiceInputInlineSettingRow><VoiceInputInlineSettingRow+ id="settings-search-settings-voiceInput-shortcut-label"label={t('settings.voiceInput.shortcut.label')}labelAction={shouldShowInputMonitoringBadge({@@ -2072,7 +2087,7 @@ export function VoiceInputSection() {<div className="flex items-center justify-between gap-5"><div className="flex min-w-0 flex-col gap-1"><div className="flex min-w-0 items-center gap-2">- <p+ <p id="settings-search-settings-voiceInput-refinement-enabled-label"className="min-w-0 text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>@@ -2102,7 +2117,7 @@ export function VoiceInputSection() {</div>{settings.refinementEnabled ? (- <div className="flex flex-col gap-4 border-t border-[var(--settings-theme-card-border)] pt-4">+ <div id="settings-search-settings-voiceInput-refinement-instructions-label" className="flex flex-col gap-4 border-t border-[var(--settings-theme-card-border)] pt-4"><VoiceInputCollapsibleTextareaid="voice-input-refinement-instructions"label={t('settings.voiceInput.refinement.instructions.label')}@@ -2122,7 +2137,7 @@ export function VoiceInputSection() {<div className="border-t border-[var(--settings-theme-card-border)] pt-4"><div className="flex items-center justify-between gap-4"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-voiceInput-refinement-dictionary-label"className="text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>@@ -2631,7 +2646,7 @@ export function VoiceInputSection() {{supportsSystemAudioMuteSetting ? (<div className="flex items-center justify-between gap-5"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-voiceInput-muteSystemAudio-label"className="text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>@@ -2659,7 +2674,7 @@ export function VoiceInputSection() {supportsSystemAudioMuteSetting && 'border-t border-[var(--settings-theme-card-border)]',)}><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-voiceInput-fastActivation-label"className="text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>@@ -2679,7 +2694,7 @@ export function VoiceInputSection() {<div className="flex items-center justify-between gap-5 border-t border-[var(--settings-theme-card-border)] pt-4"><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-voiceInput-interactionSound-label"className="text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>@@ -2699,6 +2714,7 @@ export function VoiceInputSection() {</VoiceInputCard><VoiceInputCard+ id="settings-search-voice-usage-data"title={t('settings.voiceInput.sections.usageData')}action={<Button@@ -2769,7 +2785,7 @@ export function VoiceInputSection() {'transition-colors hover:opacity-90',)}>- <span+ <span id="settings-search-settings-voiceInput-history-label"className="text-13 font-medium text-[var(--settings-section-title)]"style={{ letterSpacing: '0.12px' }}>diff --git a/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.settings-search.tsnew file mode 100644index 0000000000..161d78f38c--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.settings-search.ts@@ -0,0 +1,14 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by WindowBehaviorSection. */+export default {+ id: 'WindowBehaviorSection',+ order: 30,+ entries: [+ { id: 'settings.devices.keepAwake', fallbackTargetId: 'settings-window-behavior', tab: 'general', targetId: 'settings-search-settings-devices-keepAwake', titleKey: 'settings.devices.keepAwake', sectionKey: 'settings.sections.windowBehavior', descriptionKey: 'settings.devices.keepAwakeHint' },+ { id: 'settings.windowBehavior.loginItem.label', fallbackTargetId: 'settings-window-behavior', tab: 'general', targetId: 'settings-search-login-item', titleKey: 'settings.windowBehavior.loginItem.label', sectionKey: 'settings.sections.windowBehavior', descriptionKey: 'settings.windowBehavior.loginItem.hint', isVisible: ({ platform }) => platform === 'darwin' || platform === 'win32' },+ { id: 'settings.windowBehavior.closeBehavior.label', fallbackTargetId: 'settings-window-behavior', tab: 'general', targetId: 'settings-search-settings-windowBehavior-closeBehavior-label', titleKey: 'settings.windowBehavior.closeBehavior.label', sectionKey: 'settings.sections.windowBehavior', descriptionKey: 'settings.windowBehavior.closeBehavior.hint', isVisible: ({ platform }) => platform === 'linux' || platform === 'win32' },+ { id: 'settings.windowBehavior.swallowActivationClickLabel', fallbackTargetId: 'settings-window-behavior', tab: 'general', targetId: 'settings-search-activation-click', titleKey: 'settings.windowBehavior.swallowActivationClickLabel', sectionKey: 'settings.sections.windowBehavior', descriptionKey: 'settings.windowBehavior.swallowActivationClickHint', isVisible: ({ platform }) => platform === 'darwin' || platform === 'win32' },++ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx b/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsxindex f144c98a8d..221edbd6f8 100644--- a/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx+++ b/apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx@@ -34,6 +34,7 @@ type DesktopCloseBehavior = LinuxCloseBehavior | WindowsCloseBehavior;/** 一张开关卡片:左侧标签 + 说明(+ 可选补充说明行),右侧开关。 */function BehaviorCard({+ id,label,hint,note,@@ -42,6 +43,7 @@ function BehaviorCard({ariaLabel,disabled,}: {+ id?: string;label: string;hint: string;note?: ReactNode;@@ -52,6 +54,7 @@ function BehaviorCard({}) {return (<div+ id={id}className={cn('flex items-center justify-between gap-3 rounded-xl p-5','bg-[var(--settings-theme-card-bg)]',@@ -139,6 +142,7 @@ export function WindowBehaviorSection() {</h2><BehaviorCard+ id="settings-search-settings-devices-keepAwake"label={t('settings.devices.keepAwake')}hint={t('settings.devices.keepAwakeHint')}checked={keepAwake}@@ -148,6 +152,7 @@ export function WindowBehaviorSection() {{loginItem.supported && (<BehaviorCard+ id="settings-search-login-item"label={t('settings.windowBehavior.loginItem.label')}hint={t('settings.windowBehavior.loginItem.hint')}checked={Boolean(loginItem.state?.enabled || loginItem.state?.requiresApproval)}@@ -180,7 +185,7 @@ export function WindowBehaviorSection() {)}><div className="flex min-w-0 flex-col gap-1">- <p+ <p id="settings-search-settings-windowBehavior-closeBehavior-label"className="text-13 font-medium text-[var(--settings-section-sublabel)]"style={{ letterSpacing: '0.12px' }}>@@ -205,6 +210,7 @@ export function WindowBehaviorSection() {{showsSwallowActivationClick && (<BehaviorCard+ id="settings-search-activation-click"label={t('settings.windowBehavior.swallowActivationClickLabel')}hint={t('settings.windowBehavior.swallowActivationClickHint')}note={diff --git a/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.settings-search.ts b/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.settings-search.tsnew file mode 100644index 0000000000..10892678dc--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.settings-search.ts@@ -0,0 +1,10 @@+import type { SettingsSearchModule } from './settingsSearchTypes';++/** Search entries owned by WorktreeRecycleCard. */+export default {+ id: 'WorktreeRecycleCard',+ order: 30,+ entries: [+ { id: 'settings.worktreeRecycle.title', fallbackTargetId: 'settings-panel-storage', tab: 'storage', targetId: 'settings-search-settings-worktreeRecycle-title', titleKey: 'settings.worktreeRecycle.title', sectionKey: 'settings.tabs.storage' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsx b/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsxindex 10a51ab5bf..4f93d04709 100644--- a/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsx+++ b/apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsx@@ -43,7 +43,7 @@ export function WorktreeRecycleCard() {return (<div className="mt-6 rounded-xl border border-[var(--border-default)] p-4"><div className="flex items-center justify-between gap-4">- <h3 className="text-sm font-medium text-[var(--text-primary)]">{t('settings.worktreeRecycle.title')}</h3>+ <h3 id="settings-search-settings-worktreeRecycle-title" className="text-sm font-medium text-[var(--text-primary)]">{t('settings.worktreeRecycle.title')}</h3><Button variant="secondary" size="md" onClick={() => { void refresh(); }}>{t('settings.worktreeRecycle.refresh')}</Button></div>{failed ? <p role="alert" className="mt-3 text-sm text-[var(--text-secondary)]">{t('settings.worktreeRecycle.loadFailed')}</p>diff --git a/apps/desktop/src/renderer/components/settings/__tests__/HookConnectionsSection.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/HookConnectionsSection.test.tsxindex bd0e2b36d5..b229d01771 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/HookConnectionsSection.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/HookConnectionsSection.test.tsx@@ -110,6 +110,7 @@ vi.mock('../TelegramBehaviorSettings', () => ({}));import { deriveAlias, HookConnectionsSection, workspaceRowsToMap } from '../HookConnectionsSection';+import { SettingsSearchNavigationContext } from '../SettingsSearchNavigation';import { resetXUsageNoticeMemoryState } from '@/state/xUsageNotice';/** 渠道卡收起时内容卸载(Collapse), 交互前先点开对应卡的头部行。 */@@ -254,6 +255,31 @@ describe('HookConnectionsSection binding actions (Telegram / X)', () => {);});+ it('expands an official channel selected by settings search', async () => {+ ipc.get.mockResolvedValue({ hook: BASE_HOOK });++ render(+ <SettingsSearchNavigationContext.Provider+ value={{+ entry: {+ id: 'imBot.cindy.telegram',+ tab: 'im-bot',+ targetId: 'cindy-im-telegram',+ titleKey: 'settings.tina.prefs.providerTelegram',+ sectionKey: 'settings.imBot.groups.cindy',+ },+ activation: 1,+ }}+ >+ <HookConnectionsSection />+ </SettingsSearchNavigationContext.Provider>,+ );++ expect((await screen.findByRole('button', { name: TELEGRAM_CARD })).getAttribute('aria-expanded')).toBe(+ 'true',+ );+ });+it.each([true, false])('displaced workspace communications toggle (%s) never invokes Bot rebind or revoke', async (enabled) => {const row = { teamId: 'T1', teamName: 'Workspace', slackUserId: 'U1', slackUserName: 'tester', displaced: true, communicationsEnabled: enabled };const view: SlackHookView = { ...BASE_HOOK, enabled: true, status: 'connected', serverMultiTeam: true, serverSlackCommunications: true, bindings: [row] };diff --git a/apps/desktop/src/renderer/components/settings/__tests__/settingsSearchCatalog.test.ts b/apps/desktop/src/renderer/components/settings/__tests__/settingsSearchCatalog.test.tsnew file mode 100644index 0000000000..f6d4baa6a1--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/__tests__/settingsSearchCatalog.test.ts@@ -0,0 +1,133 @@+import { describe, expect, it } from 'vitest';+import { createInstance, type TFunction } from 'i18next';+import { TAB_IDS, TAB_LABEL_KEY } from '@/lib/tabLabels';++import {+ buildSettingsSearchDocuments,+ normalizeSettingsSearchText,+ resolveSettingsSearchTarget,+ searchSettings,+ validateSettingsSearchCatalog,+ SETTINGS_SEARCH_ENTRIES,+ SETTINGS_SEARCH_MODULES,+} from '../settingsSearchCatalog';++const translations: Record<string, string> = {+ 'settings.sections.appearance': 'Appearance',+ 'settings.sections.language': 'Language',+ 'settings.sections.user': 'User',+ 'settings.tabs.general': 'General',+ 'settings.tabs.personalization': 'Personalization',+ 'settings.wechatBot.title': '个人微信',+ 'settings.wecomBot.title': '企业微信智能机器人',+ 'settings.dingtalkBot.title': '钉钉机器人',+ 'settings.imBot.groups.personal': '个人',+};++const t = ((key: string) => translations[key] ?? key) as unknown as TFunction;++describe('settings search catalog', () => {+ it('normalizes mixed-width and repeated whitespace', () => {+ expect(normalizeSettingsSearchText(' Appearance\u00a0 ')).toBe('appearance');+ });++ it('filters documents to the visible settings tabs', () => {+ const documents = buildSettingsSearchDocuments(t, ['general']);++ expect(documents.every(({ entry }) => entry.tab === 'general')).toBe(true);+ expect(documents.map(({ entry }) => entry.id)).toContain('general.appearance');+ expect(documents.map(({ entry }) => entry.id)).not.toContain('personalization.memory');+ });++ it('ranks exact section matches before broader category matches', () => {+ const documents = buildSettingsSearchDocuments(t, ['general']);+ const matches = searchSettings(documents, 'appearance');++ expect(matches[0]?.entry.id).toBe('general.appearance');+ });++ it('returns no results for an empty or unknown query', () => {+ const documents = buildSettingsSearchDocuments(t, ['general']);++ expect(searchSettings(documents, ' ')).toEqual([]);+ expect(searchSettings(documents, 'does-not-exist')).toEqual([]);+ });++ it('resolves both short and catalog section deep links', () => {+ expect(resolveSettingsSearchTarget('general', 'notifications')).toBe('settings-notifications');+ expect(resolveSettingsSearchTarget('general', 'collaboration')).toBe('settings-collaboration');+ expect(resolveSettingsSearchTarget('general', 'general.language')).toBe(+ 'settings-search-target-general-language',+ );+ expect(resolveSettingsSearchTarget('general', 'missing')).toBeNull();+ });++ it('resolves declared aliases in deep links', () => {+ expect(resolveSettingsSearchTarget('im-bot', 'Slack')).toBe('cindy-im-slack');+ });++ it('indexes always-visible personal IM channels', () => {+ const documents = buildSettingsSearchDocuments(t, ['im-bot']);++ expect(searchSettings(documents, '个人微信').map(({ entry }) => entry.id)).toContain(+ 'imBot.wechat',+ );+ });++ it('finds common aliases and multi-word queries', () => {+ const documents = buildSettingsSearchDocuments(t, ['remote-control']);+ expect(searchSettings(documents, 'SSH 主机')[0]?.entry.id).toBe('remoteControl.ssh');+ expect(searchSettings(documents, 'remote host')[0]?.entry.id).toBe('remoteControl.ssh');+ });++ it('keeps the declaration catalog complete and unique', () => {+ expect(validateSettingsSearchCatalog()).toEqual([]);+ expect(new Set(SETTINGS_SEARCH_MODULES.map(({ id }) => id)).size).toBe(SETTINGS_SEARCH_MODULES.length);+ for (const tab of TAB_IDS) {+ expect(SETTINGS_SEARCH_ENTRIES.some((entry) => entry.tab === tab && entry.titleKey === TAB_LABEL_KEY[tab]), tab).toBe(true);+ }+ });++ it('uses real translated text in every supported language', async () => {+ const locales = import.meta.glob<Record<string, unknown>>('../../../i18n/locales/*/common.json', { eager: true, import: 'default' });+ for (const [path, translation] of Object.entries(locales)) {+ const language = path.split('/').at(-2)!;+ const instance = createInstance();+ await instance.init({ lng: language, resources: { [language]: { translation } }, fallbackLng: false });+ for (const entry of SETTINGS_SEARCH_ENTRIES) {+ for (const key of [entry.titleKey, entry.sectionKey, entry.descriptionKey, ...(entry.keywordKeys ?? [])].filter((key): key is string => Boolean(key))) {+ expect(instance.exists(key) && typeof instance.t(key) === 'string', language + ': ' + key).toBe(true);+ }+ }+ const documents = buildSettingsSearchDocuments(instance.t, TAB_IDS, { platform: 'win32', region: 'global', mode: 'cloud', membershipKind: 'personal' });+ for (const document of documents) {+ expect(searchSettings(documents, document.title).some(({ entry }) => entry.id === document.entry.id), language + ': ' + document.entry.id).toBe(true);+ }+ }+ });++ it('points to existing anchors and covers every search anchor', () => {+ const sources = import.meta.glob<string>('../**/*.tsx', { query: '?raw', eager: true, import: 'default' });+ const source = Object.entries(sources).filter(([path]) => !path.includes('__tests__') && !path.endsWith('/SettingsSearchBox.tsx')).map(([, text]) => text).join();+ const targets = new Set(SETTINGS_SEARCH_ENTRIES.flatMap((entry) => [entry.targetId, entry.fallbackTargetId]));+ for (const target of targets) {+ if (target) {+ const dynamicProviderAnchor = /^cindy-im-(slack|telegram|x)$/.test(target) && source.includes('id={\`cindy-im-\${provider}\`}');+ expect(source.includes('id="' + target + '"') || dynamicProviderAnchor, target).toBe(true);+ }+ }+ for (const [, target] of source.matchAll(/id="(settings-search-[^"]+)"/g)) {+ expect(targets.has(target), target).toBe(true);+ }+ });++ it('uses the same account and platform visibility as settings', () => {+ const context = { platform: 'linux', region: 'cn', mode: 'local', membershipKind: null } as const;+ const ids = (override = {}) => buildSettingsSearchDocuments(t, TAB_IDS, { ...context, ...override }).map(({ entry }) => entry.id);+ expect(ids()).not.toContain('remoteControl.devices');+ expect(ids({ mode: 'cloud' })).toContain('remoteControl.devices');+ expect(ids({ mode: 'cloud', membershipKind: 'personal' })).not.toContain('imBot.discord');+ expect(ids({ mode: 'cloud', membershipKind: 'personal' })).toContain('imBot.feishu');+ expect(ids()).not.toContain('imBot.cindy');+ });+});diff --git a/apps/desktop/src/renderer/components/settings/settingsSearchCatalog.ts b/apps/desktop/src/renderer/components/settings/settingsSearchCatalog.tsnew file mode 100644index 0000000000..3a1f0e7b31--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/settingsSearchCatalog.ts@@ -0,0 +1,117 @@+import type { TFunction } from 'i18next';++import { TAB_LABEL_KEY, type SettingsTab, type VisibleSettingsTab } from '@/lib/tabLabels';++import type { SettingsSearchEntry, SettingsSearchModule, SettingsSearchContext } from './settingsSearchTypes';+export type { SettingsSearchEntry, SettingsSearchModule } from './settingsSearchTypes';++export interface SettingsSearchDocument {+ entry: SettingsSearchEntry;+ title: string;+ section: string;+ category: string;+ searchText: string;+}++/** Sidecar declarations are discovered even when the owning page has never mounted. */+const modules = import.meta.glob<SettingsSearchModule>('./**/*.settings-search.ts', { eager: true, import: 'default' });+export const SETTINGS_SEARCH_MODULES = Object.values(modules).sort((a, b) => a.order - b.order || a.id.localeCompare(b.id));+export const SETTINGS_SEARCH_ENTRIES: readonly SettingsSearchEntry[] = SETTINGS_SEARCH_MODULES.flatMap((module) => module.entries);++export function normalizeSettingsSearchText(value: string): string {+ return value.normalize('NFKC').toLowerCase().trim().replace(/\s+/g, ' ');+}++export function buildSettingsSearchDocuments(+ t: TFunction,+ visibleTabIds: readonly VisibleSettingsTab[],+ context?: SettingsSearchContext,+): SettingsSearchDocument[] {+ const visible = new Set(visibleTabIds);+ return SETTINGS_SEARCH_ENTRIES.filter(+ (entry) => visible.has(entry.tab) && (!entry.isVisible || (context !== undefined && entry.isVisible(context))),+ ).map((entry) => {+ const text = (key: string, english = false) => {+ const value: unknown = t(key, { ...(english ? { lng: 'en' } : {}), defaultValue: '' });+ return typeof value === 'string' && value !== key ? value.replace(/{{[^}]+}}/g, '') : '';+ };+ const title = text(entry.titleKey);+ const section = text(entry.sectionKey);+ const category = text(TAB_LABEL_KEY[entry.tab]);+ const english = [+ text(entry.titleKey, true),+ text(entry.sectionKey, true),+ text(TAB_LABEL_KEY[entry.tab], true),+ ];+ const searchText = normalizeSettingsSearchText(+ [title, section, category, ...english, ...(entry.keywordKeys ?? []).flatMap((key) => [text(key), text(key, true)]), ...(entry.descriptionKey ? [text(entry.descriptionKey), text(entry.descriptionKey, true)] : []), ...(entry.aliases ?? [])].join(' '),+ );+ return { entry, title, section, category, searchText };+ });+}++export function searchSettings(+ documents: readonly SettingsSearchDocument[],+ query: string,+): SettingsSearchDocument[] {+ const normalizedQuery = normalizeSettingsSearchText(query);+ if (!normalizedQuery) return [];++ return documents+ .map((document, index) => {+ const title = normalizeSettingsSearchText(document.title);+ const section = normalizeSettingsSearchText(document.section);+ const category = normalizeSettingsSearchText(document.category);+ if (+ !document.searchText.includes(normalizedQuery) &&+ !normalizedQuery.split(' ').every((token) => document.searchText.includes(token))+ ) {+ return null;+ }+ let score = 100;+ if (title === normalizedQuery) score += 1000;+ else if (title.startsWith(normalizedQuery)) score += 700;+ else if (title.includes(normalizedQuery)) score += 500;+ if (section.includes(normalizedQuery)) score += 300;+ if (category.includes(normalizedQuery)) score += 100;+ return { document, score, index };+ })+ .filter((match): match is { document: SettingsSearchDocument; score: number; index: number } => match !== null)+ .sort((a, b) => b.score - a.score || a.index - b.index)+ .map((match) => match.document);+}++/** Coverage guard: every declaration must be complete and have a unique id. */+export function validateSettingsSearchCatalog(): string[] {+ const errors: string[] = [];+ const ids = new Set<string>();+ for (const entry of SETTINGS_SEARCH_ENTRIES) {+ if (ids.has(entry.id)) errors.push('duplicate id: ' + entry.id);+ ids.add(entry.id);+ if (!entry.tab || !entry.targetId || !entry.titleKey || !entry.sectionKey) {+ errors.push('incomplete entry: ' + entry.id);+ }+ }+ return errors;+}++/** Accept existing short deep links, catalog ids, and concrete target ids. */+export function resolveSettingsSearchEntry(+ tab: SettingsTab,+ section: string | null,+): SettingsSearchEntry | null {+ if (!section) return null;+ const normalized = normalizeSettingsSearchText(section);+ return SETTINGS_SEARCH_ENTRIES.find(+ (entry) =>+ entry.tab === tab &&+ [entry.id, entry.id.split('.').at(-1) ?? '', entry.targetId, ...(entry.aliases ?? [])].some(+ (alias) => normalizeSettingsSearchText(alias) === normalized,+ ),+ ) ?? null;+}+++export function resolveSettingsSearchTarget(tab: SettingsTab, section: string | null): string | null {+ return resolveSettingsSearchEntry(tab, section)?.targetId ?? null;+}diff --git a/apps/desktop/src/renderer/components/settings/settingsSearchTypes.ts b/apps/desktop/src/renderer/components/settings/settingsSearchTypes.tsnew file mode 100644index 0000000000..0eaa11a51c--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/settingsSearchTypes.ts@@ -0,0 +1,26 @@+import type { VisibleSettingsTab } from '@/lib/tabLabels';+import type { ImBotIdentity } from './imBotVisibility';++export interface SettingsSearchContext extends ImBotIdentity {+ platform: string;+}++export interface SettingsSearchEntry {+ id: string;+ tab: VisibleSettingsTab;+ targetId: string;+ /** Parent section when an optional setting is not mounted yet. */+ fallbackTargetId?: string;+ titleKey: string;+ sectionKey: string;+ descriptionKey?: string;+ keywordKeys?: readonly string[];+ aliases?: readonly string[];+ isVisible?: (context: SettingsSearchContext) => boolean;+}++export interface SettingsSearchModule {+ id: string;+ order: number;+ entries: readonly SettingsSearchEntry[];+}diff --git a/apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.settings-search.ts b/apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.settings-search.tsnew file mode 100644index 0000000000..65a492049d--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.settings-search.ts@@ -0,0 +1,10 @@+import type { SettingsSearchModule } from '../settingsSearchTypes';++/** Static search metadata owned by this settings module; no component mounting or IPC. */+export default {+ id: 'usage',+ order: 4,+ entries: [+ { id: 'usage', tab: 'usage', targetId: 'settings-panel-usage', titleKey: 'settings.tabs.usage', sectionKey: 'settings.tabs.usage' },+ ],+} satisfies SettingsSearchModule;diff --git a/apps/desktop/src/renderer/components/settings/useSettingsSectionTarget.ts b/apps/desktop/src/renderer/components/settings/useSettingsSectionTarget.tsnew file mode 100644index 0000000000..23e3fe2b7c--- /dev/null+++ b/apps/desktop/src/renderer/components/settings/useSettingsSectionTarget.ts@@ -0,0 +1,32 @@+import { useEffect, type RefObject } from 'react';++/** Shared lifecycle for search selections and settings deep links. */+export function useSettingsSectionTarget(+ targetId: string | null,+ scrollRef: RefObject<HTMLDivElement | null>,+ navigationKey: string,+ fallbackTargetId?: string,+) {+ useEffect(() => {+ const container = scrollRef.current;+ if (!targetId || !container) return;+ let target: HTMLElement | null = null;+ let timer: number | undefined;+ const frame = window.requestAnimationFrame(() => {+ target = document.getElementById(targetId) ?? (fallbackTargetId ? document.getElementById(fallbackTargetId) : null);+ if (!target || !container.contains(target)) return;+ const top = target.getBoundingClientRect().top - container.getBoundingClientRect().top + container.scrollTop;+ container.scrollTo({+ top: Math.max(0, top - 8),+ behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth',+ });+ target.classList.add('settings-search-target-highlight');+ timer = window.setTimeout(() => target?.classList.remove('settings-search-target-highlight'), 1600);+ });+ return () => {+ window.cancelAnimationFrame(frame);+ if (timer !== undefined) window.clearTimeout(timer);+ target?.classList.remove('settings-search-target-highlight');+ };+ }, [targetId, fallbackTargetId, navigationKey, scrollRef]);+}diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 08c1de0bd4..00db1b35ae 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -383,6 +383,13 @@},"settings": {"title": "Settings",+ "search": {+ "ariaLabel": "Search settings",+ "placeholder": "Search settings",+ "resultsLabel": "Settings search results",+ "noResults": "No matching settings",+ "clear": "Clear search"+ },"back": "Back","defaults": {"customizedBadge": "Custom",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 25208b19f2..e09c3343ea 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -383,6 +383,13 @@},"settings": {"title": "設定",+ "search": {+ "ariaLabel": "設定を検索",+ "placeholder": "設定を検索",+ "resultsLabel": "設定の検索結果",+ "noResults": "一致する設定はありません",+ "clear": "検索をクリア"+ },"back": "戻る","defaults": {"customizedBadge": "カスタム",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex d860435a5b..5beb84f7c0 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -383,6 +383,13 @@},"settings": {"title": "설정",+ "search": {+ "ariaLabel": "설정 검색",+ "placeholder": "설정 검색",+ "resultsLabel": "설정 검색 결과",+ "noResults": "일치하는 설정이 없습니다",+ "clear": "검색 지우기"+ },"back": "뒤로","defaults": {"customizedBadge": "사용자 지정",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 303b1c9870..265fd6f00b 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -383,6 +383,13 @@},"settings": {"title": "设置",+ "search": {+ "ariaLabel": "搜索设置",+ "placeholder": "搜索设置",+ "resultsLabel": "设置搜索结果",+ "noResults": "没有匹配的设置",+ "clear": "清除搜索"+ },"back": "返回","defaults": {"customizedBadge": "已自定义",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 95742b8bfb..90f1f5e1ca 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -383,6 +383,13 @@},"settings": {"title": "設定",+ "search": {+ "ariaLabel": "搜尋設定",+ "placeholder": "搜尋設定",+ "resultsLabel": "設定搜尋結果",+ "noResults": "沒有符合的設定",+ "clear": "清除搜尋"+ },"back": "返回","defaults": {"customizedBadge": "已自定義",diff --git a/apps/desktop/src/renderer/styles/globals.css b/apps/desktop/src/renderer/styles/globals.cssindex ad5345ed7d..f79dfbff21 100644--- a/apps/desktop/src/renderer/styles/globals.css+++ b/apps/desktop/src/renderer/styles/globals.css@@ -1920,6 +1920,18 @@ mark.doc-search-mark [class] {color: inherit;}+/* Settings search navigation briefly marks the section selected from the+ sidebar. Reuse the existing dual-theme search tokens instead of baking a+ light-only color into the settings surface. */+.settings-search-target-highlight {+ outline: 1px solid hsl(var(--search-match-active-fg));+ outline-offset: 2px;+ box-shadow: 0 0 0 4px hsl(var(--search-match-active-bg) / 0.28);+ transition:+ outline-color var(--motion-fast) var(--motion-ease-move),+ box-shadow var(--motion-fast) var(--motion-ease-move);+}+@layer utilities {.text-sidebar-item-active-foreground {color: var(--sidebar-item-active-foreground);diff --git a/docs/design-rules/design-inventory.md b/docs/design-rules/design-inventory.mdindex 2cea784926..1a33a64c5d 100644--- a/docs/design-rules/design-inventory.md+++ b/docs/design-rules/design-inventory.md@@ -38,7 +38,7 @@| `desktop.overlay.toast` | desktop | Toast | App 常驻 ToastContainer(用户可见出口,不展开业务逻辑) | Toast, ToastContainer | apps/desktop/src/renderer/components/ui/toast/Toast.tsx, apps/desktop/src/renderer/components/ui/toast/ToastContainer.tsx, apps/desktop/src/renderer/components/ui/toast/index.ts | 5 | 4 | 3 || `desktop.plugins.app-main` | desktop | 插件主视图 | hash `/apps/:ghostId`(GhostMainViewFeatureLayout) | GhostMainViewFeatureLayout, GhostMainViewHost | apps/desktop/src/renderer/features/plugin/GhostMainViewFeatureLayout.tsx, apps/desktop/src/renderer/features/plugin/GhostMainViewHost.tsx | 0 | 0 | 0 || `desktop.plugins.installed` | desktop | 已装插件 | hash `/plugins`(GhostPluginPage) | AddMarketplaceDialog, GhostPluginDetailView, GhostPluginPage, MarketPluginDetailView, MyPublishesSection, PluginManagementLayout, PluginScopePicker, UpdateAllDialog | apps/desktop/src/renderer/features/plugin/AddMarketplaceDialog.tsx, apps/desktop/src/renderer/features/plugin/GhostPluginDetailView.tsx, apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx, apps/desktop/src/renderer/features/plugin/MarketPluginDetailView.tsx, apps/desktop/src/renderer/features/plugin/MyPublishesSection.tsx, apps/desktop/src/renderer/features/plugin/PluginManagementLayout.tsx, apps/desktop/src/renderer/features/plugin/PluginScopePicker.tsx, apps/desktop/src/renderer/features/plugin/UpdateAllDialog.tsx, apps/desktop/src/renderer/features/plugin/plugin-motion.css | 31 | 0 | 60 |-| `desktop.settings` | desktop | 设置 | hash `/settings`(SettingsView;tab 含 general / personalization / providers / billing / usage / voice-input / im-bot / shortcuts / agent-island / import / remote-control / ghosts / builtin-tools / computer-use / help / about) | SettingsView | apps/desktop/src/renderer/components/settings/AboutSection.tsx, apps/desktop/src/renderer/components/settings/AccountDeletionSection.tsx, apps/desktop/src/renderer/components/settings/AddProviderWizard.tsx, apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx, apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx, apps/desktop/src/renderer/components/settings/AppearanceSection.tsx, apps/desktop/src/renderer/components/settings/AuxiliaryModelSection.tsx, apps/desktop/src/renderer/components/settings/BetaChannelCell.tsx, apps/desktop/src/renderer/components/settings/BrowserBackendSubsection.tsx, apps/desktop/src/renderer/components/settings/BrowserRealProfileSubsection.tsx, apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx, apps/desktop/src/renderer/components/settings/ChatEmbeddingCell.tsx, apps/desktop/src/renderer/components/settings/ChipMetricsSection.tsx, apps/desktop/src/renderer/components/settings/CindyMakeSection.tsx, apps/desktop/src/renderer/components/settings/CollaborationSection.tsx, apps/desktop/src/renderer/components/settings/CompactionSection.tsx, apps/desktop/src/renderer/components/settings/ComposerSendShortcutSection.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionGuideWindow.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionRow.tsx, apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx, apps/desktop/src/renderer/components/settings/CustomProviderRuntimeFillOverlay.tsx, apps/desktop/src/renderer/components/settings/DefaultOverrideControls.tsx, apps/desktop/src/renderer/components/settings/DialogueDirectorySection.tsx, apps/desktop/src/renderer/components/settings/DingTalkBotSection.tsx, apps/desktop/src/renderer/components/settings/DiscordBotSection.tsx, apps/desktop/src/renderer/components/settings/DownloadMeter.tsx, apps/desktop/src/renderer/components/settings/ExperimentalSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotNotificationSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotSection.tsx, apps/desktop/src/renderer/components/settings/FontFamilyPicker.tsx, apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/GitSafetySection.tsx, apps/desktop/src/renderer/components/settings/HelpAssistantPanel.tsx, apps/desktop/src/renderer/components/settings/HelpSection.tsx, apps/desktop/src/renderer/components/settings/HelpThreadView.tsx, apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx, apps/desktop/src/renderer/components/settings/HookWorkspacePrefsEditor.tsx, apps/desktop/src/renderer/components/settings/ImBotSection.tsx, apps/desktop/src/renderer/components/settings/ImChannelSettingsCard.tsx, apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx, apps/desktop/src/renderer/components/settings/ImLifecycleAnnouncementSection.tsx, apps/desktop/src/renderer/components/settings/InputDeviceConnectionStatus.tsx, apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx, apps/desktop/src/renderer/components/settings/LanguageSection.tsx, apps/desktop/src/renderer/components/settings/LayoutResetControl.tsx, apps/desktop/src/renderer/components/settings/LinkOpenSection.tsx, apps/desktop/src/renderer/components/settings/LocalOllamaInstall.tsx, apps/desktop/src/renderer/components/settings/LocalPackagingTag.tsx, apps/desktop/src/renderer/components/settings/LogoutSection.tsx, apps/desktop/src/renderer/components/settings/LspBetaCell.tsx, apps/desktop/src/renderer/components/settings/McpServerDialog.tsx, apps/desktop/src/renderer/components/settings/McpServersSection.tsx, apps/desktop/src/renderer/components/settings/MemorySection.tsx, apps/desktop/src/renderer/components/settings/MessageNavRailCell.tsx, apps/desktop/src/renderer/components/settings/ModelAdvancedDrawer.tsx, apps/desktop/src/renderer/components/settings/ModelPriceOverrideDialog.tsx, apps/desktop/src/renderer/components/settings/MyDevicesPanel.tsx, apps/desktop/src/renderer/components/settings/NotificationSection.tsx, apps/desktop/src/renderer/components/settings/OAuthDeviceCodeCard.tsx, apps/desktop/src/renderer/components/settings/OllamaProviderDetail.tsx, apps/desktop/src/renderer/components/settings/PiKernelVersionRow.tsx, apps/desktop/src/renderer/components/settings/PiPackagesSection.tsx, apps/desktop/src/renderer/components/settings/PlayStationGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/ProfileEditDialog.tsx, apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx, apps/desktop/src/renderer/components/settings/ProviderImportDialog.tsx, apps/desktop/src/renderer/components/settings/ProvidersSection.tsx, apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx, apps/desktop/src/renderer/components/settings/RemoteDesktopPermissions.tsx, apps/desktop/src/renderer/components/settings/RemoteDesktopSetting.tsx, apps/desktop/src/renderer/components/settings/RemoteHostDetail.tsx, apps/desktop/src/renderer/components/settings/RemoteSection.tsx, apps/desktop/src/renderer/components/settings/SessionImportSection.tsx, apps/desktop/src/renderer/components/settings/SessionRuntimeFallbackCell.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.tsx, apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx, apps/desktop/src/renderer/components/settings/SettingsTextInput.tsx, apps/desktop/src/renderer/components/settings/SettingsView.tsx, apps/desktop/src/renderer/components/settings/SilentEncryptedRetryCell.tsx, apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx, apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx, apps/desktop/src/renderer/components/settings/StreamFadeSection.tsx, apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx, apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/TelegramBehaviorSettings.tsx, apps/desktop/src/renderer/components/settings/TelegramBotSection.tsx, apps/desktop/src/renderer/components/settings/TelegramRemoteDevices.tsx, apps/desktop/src/renderer/components/settings/TerminalShellSection.tsx, apps/desktop/src/renderer/components/settings/TipsSection.tsx, apps/desktop/src/renderer/components/settings/UnifiedModelList.tsx, apps/desktop/src/renderer/components/settings/UserProfileCard.tsx, apps/desktop/src/renderer/components/settings/UserPromptSection.tsx, apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx, apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx, apps/desktop/src/renderer/components/settings/WechatBotSection.tsx, apps/desktop/src/renderer/components/settings/WecomBotSection.tsx, apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeyboardLayout.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeycapGlyphs.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexSettings.tsx, apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsx, apps/desktop/src/renderer/components/settings/XUsageGuide.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx, apps/desktop/src/renderer/components/settings/androidStatusPresentation.ts, apps/desktop/src/renderer/components/settings/billingVisibility.ts, apps/desktop/src/renderer/components/settings/browserOpenForLoginError.ts, apps/desktop/src/renderer/components/settings/cindyMakeVisibility.ts, apps/desktop/src/renderer/components/settings/computerPermissionFlow.ts, apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsImportDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsListPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsManagerDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsSection.tsx, apps/desktop/src/renderer/components/settings/contacts/startContactsAiSession.ts, apps/desktop/src/renderer/components/settings/dialogueDirectoryDisplay.ts, apps/desktop/src/renderer/components/settings/dualSenseSilhouette.ts, apps/desktop/src/renderer/components/settings/feishuBotPresentation.ts, apps/desktop/src/renderer/components/settings/fontFamilyValue.ts, apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsx, apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.ts, apps/desktop/src/renderer/components/settings/hookWorkspacePrefsLogic.ts, apps/desktop/src/renderer/components/settings/imBotVisibility.ts, apps/desktop/src/renderer/components/settings/imDefaultSettingsLogic.ts, apps/desktop/src/renderer/components/settings/joyConSilhouette.ts, apps/desktop/src/renderer/components/settings/modelManagementPresentation.ts, apps/desktop/src/renderer/components/settings/modelManagementState.ts, apps/desktop/src/renderer/components/settings/myDevicesModel.ts, apps/desktop/src/renderer/components/settings/providerAssetModule.ts, apps/desktop/src/renderer/components/settings/realProfilePermissionGuide.ts, apps/desktop/src/renderer/components/settings/switchProSilhouette.ts, apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.ts, apps/desktop/src/renderer/components/settings/usage/UsageBreakdownTables.tsx, apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.tsx, apps/desktop/src/renderer/components/settings/usage/UsageStatRow.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTaskTable.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTokenBars.tsx, apps/desktop/src/renderer/components/settings/usage/formatUsagePercent.ts, apps/desktop/src/renderer/components/settings/usage/usageCharts.css, apps/desktop/src/renderer/components/settings/usage/usageHistoryColors.ts, apps/desktop/src/renderer/components/settings/usage/usageHistoryStats.ts, apps/desktop/src/renderer/components/settings/usageVisibility.ts, apps/desktop/src/renderer/components/settings/useProviderSubscriptionCard.ts, apps/desktop/src/renderer/components/settings/wizardRecommend.ts, apps/desktop/src/renderer/components/settings/workLouderCodexCommandCopy.ts, apps/desktop/src/renderer/components/settings/xboxSeriesSilhouette.ts, apps/desktop/src/renderer/styles/sortable.css | 138 | 109 | 551 |+| `desktop.settings` | desktop | 设置 | hash `/settings`(SettingsView;tab 含 general / personalization / providers / billing / usage / voice-input / im-bot / shortcuts / agent-island / import / remote-control / ghosts / builtin-tools / computer-use / help / about) | SettingsView | apps/desktop/src/renderer/components/settings/AboutSection.settings-search.ts, apps/desktop/src/renderer/components/settings/AboutSection.tsx, apps/desktop/src/renderer/components/settings/AccountDeletionSection.tsx, apps/desktop/src/renderer/components/settings/AddProviderWizard.tsx, apps/desktop/src/renderer/components/settings/AgentIslandSection.settings-search.ts, apps/desktop/src/renderer/components/settings/AgentIslandSection.tsx, apps/desktop/src/renderer/components/settings/AgentResourceSection.settings-search.ts, apps/desktop/src/renderer/components/settings/AgentResourceSection.tsx, apps/desktop/src/renderer/components/settings/AppearanceSection.settings-search.ts, apps/desktop/src/renderer/components/settings/AppearanceSection.tsx, apps/desktop/src/renderer/components/settings/AuxiliaryModelSection.tsx, apps/desktop/src/renderer/components/settings/BetaChannelCell.tsx, apps/desktop/src/renderer/components/settings/BillingSettings.settings-search.ts, apps/desktop/src/renderer/components/settings/BrowserBackendSubsection.tsx, apps/desktop/src/renderer/components/settings/BrowserRealProfileSubsection.tsx, apps/desktop/src/renderer/components/settings/BuiltinToolsSection.settings-search.ts, apps/desktop/src/renderer/components/settings/BuiltinToolsSection.tsx, apps/desktop/src/renderer/components/settings/ChatEmbeddingCell.tsx, apps/desktop/src/renderer/components/settings/ChipMetricsSection.tsx, apps/desktop/src/renderer/components/settings/CindyMakeSection.settings-search.ts, apps/desktop/src/renderer/components/settings/CindyMakeSection.tsx, apps/desktop/src/renderer/components/settings/CollaborationSection.settings-search.ts, apps/desktop/src/renderer/components/settings/CollaborationSection.tsx, apps/desktop/src/renderer/components/settings/CompactionSection.tsx, apps/desktop/src/renderer/components/settings/ComposerSendShortcutSection.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionGuideWindow.tsx, apps/desktop/src/renderer/components/settings/ComputerPermissionRow.tsx, apps/desktop/src/renderer/components/settings/ComputerUseSection.settings-search.ts, apps/desktop/src/renderer/components/settings/ComputerUseSection.tsx, apps/desktop/src/renderer/components/settings/CustomProviderRuntimeFillOverlay.tsx, apps/desktop/src/renderer/components/settings/DefaultOverrideControls.tsx, apps/desktop/src/renderer/components/settings/DialogueDirectorySection.tsx, apps/desktop/src/renderer/components/settings/DingTalkBotSection.tsx, apps/desktop/src/renderer/components/settings/DiscordBotSection.tsx, apps/desktop/src/renderer/components/settings/DownloadMeter.tsx, apps/desktop/src/renderer/components/settings/ExperimentalSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotNotificationSection.tsx, apps/desktop/src/renderer/components/settings/FeishuBotSection.tsx, apps/desktop/src/renderer/components/settings/FontFamilyPicker.tsx, apps/desktop/src/renderer/components/settings/GeneralSettings.settings-search.ts, apps/desktop/src/renderer/components/settings/GenericGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/GitSafetySection.settings-search.ts, apps/desktop/src/renderer/components/settings/GitSafetySection.tsx, apps/desktop/src/renderer/components/settings/HelpAssistantPanel.tsx, apps/desktop/src/renderer/components/settings/HelpSection.settings-search.ts, apps/desktop/src/renderer/components/settings/HelpSection.tsx, apps/desktop/src/renderer/components/settings/HelpThreadView.tsx, apps/desktop/src/renderer/components/settings/HookConnectionsSection.tsx, apps/desktop/src/renderer/components/settings/HookWorkspacePrefsEditor.tsx, apps/desktop/src/renderer/components/settings/ImBotSection.settings-search.ts, apps/desktop/src/renderer/components/settings/ImBotSection.tsx, apps/desktop/src/renderer/components/settings/ImChannelSettingsCard.tsx, apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx, apps/desktop/src/renderer/components/settings/ImLifecycleAnnouncementSection.tsx, apps/desktop/src/renderer/components/settings/InputDeviceConnectionStatus.tsx, apps/desktop/src/renderer/components/settings/JoyConGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.settings-search.ts, apps/desktop/src/renderer/components/settings/KeyboardShortcutsSection.tsx, apps/desktop/src/renderer/components/settings/LanguageSection.tsx, apps/desktop/src/renderer/components/settings/LayoutResetControl.tsx, apps/desktop/src/renderer/components/settings/LinkOpenSection.tsx, apps/desktop/src/renderer/components/settings/LocalOllamaInstall.tsx, apps/desktop/src/renderer/components/settings/LocalPackagingTag.tsx, apps/desktop/src/renderer/components/settings/LogoutSection.tsx, apps/desktop/src/renderer/components/settings/LspBetaCell.tsx, apps/desktop/src/renderer/components/settings/McpServerDialog.tsx, apps/desktop/src/renderer/components/settings/McpServersSection.tsx, apps/desktop/src/renderer/components/settings/MemorySection.tsx, apps/desktop/src/renderer/components/settings/MessageNavRailCell.tsx, apps/desktop/src/renderer/components/settings/ModelAdvancedDrawer.tsx, apps/desktop/src/renderer/components/settings/ModelPriceOverrideDialog.tsx, apps/desktop/src/renderer/components/settings/MyDevicesPanel.tsx, apps/desktop/src/renderer/components/settings/NotificationSection.settings-search.ts, apps/desktop/src/renderer/components/settings/NotificationSection.tsx, apps/desktop/src/renderer/components/settings/OAuthDeviceCodeCard.tsx, apps/desktop/src/renderer/components/settings/OllamaProviderDetail.tsx, apps/desktop/src/renderer/components/settings/PersonalizationDetails.settings-search.ts, apps/desktop/src/renderer/components/settings/PersonalizationSettings.settings-search.ts, apps/desktop/src/renderer/components/settings/PiKernelVersionRow.tsx, apps/desktop/src/renderer/components/settings/PiPackagesSection.tsx, apps/desktop/src/renderer/components/settings/PlayStationGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/ProfileEditDialog.tsx, apps/desktop/src/renderer/components/settings/ProviderConnectionDialog.tsx, apps/desktop/src/renderer/components/settings/ProviderImportDialog.tsx, apps/desktop/src/renderer/components/settings/ProvidersSection.settings-search.ts, apps/desktop/src/renderer/components/settings/ProvidersSection.tsx, apps/desktop/src/renderer/components/settings/RemoteControlSection.settings-search.ts, apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx, apps/desktop/src/renderer/components/settings/RemoteDesktopPermissions.tsx, apps/desktop/src/renderer/components/settings/RemoteDesktopSetting.tsx, apps/desktop/src/renderer/components/settings/RemoteHostDetail.tsx, apps/desktop/src/renderer/components/settings/RemoteSection.tsx, apps/desktop/src/renderer/components/settings/SessionImportSection.settings-search.ts, apps/desktop/src/renderer/components/settings/SessionImportSection.tsx, apps/desktop/src/renderer/components/settings/SessionRuntimeFallbackCell.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.settings-search.ts, apps/desktop/src/renderer/components/settings/SettingsCatalogPanel.tsx, apps/desktop/src/renderer/components/settings/SettingsSearchBox.tsx, apps/desktop/src/renderer/components/settings/SettingsSearchNavigation.ts, apps/desktop/src/renderer/components/settings/SettingsSidebarNav.tsx, apps/desktop/src/renderer/components/settings/SettingsTextInput.tsx, apps/desktop/src/renderer/components/settings/SettingsView.tsx, apps/desktop/src/renderer/components/settings/SilentEncryptedRetryCell.tsx, apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx, apps/desktop/src/renderer/components/settings/StorageManagementCard.settings-search.ts, apps/desktop/src/renderer/components/settings/StorageManagementCard.tsx, apps/desktop/src/renderer/components/settings/StreamFadeSection.tsx, apps/desktop/src/renderer/components/settings/SubagentModelSection.settings-search.ts, apps/desktop/src/renderer/components/settings/SubagentModelSection.tsx, apps/desktop/src/renderer/components/settings/SwitchProGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/TelegramBehaviorSettings.tsx, apps/desktop/src/renderer/components/settings/TelegramBotSection.tsx, apps/desktop/src/renderer/components/settings/TelegramRemoteDevices.tsx, apps/desktop/src/renderer/components/settings/TerminalShellSection.tsx, apps/desktop/src/renderer/components/settings/TipsSection.settings-search.ts, apps/desktop/src/renderer/components/settings/TipsSection.tsx, apps/desktop/src/renderer/components/settings/UnifiedModelList.tsx, apps/desktop/src/renderer/components/settings/UserProfileCard.tsx, apps/desktop/src/renderer/components/settings/UserPromptSection.tsx, apps/desktop/src/renderer/components/settings/VisionBridgeSection.settings-search.ts, apps/desktop/src/renderer/components/settings/VisionBridgeSection.tsx, apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts, apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx, apps/desktop/src/renderer/components/settings/WechatBotSection.tsx, apps/desktop/src/renderer/components/settings/WecomBotSection.tsx, apps/desktop/src/renderer/components/settings/WindowBehaviorSection.settings-search.ts, apps/desktop/src/renderer/components/settings/WindowBehaviorSection.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeyboardLayout.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexKeycapGlyphs.tsx, apps/desktop/src/renderer/components/settings/WorkLouderCodexSettings.tsx, apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.settings-search.ts, apps/desktop/src/renderer/components/settings/WorktreeRecycleCard.tsx, apps/desktop/src/renderer/components/settings/XUsageGuide.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadLayout.tsx, apps/desktop/src/renderer/components/settings/XboxGamepadSettings.tsx, apps/desktop/src/renderer/components/settings/androidStatusPresentation.ts, apps/desktop/src/renderer/components/settings/billingVisibility.ts, apps/desktop/src/renderer/components/settings/browserOpenForLoginError.ts, apps/desktop/src/renderer/components/settings/cindyMakeVisibility.ts, apps/desktop/src/renderer/components/settings/computerPermissionFlow.ts, apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsImportDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsListPane.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsManagerDialog.tsx, apps/desktop/src/renderer/components/settings/contacts/ContactsSection.tsx, apps/desktop/src/renderer/components/settings/contacts/startContactsAiSession.ts, apps/desktop/src/renderer/components/settings/dialogueDirectoryDisplay.ts, apps/desktop/src/renderer/components/settings/dualSenseSilhouette.ts, apps/desktop/src/renderer/components/settings/feishuBotPresentation.ts, apps/desktop/src/renderer/components/settings/fontFamilyValue.ts, apps/desktop/src/renderer/components/settings/gamepadLayoutPrimitives.tsx, apps/desktop/src/renderer/components/settings/gamepadSilhouetteGeom.ts, apps/desktop/src/renderer/components/settings/hookWorkspacePrefsLogic.ts, apps/desktop/src/renderer/components/settings/imBotVisibility.ts, apps/desktop/src/renderer/components/settings/imDefaultSettingsLogic.ts, apps/desktop/src/renderer/components/settings/joyConSilhouette.ts, apps/desktop/src/renderer/components/settings/modelManagementPresentation.ts, apps/desktop/src/renderer/components/settings/modelManagementState.ts, apps/desktop/src/renderer/components/settings/myDevicesModel.ts, apps/desktop/src/renderer/components/settings/providerAssetModule.ts, apps/desktop/src/renderer/components/settings/realProfilePermissionGuide.ts, apps/desktop/src/renderer/components/settings/settingsSearchCatalog.ts, apps/desktop/src/renderer/components/settings/settingsSearchTypes.ts, apps/desktop/src/renderer/components/settings/switchProSilhouette.ts, apps/desktop/src/renderer/components/settings/ultimateC1Silhouette.ts, apps/desktop/src/renderer/components/settings/usage/UsageBreakdownTables.tsx, apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.settings-search.ts, apps/desktop/src/renderer/components/settings/usage/UsageHistorySection.tsx, apps/desktop/src/renderer/components/settings/usage/UsageStatRow.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTaskTable.tsx, apps/desktop/src/renderer/components/settings/usage/UsageTokenBars.tsx, apps/desktop/src/renderer/components/settings/usage/formatUsagePercent.ts, apps/desktop/src/renderer/components/settings/usage/usageCharts.css, apps/desktop/src/renderer/components/settings/usage/usageHistoryColors.ts, apps/desktop/src/renderer/components/settings/usage/usageHistoryStats.ts, apps/desktop/src/renderer/components/settings/usageVisibility.ts, apps/desktop/src/renderer/components/settings/useProviderSubscriptionCard.ts, apps/desktop/src/renderer/components/settings/useSettingsSectionTarget.ts, apps/desktop/src/renderer/components/settings/wizardRecommend.ts, apps/desktop/src/renderer/components/settings/workLouderCodexCommandCopy.ts, apps/desktop/src/renderer/components/settings/xboxSeriesSilhouette.ts, apps/desktop/src/renderer/styles/sortable.css | 138 | 109 | 554 || `desktop.shell.main-layout` | desktop | 主窗口壳(标题栏 / 左右栏 / 内容区) | main BrowserWindow → renderer/index.tsx → main-entry.tsx → App → MainLayout (`#/` 受保护壳) | ChromeActions, DeviceSectionHeader, FeishuConflictDialogHost, GhostMediaLightboxHost, MainLayout, ProjectsSection, RightSidebar, RightSidebarShell, SessionShareImportWizard, Sidebar, UpdateNoticeDialog, WindowControls | apps/desktop/src/renderer/cindy-brain/GhostMediaLightboxHost.tsx, apps/desktop/src/renderer/components/UpdateNoticeDialog.tsx, apps/desktop/src/renderer/components/feishuBot/FeishuConflictDialog.tsx, apps/desktop/src/renderer/components/feishuBot/FeishuConflictDialogHost.tsx, apps/desktop/src/renderer/components/layout/AppBadgeAttentionSync.tsx, apps/desktop/src/renderer/components/layout/BrowserWebviewPool.tsx, apps/desktop/src/renderer/components/layout/ChromeActions.tsx, apps/desktop/src/renderer/components/layout/ContentHeader.tsx, apps/desktop/src/renderer/components/layout/CredentialStoreBanner.tsx, apps/desktop/src/renderer/components/layout/FadeSwitcher.tsx, apps/desktop/src/renderer/components/layout/GhostPanelWindowLayout.tsx, apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsx, apps/desktop/src/renderer/components/layout/MainEntryRedirect.tsx, apps/desktop/src/renderer/components/layout/MainLayout.tsx, apps/desktop/src/renderer/components/layout/RightSidebar.tsx, apps/desktop/src/renderer/components/layout/RightSidebarDetach.tsx, apps/desktop/src/renderer/components/layout/RightSidebarMaximize.tsx, apps/desktop/src/renderer/components/layout/RightSidebarToggle.tsx, apps/desktop/src/renderer/components/layout/SidebarWindowLayout.tsx, apps/desktop/src/renderer/components/layout/chromeActionsGeometry.ts, apps/desktop/src/renderer/components/layout/chromeActionsLayout.ts, apps/desktop/src/renderer/components/layout/railChromeActions.ts, apps/desktop/src/renderer/components/layout/windowDrag.tsx, apps/desktop/src/renderer/components/settings/SessionShareImportWizard.tsx, apps/desktop/src/renderer/components/sidebar/AccountSwitcherDialog.tsx, apps/desktop/src/renderer/components/sidebar/AttentionDot.tsx, apps/desktop/src/renderer/components/sidebar/DatabaseSizeWarningBanner.tsx, apps/desktop/src/renderer/components/sidebar/GhostMainViewNavEntries.tsx, apps/desktop/src/renderer/components/sidebar/MobileDownloadDialog.tsx, apps/desktop/src/renderer/components/sidebar/Sidebar.tsx, apps/desktop/src/renderer/components/sidebar/SidebarIconButton.tsx, apps/desktop/src/renderer/components/sidebar/SidebarTopNav.tsx, apps/desktop/src/renderer/components/sidebar/SortableList.tsx, apps/desktop/src/renderer/components/sidebar/UpdateBanner.tsx, apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx, apps/desktop/src/renderer/components/sidebar/VendorIcon.tsx, apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsx, apps/desktop/src/renderer/components/sidebar/WorktreeBadge.tsx, apps/desktop/src/renderer/components/title-bar/ChromeIconButton.tsx, apps/desktop/src/renderer/components/title-bar/MenuButton.tsx, apps/desktop/src/renderer/components/title-bar/WindowControls.tsx, apps/desktop/src/renderer/features/cc-agent/sidebar/DeviceSectionHeader.tsx, apps/desktop/src/renderer/features/cc-agent/sidebar/sections/ProjectsSection.tsx, apps/desktop/src/renderer/features/right-sidebar/AddTabDropdown.tsx, apps/desktop/src/renderer/features/right-sidebar/EmptyState.tsx, apps/desktop/src/renderer/features/right-sidebar/RightSidebarShell.tsx, apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx, apps/desktop/src/renderer/features/right-sidebar/TabBodyErrorBoundary.tsx, apps/desktop/src/renderer/features/right-sidebar/hooks/useBrowserWebview.ts, apps/desktop/src/renderer/features/right-sidebar/hooks/useNativePopupSurface.ts, apps/desktop/src/renderer/features/right-sidebar/iosSimulatorPluginAvailability.ts, apps/desktop/src/renderer/features/right-sidebar/lib/browserPartition.ts, apps/desktop/src/renderer/features/right-sidebar/lib/browserWebviewPool.ts, apps/desktop/src/renderer/features/right-sidebar/lib/detachedSidebarRouting.ts, apps/desktop/src/renderer/features/right-sidebar/lib/executeSidebarCommand.ts, apps/desktop/src/renderer/features/right-sidebar/lib/iosSimulatorFocusBridge.ts, apps/desktop/src/renderer/features/right-sidebar/lib/lastTurnChangedFiles.ts, apps/desktop/src/renderer/features/right-sidebar/lib/nativePopupTabs.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openBackgroundTasksTab.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openInSidebarBrowser.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openInSidebarFileBrowser.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openRoutinesTab.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openSubagentsTab.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openTerminalShortcut.ts, apps/desktop/src/renderer/features/right-sidebar/lib/openTurnReview.ts, apps/desktop/src/renderer/features/right-sidebar/lib/popupRouter.ts, apps/desktop/src/renderer/features/right-sidebar/lib/popupTabs.ts, apps/desktop/src/renderer/features/right-sidebar/lib/rsbBrowserBridge.ts, apps/desktop/src/renderer/features/right-sidebar/lib/sidebarCommands.ts, apps/desktop/src/renderer/features/right-sidebar/lib/sidebarHostSession.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/BackgroundTasksBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/WorkflowAgentStrip.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/WorkflowProgressTree.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/chatTaskFocusIntent.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/listSessionTasks.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/background-tasks/workflowProgressModel.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/cindy-make/CindyMakeTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/cindy-make/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.css, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/dropExternalFile.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/fileTreeImagePreview.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/useSessionScopedTreeWidth.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/index.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorInstanceGrid.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/iosSimulatorH264Decoder.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/actions.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/closeDecision.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/ResourceUsageBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/resource-usage.css, apps/desktop/src/renderer/features/right-sidebar/plugins/resource-usage/subscription.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/ImageDiffPreview.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/MarkdownDiffPreview.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/PlainUnifiedDiff.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/diffRows.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/highlight.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/inlineDiff.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/DiffViewer/useDiffHighlights.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/ReviewTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/diffExpansionPreference.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/fileTree.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/gitApplyCommand.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/review/markdownPreview.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useLastTurnFilter.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewSource.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/routines/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/ConversationStream.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/DetailView.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/RunList.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentChrome.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentToolCard.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/SubagentsBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentChangeFence.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentConversation.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/subagents/subagentFormat.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/TerminalTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/terminal/lib/xtermPool.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserChrome.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserCommentPopover.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/BrowserTabBody.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/browserCommentEditorDraft.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsx, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/lib/parseOmnibox.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/useBrowserComment.ts, apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/useLocalHtmlAutoReload.ts, apps/desktop/src/renderer/features/right-sidebar/registry.ts, apps/desktop/src/renderer/features/right-sidebar/store.ts, apps/desktop/src/renderer/features/right-sidebar/types.ts, apps/desktop/src/renderer/layout/LayoutRoot.tsx, apps/desktop/src/renderer/layout/PanelDragController.tsx, apps/desktop/src/renderer/layout/PanelDragPrototype.tsx, apps/desktop/src/renderer/layout/collapsePrefs.ts, apps/desktop/src/renderer/layout/layoutDevTools.ts, apps/desktop/src/renderer/layout/panePlacement.tsx, apps/desktop/src/renderer/layout/paneWidths.tsx, apps/desktop/src/renderer/layout/panelMaximize.tsx, apps/desktop/src/renderer/styles/generated/tokens.css, apps/desktop/src/renderer/styles/globals.css | 137 | 46 | 260 || `desktop.skillhub.local` | desktop | SkillHub 本地技能 | hash `/skillhub/local` 及统一详情 `/skillhub/detail`(旧详情链接重定向) | InstallTargetPicker, PluginManagementLayout, SkillDetailLayout, SkillhubDetailRoute, SkillhubDetailView, SkillhubFeatureLayout, SkillhubHomeView, SkillhubLocalLayout, SkillhubMarketDetailView | apps/desktop/src/renderer/features/plugin/PluginManagementLayout.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubDetailRoute.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubFeatureLayout.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubHomeView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubLocalLayout.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubMarketDetailView.tsx, apps/desktop/src/renderer/features/skillhub/components/InstallTargetPicker.tsx, apps/desktop/src/renderer/features/skillhub/components/SkillDetailLayout.tsx | 39 | 0 | 45 || `desktop.skillhub.market` | desktop | SkillHub 市场 | hash `/skillhub/market`(SkillhubMarketListView) | InstallTargetPicker, MarketCard, MarketInfoEditDialog, SkillhubMarketDetailView, SkillhubMarketListView, VisibilityEditorDialog | apps/desktop/src/renderer/features/skillhub/SkillhubMarketDetailView.tsx, apps/desktop/src/renderer/features/skillhub/SkillhubMarketListView.tsx, apps/desktop/src/renderer/features/skillhub/components/HomeMarketCard.tsx, apps/desktop/src/renderer/features/skillhub/components/InstallTargetPicker.tsx, apps/desktop/src/renderer/features/skillhub/components/LocalSkillControls.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketCard.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketInfoEditDialog.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketInstallStatus.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketListError.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketLocalSkills.tsx, apps/desktop/src/renderer/features/skillhub/components/MarketPreviewTree.tsx, apps/desktop/src/renderer/features/skillhub/components/OfficialSkillBadge.tsx, apps/desktop/src/renderer/features/skillhub/components/PlatformTagSelector.tsx, apps/desktop/src/renderer/features/skillhub/components/SkillCategoryFilterBar.tsx, apps/desktop/src/renderer/features/skillhub/components/SkillDetailLayout.tsx, apps/desktop/src/renderer/features/skillhub/components/SkillIcon.tsx, apps/desktop/src/renderer/features/skillhub/components/SkillTagList.tsx, apps/desktop/src/renderer/features/skillhub/components/TeamScopePicker.tsx, apps/desktop/src/renderer/features/skillhub/components/VisibilityEditorDialog.tsx | 47 | 0 | 53 |