优化自动回复策略与未读会话处理 - #18
Merged
NingNing0111 merged 3 commits intoAug 17, 2026
Merged
Conversation
enable_auto_replay 字面像总开关,实际只管正则模板那条路径,代码里却拿它当 自动回复的总闸门,于是只开 LLM 回复的求职方案在读完会话后被直接跳过,日志 还写着未启用自动回复——指的是用户没开的那个开关。 - 字段更名为 enable_template_reply,保留 serde alias 读旧配置 - 新增 auto_reply_enabled():两条路径任一开启就要处理会话 - 分流逻辑收拢到平台无关的 choose_route,BOSS 与猎聘共用同一份 ReplyRoute - 运行前检查跟着修正:只开 LLM 的方案此前被判成未启用,模型服务没配也放行; 开了 LLM 却没写提示词也改为开跑前拦下
LLM 回复和正则模板是两个平级 Switch 时,用户看不出它们的关系:以为必须开模板 才算启用自动回复,也不知道两个都开会发生什么。改为一次四选一,两个 bool 的 组合在界面上收敛掉: - 规则优先 AI 兜底(推荐)/ 仅 AI 回复 / 仅规则回复 / 关闭自动回复 - 选项区块跟着策略走,没配模型服务时两个 AI 档置灰 - 规则卡片的说明随策略变化,说清未命中的消息是交给 AI 还是留给人工
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.
变更内容
验证
git diff --check