From 5f3737f229bc56a6f74a9cf9d004ba2efd5c2663 Mon Sep 17 00:00:00 2001 From: Tars Date: Wed, 1 Apr 2026 13:52:19 +0800 Subject: [PATCH] fix: auto-enable minimax plugin for API key auth route (#57127) Merged via squash. Prepared head SHA: 5782b26738498a24181cec2f3d96832af5a0d59e Co-authored-by: tars90percent <252094836+tars90percent@users.noreply.github.com> Co-authored-by: odysseus0 <8635094+odysseus0@users.noreply.github.com> Reviewed-by: @odysseus0 --- CHANGELOG.md | 1 + extensions/minimax/openclaw.plugin.json | 2 +- src/config/plugin-auto-enable.test.ts | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54130c2e75d..5bc4a8ae770 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Docs: https://docs.openclaw.ai - Tasks/gateway: keep the task registry maintenance sweep from stalling the gateway event loop under synchronous SQLite pressure, so upgraded gateways stop hanging about a minute after startup. (#58670) Thanks @openperf - Channels/WhatsApp: pass inbound message timestamp to model context so the AI can see when WhatsApp messages were sent. (#58590) Thanks @Maninae - Web UI/OpenResponses: preserve rewritten stream snapshots in webchat and keep OpenResponses final streamed text aligned when models rewind earlier output. (#58641) Thanks @neeravmakwana +- MiniMax/plugins: auto-enable the bundled MiniMax plugin for API-key auth/config so MiniMax image generation and other plugin-owned capabilities load without manual plugin allowlisting. (#57127) Thanks @tars90percent. ## 2026.3.31 diff --git a/extensions/minimax/openclaw.plugin.json b/extensions/minimax/openclaw.plugin.json index 8f0da029322..831b6143b9d 100644 --- a/extensions/minimax/openclaw.plugin.json +++ b/extensions/minimax/openclaw.plugin.json @@ -3,7 +3,7 @@ "enabledByDefault": true, "legacyPluginIds": ["minimax-portal-auth"], "providers": ["minimax", "minimax-portal"], - "autoEnableWhenConfiguredProviders": ["minimax-portal"], + "autoEnableWhenConfiguredProviders": ["minimax", "minimax-portal"], "providerAuthEnvVars": { "minimax": ["MINIMAX_API_KEY"], "minimax-portal": ["MINIMAX_OAUTH_TOKEN", "MINIMAX_API_KEY"] diff --git a/src/config/plugin-auto-enable.test.ts b/src/config/plugin-auto-enable.test.ts index 7d03bc2aedf..b87c270218f 100644 --- a/src/config/plugin-auto-enable.test.ts +++ b/src/config/plugin-auto-enable.test.ts @@ -522,6 +522,24 @@ describe("applyPluginAutoEnable", () => { expect(result.config.plugins?.entries?.["minimax-portal-auth"]).toBeUndefined(); }); + it("auto-enables minimax when minimax API key auth is configured", () => { + const result = applyPluginAutoEnable({ + config: { + auth: { + profiles: { + "minimax:default": { + provider: "minimax", + mode: "api_key", + }, + }, + }, + }, + env: {}, + }); + + expect(result.config.plugins?.entries?.minimax?.enabled).toBe(true); + }); + it("does not auto-enable unrelated provider plugins just because auth profiles exist", () => { const result = applyPluginAutoEnable({ config: {