From e5882a3ccd758f263325dbf7e296da37a22111c8 Mon Sep 17 00:00:00 2001 From: EdgeMLHacker <126883848+Apageoflove@users.noreply.github.com> Date: Fri, 6 Nov 2026 08:44:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(minimax-bot):=20=E5=9D=8F=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E8=AE=A9=E6=8F=92=E4=BB=B6=E8=B5=B7=E4=B8=8D?= =?UTF-8?q?=E6=9D=A5=EF=BC=8C=E8=B4=A6=E6=9C=AC=E5=86=99=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=B8=A6=E8=B5=B0=E5=B7=B2=E7=BB=8F=E8=B7=91?= =?UTF-8?q?=E5=AE=8C=E7=9A=84=E5=9B=9E=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 读不出来的状态文件改成改名留证、从默认值起,写盘在 rename 之前先 fsync;台账写 不进去时只记一条 warn,不再把已经跑完的回合、群里后面的成员和跑完的后台报告一 并带走。版本 0.7.24。 --- .../minimax-bot/.minimax-plugin/plugin.json | 2 +- plugins/minimax-ai/minimax-bot/README.md | 5 + .../minimax-bot/miniapp/node/engine.mjs | 73 +++++----- .../minimax-bot/miniapp/node/mcp.mjs | 2 +- .../minimax-bot/miniapp/node/server.mjs | 3 +- .../minimax-bot/miniapp/node/store.mjs | 51 ++++++- plugins/minimax-ai/minimax-bot/package.json | 2 +- .../tests/ledger-write-failure.test.mjs | 127 ++++++++++++++++++ .../tests/store-corrupt-recovery.test.mjs | 56 ++++++++ .../minimax-bot/tests/unknown-zombie.test.mjs | 5 + 10 files changed, 284 insertions(+), 42 deletions(-) create mode 100644 plugins/minimax-ai/minimax-bot/tests/ledger-write-failure.test.mjs create mode 100644 plugins/minimax-ai/minimax-bot/tests/store-corrupt-recovery.test.mjs diff --git a/plugins/minimax-ai/minimax-bot/.minimax-plugin/plugin.json b/plugins/minimax-ai/minimax-bot/.minimax-plugin/plugin.json index a5927be..28e60b4 100644 --- a/plugins/minimax-ai/minimax-bot/.minimax-plugin/plugin.json +++ b/plugins/minimax-ai/minimax-bot/.minimax-plugin/plugin.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "name": "minimax-bot", "displayName": "MiniMax Bot", - "version": "0.7.21", + "version": "0.7.24", "description": "Turn MiniMax Code into an always-on team of Bots. A Chief Bot helps you build the team; in group chats the admin answers and @mentions hand work to other members. Every Bot has its own octopus avatar and memory, with scheduled tasks and usage stats.", "author": "MiniMax Code", "icon": "icon.png", diff --git a/plugins/minimax-ai/minimax-bot/README.md b/plugins/minimax-ai/minimax-bot/README.md index ef2d94d..0cd26a7 100644 --- a/plugins/minimax-ai/minimax-bot/README.md +++ b/plugins/minimax-ai/minimax-bot/README.md @@ -76,6 +76,11 @@ A shutdown no longer throws away work that never started. Such a task stays queu The usage ledger counts the time the model really ran. A retried turn waits between the attempts, and that wait was counted as the model's time: a turn that waited half a minute between two attempts was written down as a turn of half a minute, and the panel averaged that up. The duration is now the time the model ran and the panel's average follows it; the wait between the attempts is kept beside it in the ledger (`usage.jsonl`), not inside the duration. A turn the model never ran has no duration to report, so it is left out of the average instead of counting as zero seconds. +## 0.7.24 A file that cannot be read, and a ledger that cannot be written + +- A `state.json` or a chat file that cannot be parsed no longer keeps the Mini App from starting. The unreadable file is kept as `*.corrupt-