Skip to content

Adapt MiniMax auth plugin compatibility#913

Merged
hazeone merged 1 commit intomainfrom
cursor/minimax-auth-compat-2604
Apr 24, 2026
Merged

Adapt MiniMax auth plugin compatibility#913
hazeone merged 1 commit intomainfrom
cursor/minimax-auth-compat-2604

Conversation

@hazeone
Copy link
Copy Markdown
Contributor

@hazeone hazeone commented Apr 24, 2026

Summary

  • adapt MiniMax OAuth plugin handling to support both legacy minimax-portal-auth and merged minimax registrations discovered from bundled plugin manifests
  • map minimax-portal configs using the CN endpoint to the minimax-portal-cn vendor when importing provider accounts
  • add unit coverage for plugin registration cleanup, config sanitization, and CN account seeding behavior

Test plan

  • pnpm exec vitest run tests/unit/openclaw-auth.test.ts tests/unit/provider-service-stale-cleanup.test.ts
  • pnpm test currently times out in unrelated existing test tests/unit/gateway-ready-fallback.test.ts

Made with Cursor

Co-authored-by: Haze <hazeone@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e0a1916d3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

));
const legacyManifest = manifests.find((manifest) => manifest.id === LEGACY_MINIMAX_OAUTH_PLUGIN_ID);

const canonicalPluginId = mergedManifest ? MERGED_MINIMAX_PLUGIN_ID : LEGACY_MINIMAX_OAUTH_PLUGIN_ID;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Map merged MiniMax plugin back to provider key

When this branch selects canonicalPluginId as "minimax", later writes will create plugins.entries.minimax, but getActiveOpenClawProviders() still only infers providers from plugin IDs ending in -auth. In configs where MiniMax is active only via plugin registration (no models.providers/auth-profile fallback), the provider is silently dropped from the active set and ProviderService.listAccounts() returns no MiniMax account.

Useful? React with 👍 / 👎.

Comment on lines +1855 to +1858
const staleAllowIdx = allowArr.indexOf(stalePluginId);
if (staleAllowIdx !== -1) {
allowArr.splice(staleAllowIdx, 1);
miniMaxModified = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep canonical MiniMax plugin in allowlist migration

This migration removes stale MiniMax IDs from plugins.allow but does not add the canonical "minimax" entry. If a user has a restrictive allowlist and the merged MiniMax plugin is not enabledByDefault, sanitize will disable the MiniMax plugin on next startup, which can break OAuth/plugin-backed provider behavior until another sync path rewrites the config.

Useful? React with 👍 / 👎.

@hazeone hazeone merged commit 89dd765 into main Apr 24, 2026
5 checks passed
@hazeone hazeone deleted the cursor/minimax-auth-compat-2604 branch April 24, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants