feat: extend AgentOptions with fork / cleanup (Phase 2a)
#145
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
动机
为
step ask做基础设施:agent 需要支持 session fork(复制 session 到新的独立副本)。从 #142 拆出
这是 #142 Phase 2 的基础设施部分。依赖 Phase 1 (#142-P1) 先完成。
接口扩展
Session cache 扩展
支持
stepHash:ask格式的 cache key(与现有threadId:role共存)。Adapter 实现
每个 adapter 补
fork: null, cleanup: null(占位,后续按需实现):agent-hermesagent-claude-codeagent-builtinagent-mock测试要点
AgentOptions类型兼容(有/无 fork 都能编译)stepHash:askkey 读写fork: null不影响现有功能小橘 🍊(NEKO Team)