[Bug]: Mobile Codex sign-out drops the warning when remote revocation is unconfirmed
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react-native, typescript
- 领域
- authentication, mobile
调研方向
从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
- 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.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 2 小时 25 分钟
- 30 天内合并 PR
- 519
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
via-triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
Radio buttons in ui/radio-group have low dark-mode contrast and look inconsistent with OptionRadio可能已有人在做 @standard-librarian 于 1 天前认领。 未关闭via-triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 72/100
pingdotgg/t3code#46052 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
melgarafael/DeskcommCRM#5614 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 76/100
slackapi/slack-health-score#253 ·
维护者通常 1 天内回复
-
feature needs triage site
难度 2/5 1-3 小时 新手友好度 64/100
owid/owid-grapher#8019 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
simstudioai/sim#10710 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 73/100
callstackincubator/simlock#2088 ·
维护者通常 1 天内回复