feat(chat): move conversations to another workspace (single & batch) - #356
Open
devil233-ui wants to merge 1 commit into
Open
feat(chat): move conversations to another workspace (single & batch)#356devil233-ui wants to merge 1 commit into
devil233-ui wants to merge 1 commit into
Conversation
- 后端新增 chat_history_set_cwd 命令:更新会话的 cwd 归属并广播历史同步 - 前端新增 chat_history_set_cwd IPC 封装与 setChatHistoryCwd API - 侧边栏会话右键菜单新增"移动到工作空间"子菜单,列出可用工作空间 - 多选模式下新增"批量移动到工作空间"按钮,复用现有选择机制 - 新增后端单元测试覆盖移动归属与边界校验
Contributor
|
PR governance checks passed. Awaiting human review. |
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.
Summary
Conversations are permanently bound to the workspace (
cwd) selected at creation time, with no way to re-file them afterwards (see #348). This PR adds a "Move to workspace" action for a single conversation plus a batch move in multi-select mode.Changes
Backend (
agent-gui/src-tauri)chat_history_set_cwd(id, cwd)that updateschatHistory.cwdand broadcasts a history sync (mirrorschat_history_set_pinned).Frontend (
agent-gui/src)setChatHistoryCwd(id, cwd)IPC wrapper inchatHistory.ts.Verified
cargo test -p liveagent set_cwd— 2/2 passcargo check— cleanpnpm exec tsc --noEmit— cleanpnpm exec biome checkon changed files — cleanCloses #348 (feature request).