Repository navigation
fix: 支持企微展示和回答多题 ask_user - #318
Merged
Merged
Conversation
企微流式回复只读取单题字段,多题提问因此缺少正文和选项。 后台镜像也会跳过多题事件。 直接回复和后台镜像共用逐题渲染。企微按题号解析一条完整回复, 将各题答案传给原会话继续执行,格式错误时保留待答状态。 验证覆盖直接提问、后台镜像和回答恢复。106 项相关测试通过, Ruff 检查通过。
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
现象
企业微信收到多题
ask_user时只显示标题和作答提示,后台镜像会跳过多题提问。根因
企微的渲染和作答登记只读取单题字段。多题的题干、选项和输入规则放在
questions数组里。修复
ask_relay后台镜像共用多题渲染。验证