Fix MiMo Firefox session cookie import#1565
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae2aec1db7
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
44660db to
084a45a
Compare
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 12:27 PM ET / 16:27 UTC. Summary Reproducibility: yes. at source level, not by live run. Current main imports persisted SweetCookieKit rows only, so a Firefox profile whose MiMo auth exists only in sessionstore is not inspected. Review metrics: 2 noteworthy metrics.
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: Land this after maintainer-approved live Firefox proof shows complete session-only MiMo auth recovery and no cross-source credential mixing at the latest head. Do we have a high-confidence way to reproduce the issue? Yes at source level, not by live run. Current main imports persisted SweetCookieKit rows only, so a Firefox profile whose MiMo auth exists only in sessionstore is not inspected. Is this the best way to solve the issue? Yes, the bounded parser plus source-isolated replacement path looks like the narrow maintainable fix. The missing piece is real authorized Firefox proof, not an obvious code repair from this review. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 10dd11fb7e67. 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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 924ccbb23d
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
924ccbb to
ead2aab
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ead2aab576
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ead2aab to
28c8728
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 28c8728bef
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Root cause
Firefox keeps MiMo's active authentication values as session cookies. SweetCookieKit discovers the Firefox profile and reads persisted Gecko cookies, but active MiMo authentication may exist only in Firefox session restore. The original patch also treated partial restore records and older backups as mergeable sources, decoded ambiguous LZ4 payloads, recursively accepted nested cookie-shaped JSON, and discarded Firefox origin isolation.
Verification
Exact head:
28f780a87b85fad09982cedf7e0ebfe874e4e3ddmake check: passed; SwiftFormat clean and SwiftLint reported zero violationsmake test: all 41 groups passed on the exact headSafety and proof boundary
xiaomimimo.comare accepted; cookie values are never logged