Repository navigation
feat: 原样重发与回退的请求归入原会话 - #7
Merged
Mag1cFall merged 2 commits intoNov 18, 2026
Merged
Conversation
- 多于一条消息的请求成功后原样重发时归入原会话,沿用会话 ID 与各条消息的时间;只有一条消息的请求保持原规则 - 会话记录保存链位置之前最后 CONVERSATION_REWIND_DEPTH 项链摘要,没有会话直接匹配且本次多于一条消息时,回退或改写不超过保留条数的请求退回原会话继续使用 - 新增配置项 CONVERSATION_REWIND_DEPTH(默认 3,0 为不限制),设置页归入调度分区 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
最近有些太忙了,没有手动写代码,用的Fable 5.2 |
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.
为了修复 #6 的问题
额外保存了最后几条消息的摘要链用于匹配会话(可设置),使得会话回退或者重发可以被判定为同一个会话id,使得可以利用缓存
大多数都是文档和i18n的修改
实际修改文件
internal/config/config.go
internal/service/service.go
internal/service/conversation.go
还有
web/src/features/settings/schema.ts
web/src/features/settings/SettingsPage.tsx
在claude的强烈要求下保留了测试文件 internal/service/generate_test.go