feat(sidebar): 新增项目分区【已审核 PR】 - #2041
Open
Andreaseszhang wants to merge 2 commits into
Open
Andreaseszhang wants to merge 2 commits into
Andreaseszhang wants to merge 2 commits into
Conversation
Made-with: Proma
Made-with: Proma
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为 Agent 侧栏新增一级项目分区能力,支持创建、重命名、排序、折叠,以及将项目移动到分区或默认项目区域。分区仅影响侧栏组织,不改变项目与会话的核心生命周期。
改动
apps/electron/src/renderer/components/app-shell/LeftSidebar.tsx— 增加项目分区展示、折叠、拖拽排序、创建/重命名/解散交互,以及项目移动入口。apps/electron/src/renderer/components/app-shell/sidebar-section-operations.ts— 提取分区操作的并发门禁、目标解析和辅助逻辑。apps/electron/src/main/lib/agent-workspace-manager.ts— 增加分区索引、顺序持久化、项目分区归属更新与删除迁移逻辑。apps/electron/src/main/ipc.ts— 注册分区查询、创建、更新、删除、排序 IPC,并扩展项目更新参数。apps/electron/src/preload/index.ts— 暴露分区相关安全 IPC API。packages/shared/src/types/agent.ts— 增加分区、项目更新和 IPC 契约类型。apps/electron/package.json/packages/shared/package.json— 更新对应 patch 版本。测试方法
bun run --cwd apps/electron typecheck。备注
Made with Proma · GitHub