Repository navigation
fix(minimax): use account OAuth device endpoints - #88608
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 31, 2026, 8:39 PM ET / 00:39 UTC. Summary PR surface: Source +2, Tests +61. Total +63 across 2 files. Reproducibility: yes. from source and live-provider evidence: current main posts MiniMax OAuth forms to API hosts, guarded fetch strips POST bodies on cross-origin redirects, and maintainer probes confirmed those API OAuth URLs now redirect to account Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this scoped endpoint update once maintainers accept the auth-provider contract evidence, with full approval-through-token persistence proof as an optional risk reducer rather than a code blocker. Do we have a high-confidence way to reproduce the issue? Yes from source and live-provider evidence: current main posts MiniMax OAuth forms to API hosts, guarded fetch strips POST bodies on cross-origin redirects, and maintainer probes confirmed those API OAuth URLs now redirect to account Is this the best way to solve the issue? Yes: changing only the MiniMax OAuth code/token endpoints to the provider's account OAuth hosts while leaving post-login API base URLs unchanged is the narrowest maintainable fix shown by current code, tests, live probes, and MiniMax CLI source. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against b3742b9edbd7. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +2, Tests +61. Total +63 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
cdb0841 to
18eab05
Compare
|
Maintainer proof for landing on SHA 18eab05. Summary:
Local commands run:
Results:
Live MiniMax proof checked before landing:
Official MiniMax source checked:
Known proof gap:
|
|
Updated maintainer proof for SHA 6bfe20e. Additional maintainer fixup:
Local commands run after the fixup:
Results:
|
|
Also seeing this issue. Confirmed error: |
It has been merged and should be released in the next update. |
Summary
Why
MiniMax now redirects
api.minimax.io/oauth/codeandapi.minimaxi.com/oauth/codetoaccount.*device-code endpoints. OpenClaw's guarded fetch intentionally strips POST bodies on cross-origin redirects, so the redirected MiniMax request receives an empty form and fails withclient_id is required.Validation
pnpm test extensions/minimax/oauth.test.tspnpm exec oxfmt --check --threads=1 extensions/minimax/oauth.ts extensions/minimax/oauth.test.tsgit diff --check origin/main...HEADReal behavior proof
Behavior addressed: MiniMax OAuth login no longer posts the device-code form to API hosts that redirect cross-origin and lose the POST body under OpenClaw's guarded fetch.
Real environment tested: OpenClaw MiniMax OAuth setup against live MiniMax global and CN OAuth endpoints.
Exact steps or command run after this patch:
openclaw models auth login --provider minimax-portal --method oauth; maintainer also ran live POST probes against the old API OAuth URLs and the new account OAuth URLs for both global and CN.Evidence after fix: The after-patch screenshot shows the MiniMax OAuth browser approval prompt. Live probes also showed old API code/token URLs redirect to
account.minimax.io/account.minimaxi.com/oauth2/*endpoints, direct account device-code endpoints return validuser_codeandverification_uri, and direct token endpoints return pending for fresh unapproved user codes.Observed result after fix: OpenClaw reaches the MiniMax account authorization prompt instead of failing before authorization with
client_id is required.What was not tested: Full browser approval and persisted-token storage with a real MiniMax account was not completed.
After patch:

Before patch:

