Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

chore(desktop): 协同模式 worker 列表默认使用平铺布局

Shinkuca453e2c7bce
diff --git a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
index 4aad2d4b59..2bb9afae7f 100644
--- a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
@@ -169,11 +169,11 @@ type WorkerListLayout = 'tabs' | 'dropdown';
type DropdownOpenMode = 'transient' | 'pinned' | null;
function readStoredWorkerListLayout(): WorkerListLayout {
- if (typeof window === 'undefined') return 'dropdown';
+ if (typeof window === 'undefined') return 'tabs';
try {
- return window.localStorage.getItem(WORKER_LIST_LAYOUT_KEY) === 'tabs' ? 'tabs' : 'dropdown';
+ return window.localStorage.getItem(WORKER_LIST_LAYOUT_KEY) === 'dropdown' ? 'dropdown' : 'tabs';
} catch {
- return 'dropdown';
+ return 'tabs';
}
}