mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 01:50:49 +08:00
支持微信/WhatsApp 回送附件直发并补齐链路测试。
保持入站到 agent 流程不变,在回送阶段支持 media_path/media_url 与 base64 附件直发,同时让通道回包沿用会话中助手附件记录以对齐 chat 历史逻辑。 Made-with: Cursor
This commit is contained in:
parent
25180921e7
commit
1d46356d9e
8 changed files with 255 additions and 7 deletions
|
|
@ -49,3 +49,11 @@ def test_official_runner_logs_active_bridge_path() -> None:
|
|||
text = _read("runtime/operations/weixin_bridge/official_runner.ts")
|
||||
assert "official runner started account=" in text
|
||||
assert "native reply failed; no fallback enabled" in text
|
||||
|
||||
|
||||
def test_official_runner_supports_reply_attachments_base64() -> None:
|
||||
text = _read("runtime/operations/weixin_bridge/official_runner.ts")
|
||||
assert "_decodeReplyBase64Attachment" in text
|
||||
assert "data_base64" in text
|
||||
assert "media_base64" in text
|
||||
assert "reply.attachments" in text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue