forked from Mai-with-u/MaiBot
-
Notifications
You must be signed in to change notification settings - Fork 19
Dev #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
- 添加 `fast_mode_enabled` 配置以跳过基于 LLM 的操作过滤 - 当快速模式激活时,在上下文构建器中禁用内存判断以减少延迟 - 启用快速模式时强制使用统一执行模式 - 重构配置加载以支持从插件本地 `config.toml` 读取 - 注册快速模式和 LLM 覆盖的配置架构
- 实现 `KFCInterruptionError` 来处理回复生成被新消息打断的情况 - 在思考被取消时为 `mental_log` 添加状态回滚,以避免消息重复记录 - 更新 `affinity_flow_chatter` 中的 `UserProfileTool` 提示,以对别名和印象更新施加更严格的标准 - 更新回复操作以处理 `asyncio.CancelledError` 并保留部分回复
这并没有实际接入!,这只是拆分草稿
feat(builder): 降低记忆构建成功日志级别 feat(long_term_manager): 更新长期记忆管理器以支持推断 memory_id feat(manager): 降低记忆创建成功日志级别
1. 消息处理串行化: - 在 `execute` 方法中引入 `SessionManager` 的用户级锁 (`_get_lock`)。 - 确保同一用户的消息处理逻辑严格串行执行,彻底解决了因多实例并发读写 Session 导致的状态覆盖(Race Condition)和消息丢失(Swallowing)问题。 2. 系统打断状态同步: - 在处理周期内显式设置 `context.is_chatter_processing` 状态。 - 修复了 `MessageManager` 无法正确识别 KFC 忙碌状态,导致系统级打断机制失效的问题。
feat(memory_tools): 优化查询逻辑,优先使用外部传入的多重查询 feat(unified_memory_manager): 根据配置启用查询优化,提升查询效率 fix(bot_config_template): 更新版本号并完善长期记忆层配置说明
修复前:批量失败 → 单个生成 → 再次入队 → 批量失败 → 无限循环⚠️ 修复后:批量失败 → 标记节点 → 跳过后续尝试 → 立即停止 ✅
refactor(session): 捕获 asyncio.CancelledError 以确保超时取消时回滚事务
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @LuisKlee, your pull request is larger than the review limit of 150000 diff 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.
No description provided.