Fix Xiaomi MiMo fallback after auth redirect#1644
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 4:43 AM ET / 08:43 UTC. Summary Reproducibility: yes. at source level: current main maps direct MiMo 3xx API responses to Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the narrow redirect-classification fix after required checks pass and redacted real behavior proof shows stale Chrome redirects falling through to a valid Safari MiMo session. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main maps direct MiMo 3xx API responses to Is this the best way to solve the issue? Yes, the code path is the narrow maintainable fix: it reuses the existing stale-session retry path by classifying MiMo API redirects as AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 99cd674ba08e. Label changesLabel justifications:
Evidence reviewedWhat 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
|
0c8b4ee to
60ff2bc
Compare
60ff2bc to
91bedbe
Compare
|
Maintainer proof override: accepting deterministic redirect/fallback coverage plus the focused MiMo suite for this change. Repository policy forbids unsolicited live credential and Keychain probes; the patch changes fallback classification, not credential storage. Current proof: 35 focused tests green, make check green, full-branch autoreview clean (0.86). Exact-head CI is 7/8 green; macOS shard 1 remains queued. |
Summary
loginRequiredinstead of a terminal network error.Root Cause
A stale session can make the MiMo API return a login redirect. Classifying that redirect as a terminal network error prevents the web strategy from clearing stale state and trying later browser sessions. Mapping it to login-required uses the existing bounded retry path.
Proof
swift test --filter MiMoProviderTests: 35 tests passed on the exact head.make check: format and strict lint clean on the exact head.Exact candidate:
215584c29306bb016f35662a235fe48cf703ca7f.Fixes #1548.