feat(chat): move conversations to another workspace (single & batch) - #356
Conversation
|
PR governance checks passed. Awaiting human review. |
|
Webui需要同步更新 |
|
what什么web
…---Original---
From: ***@***.***>
Date: Tue, Aug 4, 2026 08:45 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [Stack-Cairn/LiveAgent] feat(chat): move conversations to another workspace (single & batch) (PR #356)
su-fen left a comment (Stack-Cairn/LiveAgent#356)
Webui需要同步更新
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
ok知道了
…---Original---
From: ***@***.***>
Date: Tue, Aug 4, 2026 08:45 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [Stack-Cairn/LiveAgent] feat(chat): move conversations to another workspace (single & batch) (PR #356)
su-fen left a comment (Stack-Cairn/LiveAgent#356)
Webui需要同步更新
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
忘记通知了,已实际测试(非ai脑测)通过,请审阅 |
|
前端重构了下,得解决下冲突了QAQ |
|
行吧..还好凌晨大善人重置了
…---Original---
From: ***@***.***>
Date: Sun, Aug 9, 2026 15:06 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [Stack-Cairn/LiveAgent] feat(chat): move conversations to another workspace (single & batch) (PR #356)
su-fen left a comment (Stack-Cairn/LiveAgent#356)
前端重构了下,得解决下冲突了QAQ
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
a45e796 to
9674066
Compare
|
已处理上游前端重构带来的冲突,并将分支变基到最新 本次适配保留了#399引入的 验证结果:
|
- 后端新增 chat_history_set_cwd 命令:更新会话的 cwd 归属并广播历史同步 - 前端新增 chat_history_set_cwd IPC 封装与 setChatHistoryCwd API - 侧边栏会话右键菜单新增"移动到工作空间"子菜单,列出可用工作空间 - 多选模式下新增"批量移动到工作空间"按钮,复用现有选择机制 - 新增后端单元测试覆盖移动归属与边界校验
新增history.set_cwd协议、网关处理和生成代码,持久化会话cwd并广播同步事件。 为WebUI与桌面端共享侧边栏加入单条/批量移动、运行中拦截、乐观更新回滚和错误提示。 补齐中英文文案、WebSocket二进制帧往返测试及共享存储回归测试。 同步WebUI菜单交互,支持从更多操作和批量选择中切换目标工作空间。
9674066 to
cff6bdc
Compare
token不够的话,在群里找我 |
我去这就加(bushi |
|
我在当前 head 复现路径
原因
这个问题不只是侧边栏归组显示错误:Bash、文件工具、Skills/MCP workspace 资源等可能继续在旧项目 A 中运行,存在误操作旧工作空间文件的风险。 建议修复
当前 CI 8/8 全绿,现有定向测试也覆盖了乐观移动、失败回滚、运行中拦截和协议往返,但没有覆盖上述 SidebarStore → GUI runtime → 下一轮执行 → 历史持久化的跨层合同,因此绿灯暂时不能排除这个问题。修复并补充回归测试后再考虑合入。 |
移动成功后仅同步已存在且空闲的GUI runtime entry,单条与批量路径共用同一持久化确认合同。 发送下一轮时按显式覆盖、Sidebar持久化cwd、runtime cwd、全局cwd的顺序解析工作目录,避免旧runtime值撤销移动结果或让工具继续操作原工作空间。 新增单条、批量、失败项、发送中/运行中保护及下一轮目录优先级回归测试;GUI测试1516/1516、UI边界、定向Biome和生产构建均通过。
|
已修复,提交 修复内容
复核补充
回归测试
验证结果
|
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).