# fix\(acp-registry\): offer Global MiniMax Code sign-in · PR \#23891 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/23891)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: open

Source repository: pingdotgg/t3code

Source branch: fix/issue-17601

Target branch: main

Head commit: dd61206ecae7e4b19c2e2f98a1bfcff4b9c04cca

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/23891)

[Commits](https://git.cafe/pingdotgg/t3code/pull/23891/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/23891/diffs?format=markdown)

## Description

---

## Problem

Adding MiniMax Code and choosing Sign in always started the CLI's default regional login, which opens `agent.minimaxi.com` for a fresh account. Global accounts had no sign-in choice in the existing provider flow.

## Change

Expose Global and Mainland China variants of MiniMax Code's advertised terminal login method. Global is first; each choice passes the CLI's explicit region flag. The original method ID remains available for existing settings, and upstream region-aware methods pass through unchanged.

## Scope and approval

Fixes #17601

Triaged bug via the automated issue flow: [GitCafe mirror #17601](https://git.cafe/pingdotgg/t3code/issues/17601).

## Verification

- Reproduced in the real Linux web dev app with isolated seeded state: Settings → Providers → Add provider → MiniMax Code v0.2.7 → Sign in opened the Mainland login URL. Cancelled without entering credentials.
- Red first: the new auth regression test failed because no Global method was advertised. After the fix, all 56 scoped ACP Registry server tests passed. Targeted lint, package typecheck (existing advisory suggestions only), and Knip files/dependencies checks passed.
- Two independent code reviews returned MERGE; the repaired [proof audit](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c4db778863d5cfcf/audit.md) returned SUFFICIENT, verifying all 56 artifact hashes and 16 difference maps. Real-app default and explicit Global reached `agent.minimax.io/login`; explicit Mainland reached `agent.minimaxi.com/login`. Cancellation returned to the sign-in controls. No login was completed.
- Fixture: `scripts/fixtures/minimax-auth.mjs`, registered as a manual Knip entry; idempotence and refusal to seed a running isolated server verified. The VM's disposable MiniMax native dependency was rebuilt for its provider runtime; no dependency change ships in this PR.

Evidence uses Chrome 154 on Linux, DPR 2, font scale 16px. CSS viewports are 1440×900 and 390×844, light/dark. The preview exports desktop stills at 1280×800 and narrow stills at 780×1688. Production captures compare `2c8bdf6177` with `2c4e7e7376`; `19ed78b6c9` adds only the fixture script; `cf6128a332` adjusts its imports. Current main (`52bb5c8c4e`) was merged without changing the production fix, and all 56 scoped tests passed again.

| Row / CSS viewport / theme | Before · `2c8bdf6177` | After · `2c4e7e7376` | Diff0 · threshold 0 | DiffT · threshold 16 | Interaction recording |
|---|---|---|---|---|---|
| S0-1440-light | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b33d41b2347a2e2a/S0-1440-light-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b1f9590537d5fdff/S0-1440-light-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1dfaba71a53e98fa/S0-1440-light-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7508feb0a3d2c3e0/S0-1440-light-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/75bf42804b320898/S0-1440-light-picker.mp4) |
| S0-1440-dark | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6376515b07d60ae3/S0-1440-dark-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/058973505ef861bc/S0-1440-dark-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/cbbc625d34d9b2a0/S0-1440-dark-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f1bacf0d06585d55/S0-1440-dark-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f6f209d8fe3f9f10/S0-1440-dark-picker.mp4) |
| S0-390-light | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/73f0669f6aa62609/S0-390-light-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2f0c2d6780891e0b/S0-390-light-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3b46662f0824cd73/S0-390-light-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/01496b5343f698c2/S0-390-light-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3d5f327a86edd4eb/S0-390-light-picker.mp4) |
| S0-390-dark | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d8e2abdec4f02da6/S0-390-dark-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/fa2cd9524a9a8672/S0-390-dark-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/84e362bbf89b3a98/S0-390-dark-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/27c5777b954d5dca/S0-390-dark-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b9ca6338414fb3f4/S0-390-dark-picker.mp4) |
| W0-1440-light | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/8a86b31399d442f5/W0-1440-light-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/69d8de64d8aad0f6/W0-1440-light-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3cc9e6a79b1333d7/W0-1440-light-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/03fd0da2439126d4/W0-1440-light-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4e945ca6b333ec70/W0-1440-light-picker.mp4) |
| W0-1440-dark | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d4231a3e0ab90f8a/W0-1440-dark-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/865746aab055bfac/W0-1440-dark-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0d7ca0e60a59269f/W0-1440-dark-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/47bd5bf7b0a7df22/W0-1440-dark-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a839ccb3e6a5de52/W0-1440-dark-picker.mp4) |
| W0-390-light | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3e850e0eb16ed630/W0-390-light-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/704df88a16435888/W0-390-light-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/632b48c34013214e/W0-390-light-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4bc8afe596881dd5/W0-390-light-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/8078a42dc5429800/W0-390-light-picker.mp4) |
| W0-390-dark | ![Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/201e080ba5525551/W0-390-dark-before.png) | ![After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/215d9cc28f0a04b1/W0-390-dark-after.png) | ![Diff0](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b9486744ab0f4eaa/W0-390-dark-diff0.png) | ![Difft](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7d08025a31878f5a/W0-390-dark-diffT.png) | [Picker clip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/714163944dd31a5c/W0-390-dark-picker.mp4) |


[Evidence index with narrated steps, timestamps, and all recordings](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4677bcfab45c5dca/index.md) · [Fixture matrix](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a75801a549b136a2/matrix.md) · [Artifact hashes](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/33b9fe4be2cce583/artifact-manifest.json).

[Before default → Mainland](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0eeb5bf74588efb7/before-default-mainland.mp4) · [After default → Global](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2b7a55487385d25f/S1-default-global.mp4) · [Explicit Global](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6d00fc6930e04b64/S2-explicit-global.mp4) · [Explicit Mainland](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/9731c107aeb91ef6/S3-mainland.mp4) · [Wizard start/scroll/cancel](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f1dca6d66eab43ab/W1-global-cancel.mp4).

Cancellation recovery supplements (start → active → Cancel → idle controls held for at least three seconds):

[S1 recovery](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2be82262b6f8fab9/S1-cancellation-recovery.mp4) · [S2 recovery](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a930c7b028075682/S2-cancellation-recovery.mp4) · [S3 recovery](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/982f96d6b10fc3f1/S3-cancellation-recovery.mp4) · [W1 recovery](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e93c091b15c71301/W1-cancellation-recovery.mp4) · [B recovery](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/814a9117f6af08eb/B-cancellation-recovery.mp4)

Visible incidental differences: status ages, focus/hover, popup shadows, scroll position, and anti-aliasing. Earlier journey recordings contain disposable provider cards and differing sidebar widths; final Settings still pairs have matching three-provider fixtures and 256px sidebars. Base may show Retry sign-in after cancellation while head shows Sign in. No claim that nothing else changed is made.

Unverified: native mobile, macOS Electron external-browser handoff, and successful account login. The Mainland endpoint was observed at 390px; its external form eventually rendered with missing-glyph labels, so form readability remains unverified. Responsive web captures are not native-mobile proof. Local direct connection was exercised; transport code is unchanged.

Models: Claude Opus 5.5 and GPT-6.1-Sol, through Claude Code and Codex in T3 Code.

