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 列表默认布局为 dropdown

Shinku82acfe58a289
diff --git a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
index 0f277e0c3e..437dd29be3 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 'tabs';
+ if (typeof window === 'undefined') return 'dropdown';
try {
- return window.localStorage.getItem(WORKER_LIST_LAYOUT_KEY) === 'dropdown' ? 'dropdown' : 'tabs';
+ return window.localStorage.getItem(WORKER_LIST_LAYOUT_KEY) === 'tabs' ? 'tabs' : 'dropdown';
} catch {
- return 'tabs';
+ return 'dropdown';
}
}