**原因**: backend/domain/plugin/internal/dal/model/agent_tool_draft.gen.go第149-180行GetAll()函数中。 <img width="1251" height="737" alt="Image" src="https://github.com/user-attachments/assets/32be1ab4-0b10-4971-86ef-eb5ac1fac7c5" /> 使用分页的逻辑来查询工具,分页的游标为ID,但是在select语句中,没有加上ID这个参数: <img width="990" height="460" alt="Image" src="https://github.com/user-attachments/assets/2fae1a7a-2a9c-4317-b270-da370cf632f7" /> 导致只要是数据达到20,该分页的for循环就会陷入死循环。opencoze和mysql的cpu会激增最终导致系统死机。 **建议修复方式** 在getSelected函数中,优先加上ID的选择 <img width="786" height="187" alt="Image" src="https://github.com/user-attachments/assets/5c89ee4a-4f3e-4ecf-bd98-6c1fab3cb975" />