Repository navigation
feat(buddy): 支持把无空间任务移入空间 - #400
Merged
Merged
Conversation
新增 conversations.moveToSpace:条件更新任务的 space_id(任务无空间、未删除、没有运行中的回合、目标空间可用),释放该任务已打开的智能体会话并发布 space 类元数据变更。移入前生成的产物按其记录的授权目录继续可作为引用。 侧栏在任务菜单中增加“移动到空间”(任务行和空间行也可右键弹出菜单),并支持把“任务”分组里的任务拖到空间行上;二级菜单里的空间名限宽并省略。 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
这部分我将移除拖动,支持更为麻烦的选择交互。拖动还是容易出问题,且不可还原,尤其是当前支持拖动到工作区的效果也容易导致其他问题。 |
…space # Conflicts: # apps/buddy/service/src/BuddyService.ts
shanyuhai123
force-pushed
the
codex/move-task-to-space
branch
from
October 22, 2026 05:51
5a0ef03 to
0d10025
Compare
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.
背景与关联 / Context and related issue
主要改动 / Changes
conversations.moveToSpace。只在“任务无空间、未删除、没有排队或运行中的回合、目标空间未撤销”时,对conversations.space_id做条件更新;随后释放该任务已打开的智能体会话,并发布space类会话元数据变更。不新增迁移,只更新已有列。ComposerResourceService校验产物授权时,按产物记录的授权 ID 定位任务自己的工作区,所以移入空间前生成的产物仍可作为引用加入输入框;预览和外部打开本来就按产物记录的路径,不受影响。旧工作区文件不复制,留在原处。验证 / Verification
ConversationMetadataService.spec.ts两个用例(成功移入一次并发布变更、释放会话;空间已撤销或有运行中回合时拒绝且不改数据),该文件 10 项全部通过。以上在移植前的本地分支上运行;基于上游 master 的这个分支未在本地重跑,交给 CI。兼容与风险 / Compatibility and risks
ConversationMetadataService.moveToSpace()的条件,以及ComposerResourceService里产物授权的兼容。界面变更 / UI changes
🤖 Generated with Claude Code