Skip to content

Feature/relogin flow#2267

Merged
Tlaster merged 8 commits into
masterfrom
feature/relogin-flow
Jul 1, 2026
Merged

Feature/relogin flow#2267
Tlaster merged 8 commits into
masterfrom
feature/relogin-flow

Conversation

@Tlaster

@Tlaster Tlaster commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

fix #2160
fix #1820

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4bc15b9c85

ℹ️ 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".

Comment on lines +103 to +107
cookieHeaderToWebCookieSeeds(
cookieHeader = chocolate,
domain = xqtHost,
)
}.orEmpty()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid treating seeded X cookies as a completed relogin

When a relogin target exists, this seeds the WebView with the account's stored X cookies. If those cookies are expired but still contain ct0 and auth_token, the WebView polling path immediately feeds the seeded cookie string back to the handler, and canResume returns true because it only checks for those names. The login sheet closes and resume retries the same expired credential before the user can authenticate, leaving X relogin stuck in a failure loop until the old cookies are not seeded or are server-validated before closing.

Useful? React with 👍 / 👎.

Comment on lines +84 to +88
cookieHeaderToWebCookieSeeds(
cookieHeader = chocolate,
domain = vvoHost,
)
}.orEmpty()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid treating seeded Weibo cookies as a completed relogin

For Weibo relogin this seeds the WebView with the existing stored cookie, but canResume only checks that the cookie string still has MLOGIN=1. An expired Weibo cookie can still satisfy that syntactic check, so the WebView callback fires immediately on the seeded cookie, closes the login UI, and resume fails with the old credential before the user can actually log in again.

Useful? React with 👍 / 👎.

@Tlaster Tlaster force-pushed the feature/relogin-flow branch from 8197d99 to af4eb2c Compare July 1, 2026 16:21
@Tlaster Tlaster merged commit a2e47cd into master Jul 1, 2026
9 checks passed
@Tlaster Tlaster deleted the feature/relogin-flow branch July 1, 2026 17:19
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.

Login expired toast should have a login button No way to re-authenticate to social accounts

1 participant