fix(wechat_kf): download attachments to agent_workspace/tmp

So agent tools resolve relative refs like 	mp/xxx.pdf on the first
try, matching weixin's _get_tmp_dir convention.
This commit is contained in:
6vision
2026-05-28 19:40:12 +08:00
parent c605b0b080
commit 99bddb79d6
2 changed files with 19 additions and 5 deletions

View File

@@ -344,6 +344,8 @@ class WechatKfChannel(ChatChannel):
# On a text turn, attach any pending images/files as references
# so the downstream agent can pick them up via the text content.
# Paths are already under agent_workspace/tmp (see
# WechatKfMessage._get_tmp_dir), so a relative ref also works.
if kf_msg.ctype == ContextType.TEXT:
cached_files = file_cache.get(session_id)
if cached_files: