Skip to content

Keep Sign in again in every ChatGPT account menu - #142

Merged
squarepots merged 3 commits into
mainfrom
fix/sign-in-again-menu
Sep 30, 2026
Merged

squarepots merged 3 commits into
mainfrom
fix/sign-in-again-menu

Conversation

@squarepots

Copy link
Copy Markdown
Member

Summary

Sign in again appeared only after a confirmed authentication failure. An account whose failure was classified as anything else had no way to start a new login from its card.

Every saved ChatGPT account now keeps Sign in again in its card menu. A confirmed failure still shows Sign in required and promotes the action to the primary button. API-key accounts are unchanged. The OAuth flow already verifies the returning identity before replacing a saved login.

docs/design.md records the rule.

Validation

  • pnpm run ci:source frontend: 117 tests, TypeScript, and the production build passed.
  • New table tests cover all 16 switch failure codes and all 10 quota failure codes: each leaves Sign in again reachable from the menu, and only account_needs_sign_in and authentication promote it. The tables are typed against the failure-code unions, so a new code fails the build until it is classified.
  • Isolated demo build, Simplified Chinese: the menu lists 复制邮箱, 重新登录, 移除账户.

This branch contains the menu-dismissal commit from #141. Merge #141 first.

🤖 Generated with Claude Code

squarepots and others added 3 commits September 30, 2026 20:03
The card and toolbar menus were native <details> elements, so they stayed
open until their own button was pressed again and several could be open
at once. Replace both with one controlled popover that closes on an
outside press, Escape, focus leaving, window blur, or a chosen action,
and returns focus to its button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in again appeared only after a confirmed authentication failure, so
an account whose failure was classified as something else had no way to
start a new login. Keep the action in the account menu for every saved
ChatGPT account and keep promoting it to the primary action after a
confirmed failure. Table tests cover every switch and quota failure code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/App.test.tsx
#	src/App.tsx
@squarepots
squarepots merged commit 5f35670 into main Sep 30, 2026
11 checks passed
@squarepots
squarepots deleted the fix/sign-in-again-menu branch September 30, 2026 12:46
@squarepots squarepots mentioned this pull request Sep 30, 2026
squarepots added a commit that referenced this pull request Sep 30, 2026
Version change only. Releases #141, #142, and #143; the maintainer accepted the 1.0.20-rc.1 preview built from 87916f0 with real accounts.
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.

1 participant