Skip to content

Fix MiniMax CN region: Open Coding Plan buttons use region-aware URL#426

Merged
ratulsarna merged 1 commit intosteipete:mainfrom
bald-ai:fix/minimax-cn-region-coding-plan-url
Feb 26, 2026
Merged

Fix MiniMax CN region: Open Coding Plan buttons use region-aware URL#426
ratulsarna merged 1 commit intosteipete:mainfrom
bald-ai:fix/minimax-cn-region-coding-plan-url

Conversation

@bald-ai
Copy link
Contributor

@bald-ai bald-ai commented Feb 25, 2026

Summary

Both "Open Coding Plan" buttons in MiniMax settings were hardcoded to the global URL (platform.minimax.io) instead of using the region-aware codingPlanURL property. When a user selects the China mainland region (platform.minimaxi.com), the buttons still opened the global site.

Changes

Sources/CodexBar/Providers/MiniMax/MiniMaxProviderImplementation.swift

  • Replaced hardcoded https://platform.minimax.io/user-center/payment/coding-plan?cycle_type=3 with context.settings.minimaxAPIRegion.codingPlanURL in both the API token and cookie settings actions.

Testing

  • swift build
  • swift test — all 807 tests passed ✅

Closes #378

Both 'Open Coding Plan' buttons in MiniMax settings were hardcoded to the
global URL (platform.minimax.io). Replace with the region-aware
context.settings.minimaxAPIRegion.codingPlanURL so CN users are directed
to platform.minimaxi.com.

Closes steipete#378
@ratulsarna ratulsarna merged commit 4b6b0d0 into steipete:main Feb 26, 2026
7 checks passed
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.

MiniMax CN region: Open Coding Plan button opens wrong URL

2 participants