[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- authentication, mobile
Línea de trabajo
Empieza en apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx, especialmente en el selector de estado alrededor de las líneas 263–271, y compara cómo gestiona el estado inactivo con la advertencia de Codex en la web en apps/web/src/components/settings/CodexSetupSection.tsx. Añade o actualiza las pruebas del componente para el cierre de sesión habitual y el cierre de sesión con una advertencia de inactividad; se considera terminado cuando la advertencia es visible después del cierre de sesión local y el cierre de sesión habitual realizado correctamente sigue mostrando el estado normal.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 24.8k
- Forks
- 6.4k
- Merge medio
- 2 h 25 min
- PR fusionados (30 d)
- 519
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pingdotgg/t3code
-
via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadioPosiblemente ocupada @standard-librarian la tomó hoy. Abiertovia-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pingdotgg/t3code#46052 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de pingdotgg/t3code
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
simstudioai/sim#10710 ·
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
callstackincubator/simlock#2088 ·
Los mantenedores suelen responder en 1 día
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
juspay/odu#193 · 1 comentario ·
Los mantenedores suelen responder en 1 día