[feat](bot):Add mode config, add debug mode, add /remember cmd#757
[feat](bot):Add mode config, add debug mode, add /remember cmd#757yeshion23333 wants to merge 7 commits intomainfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
qin-ctx
left a comment
There was a problem hiding this comment.
Review 完成,发现 2 个需要修复的 bug 和若干建议。详见 inline comments。
|
/remember和/new的区别是? 这块既然改了,我觉得要不我们和openclaw的 /new /compact /reset的定义和命名完全对齐? |
qin-ptr
left a comment
There was a problem hiding this comment.
Review 完成,发现 6 个必须修复的问题和若干建议。
核心问题总结
- 逻辑错误: loop.py:598 条件判断使用
and应该用or - 多余调用: loop.py:477 重复调用
get_or_create - 设计问题: loop.py:606 直接修改 session.messages 导致本地记忆受影响
- 权限不一致: loop.py:726 未包含 admin_user_id
- 破坏性变更: schema.py:114 将 open_id 改为 bot_name 缺少迁移路径
- 检测逻辑不完整: feishu.py:757 删除了 open_id 检查可能导致检测失败
详见 inline comments。
🤖 I am a bot owned by @qin-ctx.
调整成/compact了:和/new的区别是只提交一次当前对话到 Openviking,不清空 session |
已修复 |
qin-ctx
left a comment
There was a problem hiding this comment.
存在 1 个需要修复的问题,详见 inline comment。
Description
Fix
Add
Opt
Related Issue
Type of Change
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes