feat(sidebar): 构建工作空间会话树并支持独立置顶排序 - #770
Open
yovinchen wants to merge 2 commits into
Open
Conversation
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.
Linked issue
Closes #769
Summary
将 Desktop 与 WebUI 的侧栏改为工作空间会话树:可以同时展开多个工作空间浏览历史,置顶会话与置顶工作空间归入独立区域,并按用户拖拽顺序持久化展示。
Change scope
agent-ui/agent-gui/ Gateway WebUI / Tauri 系统设置持久化。crates/agent-ui/src/components/chat/ChatHistorySidebar*.tsx、WorkspaceCloneModal.tsx。crates/agent-ui/src/lib/sidebar/、设置类型与规范化、工作空间排序及翻译。useTauriFileDrop.ts。crates/agent-gui/src-tauri/src/commands/config/settings/。docs/features/history-compaction.md与对应回归测试。Screenshots / preview
共享侧栏组件的交互预览(使用演示数据):独立置顶区域、工作空间行、拖拽标题和蓝色插入线。Desktop 与 WebUI 均已实际打开验证;以下截图分别展示深色和浅色主题。
Verification
git diff --check通过。现有未修改文件仍有非阻断 lint 提示,GUI 大 chunk 提示保留。cargo test -p liveagent save_system --lib:7 项通过,覆盖排序与归档元数据保存、关闭数据库后重新打开,以及修改无关设置后保留排序。Pre-submit checklist