openbot
|
86642e07c9
|
test(channels): IM three-channel e2e wiring tests + final-text accumulation
- test_channels_e2e.py: full loop per channel
(inbound -> SessionManager.prompt -> mock ACP agent -> events -> outbound):
* wecom aibot: text dispatch -> delta frames -> replyStream final;
image base64 inbound
* wecom-app: real local HTTP callback server + real WXBizMsgCrypt
(GET echo verify + POST encrypted XML) -> stubbed qyapi send
* weixin: QR login -> long-poll inbound -> sendmessage outbound
- session.py fix: accumulate delta text per turn; 'final' event now carries
full text so no-edit-API channels (wecom-app/weixin) deliver whole message
- wecom.py: buffer outbound frames when not connected (testability)
- tests: 43 passed
|
2026-10-06 11:51:04 +08:00 |
|