[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed

オープン 初心者向け
#47,418 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@maxwellyoung がすでに取り組んでいます。

2026年12月3日 から。

  • #47981 @maxwellyoung による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react-native, typescript

調査の方向性

apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsxから始め、特に263~271行付近のステータスセレクターに注目し、アイドル状態の処理をWebのapps/web/src/components/settings/CodexSetupSection.tsxにあるCodexの警告と比較してください。通常のログアウトとアイドル警告を伴うログアウトについて、コンポーネントテストを追加または更新してください。ローカルでサインアウトした後に警告が表示され、通常のログアウトが成功した場合は引き続き通常のステータスが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

At be0e8a5f1658a9e40fa1ebdd41c8b413fa0492d1, a successful local Codex sign-out can carry a warning that the user still needs to disconnect the app in ChatGPT Settings. The shared auth flow preserves that warning in its idle state. Mobile provider settings discard it when choosing the status text. Web Codex settings recognize and display it. apps/server/src/provider/CodexChatGptAuth.ts:899-904 packages/provider-core/src/server/providerAuthFlow.ts:491-510 apps/web/src/components/settings/CodexSetupSection.tsx:842-847 apps/web/src/components/settings/CodexSetupSection.tsx:1105-1108

Relevant Code

The mobile command handler returns success as soon as the command succeeds. The status selector only uses the server message when the flow is active, failed or cancelled. apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx:200-217

Source excerpt apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx:263-271

  const status =
    active || state?.phase === "failed" || state?.phase === "cancelled"
      ? state.message
      : !provider.enabled
        ? gt("Turned off")
        : signedIn
          ? gt("Signed in")
          : isDiscovering
            ? gt("Discovering sign-in methods…")

The web screen already identifies the same idle-state warning.

Source excerpt apps/web/src/components/settings/CodexSetupSection.tsx:842-848

  const logoutWarning =
    auth?.phase === "idle" && auth.message?.startsWith("Signed out locally.") ? auth.message : null;

  if (presentation === "onboarding") {
    const setupError =
      logoutWarning ??
      error ??
Minimal Reproduction
  1. In a component test, supply the mobile Codex account screen with an enabled, installed provider and a signed-out account. Have the logout fixture return the server’s idle state carrying “Signed out locally. Remote revocation could not be confirmed. Disconnect the app in ChatGPT Settings.”
  2. Complete the sign-out action and read the status text. This fixture requires no provider account or network call.
  3. Expected: The screen shows the local sign-out confirmation and the instruction to disconnect the app.
  4. Actual from source inspection: The command succeeds and the status selector falls through to the ordinary provider status. The revocation instruction is absent.
Suggested Fix

Preserve the idle logout warning in mobile provider settings, using the same condition as the web Codex screen or a shared predicate. Cover both an ordinary successful logout and a successful local logout that carries the warning.


Pinned source review and scope: audit snapshot.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
2時間 25分
マージ済み PR(30日)
519

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。