[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react-native, typescript
- Domain
- authentication, mobile
Research direction
Start in apps/mobile/src/features/settings/SettingsProviderAccountsRouteScreen.tsx, especially the status selector around lines 263–271, and compare its idle-state handling with the web Codex warning in apps/web/src/components/settings/CodexSetupSection.tsx. Add or update the component tests for ordinary logout and logout with an idle warning; done means the warning is visible after local sign-out while ordinary successful logout still shows the normal status.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 24.8k
- Forks
- 6.4k
- Avg merge
- 2h 25m
- Merged PRs (30d)
- 519
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pingdotgg/t3code
-
via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadioPossibly taken @standard-librarian claimed this 1 day ago. Openvia-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pingdotgg/t3code#46052 · 1 comment ·
Maintainers usually reply within 1 day
All issues in pingdotgg/t3code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melgarafael/DeskcommCRM#5614 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 76/100
slackapi/slack-health-score#253 ·
Maintainers usually reply within 1 day
-
feature needs triage site
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
owid/owid-grapher#8019 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
simstudioai/sim#10710 ·
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
callstackincubator/simlock#2088 ·
Maintainers usually reply within 1 day