Skip to content

fix: 支持企微展示和回答多题 ask_user - #318

Merged
robscc merged 1 commit into
mainfrom
fix/wecom-multi-ask-user
Nov 23, 2026
Merged

robscc merged 1 commit into
mainfrom
fix/wecom-multi-ask-user

Conversation

@robscc

@robscc robscc commented Nov 23, 2026

Copy link
Copy Markdown
Owner

现象

企业微信收到多题 ask_user 时只显示标题和作答提示,后台镜像会跳过多题提问。

根因

企微的渲染和作答登记只读取单题字段。多题的题干、选项和输入规则放在 questions 数组里。

修复

  • 企微直接回复和 ask_relay 后台镜像共用多题渲染。
  • 一条消息按题号作答,支持选择、文字和跳过。格式错误或漏答时保留待答状态,答齐后恢复原回合。

验证

  • 106 项相关测试通过,包含直接提问和后台镜像的端到端回归。
  • Ruff 检查通过。

企微流式回复只读取单题字段,多题提问因此缺少正文和选项。
后台镜像也会跳过多题事件。

直接回复和后台镜像共用逐题渲染。企微按题号解析一条完整回复,
将各题答案传给原会话继续执行,格式错误时保留待答状态。

验证覆盖直接提问、后台镜像和回答恢复。106 项相关测试通过,
Ruff 检查通过。
@codecov-commenter

codecov-commenter commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 91.04478% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ntime/src/ginno_runtime/channels/wecom/protocol.py 89.74% 4 Missing ⚠️
...untime/src/ginno_runtime/channels/wecom/adapter.py 87.50% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@robscc
robscc merged commit 6b31d6f into main Nov 23, 2026
6 checks passed
@robscc
robscc deleted the fix/wecom-multi-ask-user branch November 23, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants