From ca667ee6016c6041d6b2f7ab142e4779070c3712 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Fri, 8 May 2026 13:54:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=AF=B9replyer=20tool=20reuslt?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=94=B9=E5=8A=A8?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=A4=87=E4=BB=BD=E6=96=87=E4=BB=B6=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/maisaka/builtin_tool/reply.py | 2 +- src/webui/routers/plugin/support.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/maisaka/builtin_tool/reply.py b/src/maisaka/builtin_tool/reply.py index 35c7df78..65001dd3 100644 --- a/src/maisaka/builtin_tool/reply.py +++ b/src/maisaka/builtin_tool/reply.py @@ -291,7 +291,7 @@ async def handle_tool( ) return tool_ctx.build_success_result( invocation.tool_name, - "回复已生成并发送。", + f'已生成并发送回复"{combined_reply_text}"\n发送对象:{target_user_name}', structured_content={ "msg_id": target_message_id, "set_quote": set_quote, diff --git a/src/webui/routers/plugin/support.py b/src/webui/routers/plugin/support.py index 6af06ece..04aa14a1 100644 --- a/src/webui/routers/plugin/support.py +++ b/src/webui/routers/plugin/support.py @@ -269,7 +269,9 @@ def backup_file(file_path: Path, action: str, move_file: bool = False) -> Option return None backup_name = f"{file_path.name}.{action}.{datetime.now().strftime('%Y%m%d%H%M%S')}" - backup_path = file_path.parent / backup_name + backup_dir = file_path.parent / "config_back" + backup_dir.mkdir(parents=True, exist_ok=True) + backup_path = backup_dir / backup_name if move_file: shutil.move(file_path, backup_path) else: