Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(sidebar): 精简菜单选项文案并调整任务状态图标 (#4438)
Dash2aa39576287e
diff --git a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.tsindex 1d62f9c89b..b5827857be 100644--- a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts+++ b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts@@ -332,9 +332,7 @@ describe('远程机器切换入口并入 SidebarTopNav(置顶段上方,固定不expect(pinnedProjectsBlock).not.toContain('filter.projectsAsSet');expect(pinnedProjectsBlock).not.toContain('allowedProjects');// 「最近活跃」本就豁免:置顶取 allGroups(未经活跃时间收窄),不是 activityFilteredSessions。- expect(sidebarUpperSource).toMatch(- /const allGroups = useProjectGroups\(\s*sidebarSessions/,- );+ expect(sidebarUpperSource).toMatch(/const allGroups = useProjectGroups\(\s*sidebarSessions/);});// 2026-08-12 用户裁决:任务信息按用户勾选顺序显示(先勾时间再勾费用 → 时间在前)。@@ -373,7 +371,7 @@ describe('远程机器切换入口并入 SidebarTopNav(置顶段上方,固定不expect(filterSource).toContain('Icon={Filter}');expect(filterSource).toContain('toggleProject(DIALOGUE_FILTER_KEY)');expect(filterSource).toContain("t('ccAgent.sidebar.dialogues')");- expect(filterSource).toContain('Icon={CircleDot}');+ expect(filterSource).toContain('Icon={ListChecks}');expect(filterSource).toContain('Icon={Folder}');expect(filterSource).toContain('Icon={Bot}');expect(filterSource).toContain('Icon={CalendarClock}');diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SidebarFilterPopover.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SidebarFilterPopover.tsxindex 99d574a017..052f5ef179 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SidebarFilterPopover.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SidebarFilterPopover.tsx@@ -25,6 +25,7 @@ import {createLucideIcon,GripVertical,Layers,+ ListChecks,ListOrdered,MessageSquare,Monitor,@@ -671,7 +672,7 @@ export function SidebarFilterPopover({<MenuSubRowlabel={t('ccAgent.sidebar.taskStatusHeading')}value={statusValue}- Icon={CircleDot}+ Icon={ListChecks}>{STATUS_OPTIONS.map((option) => (<SelectMenuItemdiff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SidebarFilterPopover.test.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SidebarFilterPopover.test.tsxindex 3a3db9ddcb..76c2aec5e0 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SidebarFilterPopover.test.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SidebarFilterPopover.test.tsx@@ -104,6 +104,7 @@ describe('sidebar display settings menu', () => {'任务信息',]);for (const row of rows) expect(row.querySelector('svg')).not.toBeNull();+ expect(rows[3].querySelector('.lucide-list-checks')).not.toBeNull();expect(rows[0].textContent).toContain('项目、对话、设备');expect(rows[2].textContent).toContain('跟随任务');const submenu = await openSubmenu(/^任务排序/);@@ -111,11 +112,17 @@ describe('sidebar display settings menu', () => {within(submenu).getAllByRole('menuitem').map((row) => row.textContent),- ).toEqual(['按优先级', '按最近活动', '按创建时间']);- fireEvent.click(within(submenu).getByRole('menuitem', { name: '按创建时间' }));+ ).toEqual(['优先级', '最近活动', '创建时间']);+ fireEvent.click(within(submenu).getByRole('menuitem', { name: '创建时间' }));expect(filter.setSortBy).toHaveBeenCalledWith('created');expect(screen.getAllByRole('menu')).toHaveLength(2);- expect(within(submenu).getByRole('menuitem', { name: '按创建时间' })).not.toBeNull();+ expect(within(submenu).getByRole('menuitem', { name: '创建时间' })).not.toBeNull();+ const statusMenu = await openSubmenu(/^任务状态/);+ expect(+ within(statusMenu)+ .getByRole('menuitem', { name: '活跃' })+ .querySelector('.lucide-circle-dot'),+ ).not.toBeNull();});it('keeps status independent from content filters and exposes a selectable Pi harness', async () => {@@ -147,7 +154,7 @@ describe('sidebar display settings menu', () => {within(group).getAllByRole('menuitem').map((row) => row.textContent),- ).toEqual(['按项目', '按对话']);+ ).toEqual(['项目', '对话']);expect(filter.groupDevice).toBe(true);});});diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex fbdc215269..fbce8a009e 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -2152,7 +2152,11 @@"endpointLabel": "{{agent}} base URL","noAuthNote": "This proxy needs no client key; Cindy removes CLI subscription credentials before forwarding.","signIn": "Sign in",- "setupLink": {"apiKey": "Get an API key", "account": "Sign up or sign in", "setup": "Setup help"},+ "setupLink": {+ "apiKey": "Get an API key",+ "account": "Sign up or sign in",+ "setup": "Setup help"+ },"fetching": "Verifying connection and fetching models…","fetchFailed": "Couldn't fetch the model list — you can finish with the preset's recommended models and refresh later in details","manualModelHint": "No models were discovered. Enter the exact model ID exposed by this proxy.",@@ -9540,10 +9544,10 @@"pi": "Pi"},"filterGroupBy": {- "project": "By project",+ "project": "Project","flat": "Flat list",- "device": "By device",- "dialogue": "By chat"+ "device": "Device",+ "dialogue": "Chat"},"filterGroupByDeviceManualTip": "Group by device is unavailable while sorting manually","deviceGroup": {@@ -9566,7 +9570,7 @@"all": "All"},"filterSortBy": {- "created": "Created Time",+ "created": "Creation Time","activity": "Recent Activity","recency": "By time","manual": "Manual",@@ -9843,9 +9847,9 @@"all": "All"},"sortTaskBy": {- "priority": "By priority",- "activity": "By recent activity",- "created": "By creation time"+ "priority": "Priority",+ "activity": "Recent Activity",+ "created": "Creation Time"}},"rename": {diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex a25a9cab09..2244e12282 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -2151,7 +2151,11 @@"endpointLabel": "{{agent}} ベース URL","noAuthNote": "このプロキシにクライアントキーは不要です。Cindy は転送前に CLI のサブスクリプション認証情報を削除します。","signIn": "ログイン",- "setupLink": {"apiKey": "API キーを取得", "account": "登録・ログイン", "setup": "設定ガイド"},+ "setupLink": {+ "apiKey": "API キーを取得",+ "account": "登録・ログイン",+ "setup": "設定ガイド"+ },"fetching": "接続を確認してモデル一覧を取得しています…","fetchFailed": "モデル一覧を取得できませんでした。プリセットの推奨モデルで追加を完了し、あとで詳細から更新できます","manualModelHint": "モデルを検出できませんでした。このプロキシが提供する正確なモデル ID を入力してください。",@@ -9525,10 +9529,10 @@"pi": "Pi"},"filterGroupBy": {- "project": "プロジェクト別",+ "project": "プロジェクト","flat": "フラット表示",- "device": "デバイス別",- "dialogue": "チャット別"+ "device": "デバイス",+ "dialogue": "チャット"},"filterGroupByDeviceManualTip": "手動並び替え中はデバイスグループを使えません","deviceGroup": {@@ -9828,9 +9832,9 @@"all": "すべて"},"sortTaskBy": {- "priority": "優先度順",- "activity": "最近のアクティビティ順",- "created": "作成日時順"+ "priority": "優先度",+ "activity": "最近のアクティビティ",+ "created": "作成日時"}},"rename": {diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex fe953a30d7..b658969371 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -2151,7 +2151,11 @@"endpointLabel": "{{agent}} 기본 URL","noAuthNote": "이 프록시는 클라이언트 키가 필요하지 않습니다. Cindy는 전달 전에 CLI 구독 자격 증명을 제거합니다.","signIn": "로그인",- "setupLink": {"apiKey": "API 키 받기", "account": "가입 또는 로그인", "setup": "설정 도움말"},+ "setupLink": {+ "apiKey": "API 키 받기",+ "account": "가입 또는 로그인",+ "setup": "설정 도움말"+ },"fetching": "연결을 확인하고 모델 목록을 가져오는 중…","fetchFailed": "모델 목록을 가져오지 못했습니다. 프리셋 추천 모델로 추가를 완료한 뒤 나중에 상세에서 새로고침할 수 있습니다","manualModelHint": "검색된 모델이 없습니다. 이 프록시가 제공하는 정확한 모델 ID를 입력하세요.",@@ -9525,10 +9529,10 @@"pi": "Pi"},"filterGroupBy": {- "project": "프로젝트별",+ "project": "프로젝트","flat": "평면 목록",- "device": "기기별",- "dialogue": "대화별"+ "device": "기기",+ "dialogue": "대화"},"filterGroupByDeviceManualTip": "수동 정렬 중에는 기기별 그룹을 사용할 수 없습니다","deviceGroup": {@@ -9828,9 +9832,9 @@"all": "전체"},"sortTaskBy": {- "priority": "우선순위순",- "activity": "최근 활동순",- "created": "생성 시간순"+ "priority": "우선순위",+ "activity": "최근 활동",+ "created": "생성 시간"}},"rename": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 6f33e351ba..1792a08da9 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -2151,7 +2151,7 @@"endpointLabel": "{{agent}} 基础 URL","noAuthNote": "此 Proxy 无需客户端密钥;Cindy 会在转发前移除 CLI 的订阅凭证。","signIn": "登录",- "setupLink": {"apiKey": "获取 API Key", "account": "注册或登录", "setup": "设置帮助"},+ "setupLink": { "apiKey": "获取 API Key", "account": "注册或登录", "setup": "设置帮助" },"fetching": "正在验证连接并获取模型列表…","fetchFailed": "模型列表获取失败——可先按预设推荐模型完成添加,稍后在详情里刷新","manualModelHint": "未发现可用模型,请填写此 Proxy 实际提供的模型 ID。",@@ -9525,10 +9525,10 @@"pi": "Pi"},"filterGroupBy": {- "project": "按项目",+ "project": "项目","flat": "平铺",- "device": "按设备",- "dialogue": "按对话"+ "device": "设备",+ "dialogue": "对话"},"filterGroupByDeviceManualTip": "手动排序时按设备分组暂不可用","deviceGroup": {@@ -9828,9 +9828,9 @@"all": "全部"},"sortTaskBy": {- "priority": "按优先级",- "activity": "按最近活动",- "created": "按创建时间"+ "priority": "优先级",+ "activity": "最近活动",+ "created": "创建时间"}},"rename": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex d318c29cd4..5391418f79 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -2151,7 +2151,7 @@"endpointLabel": "{{agent}} 基礎 URL","noAuthNote": "此 Proxy 無需客戶端金鑰;Cindy 會在轉發前移除 CLI 的訂閱憑證。","signIn": "登入",- "setupLink": {"apiKey": "取得 API Key", "account": "註冊或登入", "setup": "設定說明"},+ "setupLink": { "apiKey": "取得 API Key", "account": "註冊或登入", "setup": "設定說明" },"fetching": "正在驗證連線並獲取模型列表…","fetchFailed": "模型列表獲取失敗——可先按預設推薦模型完成新增,稍後在詳情裡重新整理","manualModelHint": "未發現可用模型,請填寫此 Proxy 實際提供的模型 ID。",@@ -9525,10 +9525,10 @@"pi": "Pi"},"filterGroupBy": {- "project": "按專案",+ "project": "專案","flat": "平鋪",- "device": "按裝置",- "dialogue": "按對話"+ "device": "裝置",+ "dialogue": "對話"},"filterGroupByDeviceManualTip": "手動排序時按裝置分組暫不可用","deviceGroup": {@@ -9828,9 +9828,9 @@"all": "全部"},"sortTaskBy": {- "priority": "按優先級",- "activity": "按最近活動",- "created": "按建立時間"+ "priority": "優先級",+ "activity": "最近活動",+ "created": "建立時間"}},"rename": {diff --git a/docs/product-rules/sidebar-redesign-plan.md b/docs/product-rules/sidebar-redesign-plan.mdindex 272f843c9c..101cb48301 100644--- a/docs/product-rules/sidebar-redesign-plan.md+++ b/docs/product-rules/sidebar-redesign-plan.md@@ -131,6 +131,10 @@### 3.2 任务排序 —— 单选+2026-09-14 文案精简:分组选项显示「项目 / 对话 / 设备」,任务排序选项显示+「优先级 / 最近活动 / 创建时间」,去掉重复的「按」。下表保留排序语义说明;+分组与排序行为不变。「任务状态」入口使用 `ListChecks`,其「活跃」选项保留 `CircleDot`。+| 选项 | 默认 | 行为 ||---|---|---|| 按优先级 | | 四档,对齐 Codex(2026-08-13 用户裁决「参考 Codex」):等你处理(等待回复 / 授权 / 出错)> 完成未读 > 运行中 > 其余;同档内按最近活动。正在看的任务钉住打开时的档位不跳位;只有从完成未读切走才排到已看过最前。已读已完成任务之间与按时间排序同口径,浏览不改序(2026-08-17 用户裁决) |