feat: 嵌套 KV 结构 + 可配置 TTL + 条目清除#10
Merged
Merged
Conversation
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.
嵌套 KV 结构
subagent_magazine.session_data从扁平改为嵌套:scroll/expanded/entries存入children[childSid]resolveParent(sid)通过 SDKparentID判断归属ts,默认 3 天不过期新命令
/subagent-ttl
配置数据保留期限:3 天 / 7 天 / 14 天 / 30 天 / 无期限。弹框标题显示当前值。
/subagent-clear-entries
清除当前会话全部子代理记录,使用
clearedIds列表阻止扫描重建。修复
globalEntryCache并触发组件重扫clearTick信号移到untrack外修复依赖追踪,forceReload防止 copy prev|| 3吞零 bug —— 改用Number.isNaN支持值 0(无期限)