-
Notifications
You must be signed in to change notification settings - Fork 119
[Feature]: 支持里程碑 handoff 并以摘要启动全新会话 #532
Copy link
Copy link
Open
Labels
agentAgent or LLM workflow issueAgent or LLM workflow issuecliCLI and shell UX issueCLI and shell UX issuedependenciesDependency management issueDependency management issueenhancementNew feature or requestNew feature or requestsecuritySecurity-related issueSecurity-related issuetestsTest coverage or test failure issueTest coverage or test failure issue
Description
Activity
Metadata
Metadata
Assignees
Labels
agentAgent or LLM workflow issueAgent or LLM workflow issuecliCLI and shell UX issueCLI and shell UX issuedependenciesDependency management issueDependency management issueenhancementNew feature or requestNew feature or requestsecuritySecurity-related issueSecurity-related issuetestsTest coverage or test failure issueTest coverage or test failure issue
功能概述
支持将当前阶段整理为结构化 handoff,并基于该摘要创建一个干净的新会话,用于继续下一阶段任务。
使用场景
长任务完成一个明确阶段后,用户通常只需要保留已完成事项、修改文件、关键决策、验证结果、失败尝试、剩余任务和约束。当前
/fork会复制完整上下文快照,/export只生成 Markdown 文件,都不能直接得到“保留任务状态但不继承全部历史”的新会话。期望方案
/handoff [focus],或为/fork增加等价的 handoff 模式。备选方案
/fork:能够保留分支关系,但会复制全部当前快照。/export后手工整理并粘贴到新会话:可以实现,但缺少结构约束、原子创建和会话关系记录。补充信息
当前
crates/aish-shell/src/app.rs中的/fork会先持久化当前快照,再完整复制到子会话。建议复用现有会话父子关系和上下文压缩能力,并沿用现有安全策略处理摘要内容。建议验收:新会话只包含 handoff 摘要、父子关系可查询、原会话内容不变、取消不产生子会话、摘要字段完整,并覆盖持久化后
/resume的回归测试。