[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 82/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react-native, typescript
- Bereich
- authentication, mobile
Rechercherichtung
Beginne in apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx, insbesondere beim Status-Selektor um die Zeilen 263–271, und vergleiche die Behandlung des Leerlaufzustands mit der Codex-Warnung im Web in apps/web/src/components/settings/CodexSetupSection.tsx. Füge Komponententests für gewöhnliches Abmelden und Abmelden mit einer Leerlaufwarnung hinzu oder aktualisiere sie; fertig ist es, wenn die Warnung nach der lokalen Abmeldung sichtbar ist und beim gewöhnlichen erfolgreichen Abmelden weiterhin der normale Status angezeigt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- 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.”
- Complete the sign-out action and read the status text. This fixture requires no provider account or network call.
- Expected: The screen shows the local sign-out confirmation and the instruction to disconnect the app.
- 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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 24.8k
- Forks
- 6.4k
- Ø Merge
- 2 Std. 25 Min.
- Gemergte PRs (30 T.)
- 519
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pingdotgg/t3code
-
via-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadioEvtl. vergeben @standard-librarian hat das vor 1 Tag übernommen. Offenvia-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
via-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
pingdotgg/t3code#46052 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in pingdotgg/t3code
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
melgarafael/DeskcommCRM#5614 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
slackapi/slack-health-score#253 ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature needs triage site
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
owid/owid-grapher#8019 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
simstudioai/sim#10710 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug:new
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
callstackincubator/simlock#2088 ·
Maintainer antworten meist innerhalb von 1 Tag