Repository navigation
fix(v2): 缓存最近查看的会话与轮次 - #606
Merged
Merged
Conversation
Merged
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.
反复打开同一普通会话时,V2 会清空 Turn 列表并重新读取,造成重复等待。现在先显示近期、文件版本匹配的会话内容,再后台确认最新记录,并复用已读取的 Turn。
缓存仅保留在窗口内,有容量和过期限制;索引写入、管理操作和删除后失效,失败可重试,过期请求不覆盖当前页面。仅修改 V2,未增加列表或团队资源缓存,V1 目录无变化。
验证:7 项定向测试通过;V2 类型检查与构建通过;合成会话交互验证首次等待、重新打开立即显示;发布说明检查通过。未做真实大会话性能基准。