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: