From 7c73a57bbc5ae7c7ba05c2313d652b229586aa89 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Tue, 2 Jun 2026 12:50:42 +0800 Subject: [PATCH] fix(chain): use history_id key in manual transfer redo prompt context (#5876) --- app/chain/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/chain/message.py b/app/chain/message.py index 07682cf1..85d96e87 100644 --- a/app/chain/message.py +++ b/app/chain/message.py @@ -839,8 +839,9 @@ class MessageChain(ChainBase): source_path = src_fileitem.get("path") if isinstance(src_fileitem, dict) else "" source_path = source_path or his.src or "" season_episode = f"{his.seasons or ''}{his.episodes or ''}".strip() + # 键名必须与 System Tasks.yaml 中 manual_transfer_redo 模板的占位符一致 template_context = { - "his_id": his.id, + "history_id": his.id, "current_status": "success" if his.status else "failed", "recognized_title": his.title or "unknown", "media_type": his.type or "unknown",