Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): clarify Codex auth restart recovery (#3804)
Dash4db3de30da6b
diff --git a/apps/desktop/src/renderer/__tests__/errorMessageRestore.test.ts b/apps/desktop/src/renderer/__tests__/errorMessageRestore.test.tsindex ab9382338a..99e96f87a3 100644--- a/apps/desktop/src/renderer/__tests__/errorMessageRestore.test.ts+++ b/apps/desktop/src/renderer/__tests__/errorMessageRestore.test.ts@@ -43,6 +43,12 @@ describe('mapServerMessages — persisted terminal error rows', () => {);});+ it('maps force-retired errors to location-neutral copy for persisted rows', () => {+ expect(ERROR_REASON_I18N_KEYS['app-server-force-retired']).toBe(+ 'chat.errorBanner.codexAppServerRetired',+ );+ });+it('maps upstream overload to the same copy the tail banner uses', () => {// 本表注释的一致性诉求: 同一条过载错误不能出现「尾部红条本地化、历史静态卡// 英文原文」的分裂。复用 banner 那条 key(不新增文案), 且 codex 改措辞也不影响diff --git a/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx b/apps/desktop/src/renderer/components/chat/ErrorBanner.tsxindex f130dba2fa..294bb2c424 100644--- a/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx+++ b/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx@@ -82,10 +82,7 @@ interface ErrorBannerProps {remoteHostId?: string;/** device-link 被控端设备 id。非空表示 turn 不在本机执行,本机认证恢复入口必须禁用。 */deviceLinkDeviceId?: string | null;- /** 当前 session 的 model id。折扣版 GPT (budget, `codex/` 前缀) 报错时,在通用- * 错误文案后追加一句「可切到普通版 GPT 试试」的引导 (折扣版走 gateway, 偶发- * 限流/不可用时,普通版往往能正常出)。仅对没有专属引导的通用错误分支生效,- * 避免和 auth/stale/encrypted 等分支的具体指引打架。 */+ /** 当前 session 的 model id。用于判断 OpenAI/ChatGPT 连接来源及桥接模型。 */modelId?: string;/** 当前会话显式选择的模型来源。OpenAI 重连只能处理 openai / 无显式来源的历史会话;* 其它 provider 的 OAuth 错误必须留给对应来源处理。 */@@ -179,6 +176,11 @@ export function ErrorBanner({// 新建会话即可在新模式下生效(重开本会话走 thread/resume 也可)。'thread not found'// 是 codex 专属措辞,不会误伤 Claude 的错误。const isCodexThreadStale = /thread not found/i.test(error);+ // 鉴权状态、配置变化或 host 无响应都可能主动退役旧的 Codex app-server。正在执行的+ // 请求会收到同一个终态错误;reason 本身不携带足够的原因信息,因此展示中性提示。+ const isCodexAppServerForceRetired =+ errorReason === 'app-server-force-retired' ||+ (agentKind === 'codex' && /app-server force-retired:/i.test(error));// 仅本地 Codex 会话:远端会话 rollout 在远端机器, 本地 fork 剥离做不到, 不给入口。const showInvalidEncryptedContentRecovery =agentKind === 'codex' &&@@ -339,8 +341,7 @@ export function ErrorBanner({}, [error]);// hasSpecialGuidance: 是否命中下面任一「有专属可操作指引」的特殊分支。用一个在- // else 兜底里翻转的标志, 而不是另写一遍 5 个条件取反 —— 将来新增特殊分支只要照常- // 加 else if, 标志自动保持 true, 折扣版提示不会误叠加 (无需记得同步维护条件表)。+ // else 兜底里翻转的标志, 而不是另写一遍条件取反,保证原始错误只在通用回退时展开。let displayError: string;let hasSpecialGuidance = true;if (isCodexResumeNotReadyProjectionError(error)) {@@ -349,6 +350,8 @@ export function ErrorBanner({displayError = t('ipcError.PI_IMAGE_INPUT_UNSUPPORTED');} else if (isCredentialSwitchBusy) {displayError = t('chat.errorBanner.credentialSwitchBusy');+ } else if (isCodexAppServerForceRetired) {+ displayError = t('chat.errorBanner.codexAppServerRetired');} else if (isCodexThreadStale) {displayError = t('chat.errorBanner.codexThreadStale');} else if (showInvalidEncryptedContentRecovery) {@@ -468,22 +471,6 @@ export function ErrorBanner({}const showUnwrappedRaw = !hasSpecialGuidance && !errorReasonI18nKey && unwrappedDisplay !== error;- // 折扣版 GPT (budget, `codex/` 前缀) 走 gateway, 偶发限流 / 后端不可用时, 普通版- // 往往能正常出。仅在通用错误分支 (上面没命中任何特殊分支) 追加一句切普通版的引导- // —— auth/stale/encrypted/session-expired 分支各自已有指引, 叠加会噪 / 打架。- // budget 判定与全项目一致: `codex/` 前缀。- // 例外:网络类分支(终止态)仍叠加 —— 折扣版 gateway 挂掉恰恰多表现为 502 /- // upstream unreachable,「切普通版试试」对症;自动重试中不叠(用户无需行动)。- // 过载类同理叠加:折扣版 gateway 的容量往往比官方版更紧,「切普通版试试」对症。- // 仍在自动重试时不叠(用户无需行动)——判据是有没有进度后缀,而不是 isRecoverable:- // 预算耗尽后的终止错误没有后缀,那时才该给建议。- const isBudgetModel = !!modelId && modelId.startsWith('codex/');- const showBudgetHint =- isBudgetModel &&- (!hasSpecialGuidance ||- (isNetworkishError && !isRecoverable) ||- (isOverloadError && !overloadRetryProgress));-const handleSwitchToClaudeSubscription = async (): Promise<void> => {if (!onSwitchToClaudeSubscription || switchingClaudeSubscription) return;setSwitchingClaudeSubscription(true);@@ -596,11 +583,6 @@ export function ErrorBanner({>{displayError}</span>- {showBudgetHint && (- <span className="mt-0.5 block text-xs text-red-600 dark:text-red-400 break-all">- {t('chat.errorBanner.budgetModelHint')}- </span>- )}{(isNetworkishError ||isOverloadError ||isStreamInterrupted ||diff --git a/apps/desktop/src/renderer/components/chat/__tests__/ErrorBannerCodexOAuth.test.tsx b/apps/desktop/src/renderer/components/chat/__tests__/ErrorBannerCodexOAuth.test.tsxindex ed43ad5558..adae390a0b 100644--- a/apps/desktop/src/renderer/components/chat/__tests__/ErrorBannerCodexOAuth.test.tsx+++ b/apps/desktop/src/renderer/components/chat/__tests__/ErrorBannerCodexOAuth.test.tsx@@ -147,6 +147,49 @@ describe('ErrorBanner OpenAI connection recovery', () => {expect(screen.queryByText(error)).toBeNull();});+ it('uses cause-neutral Codex app-server retirement copy and does not suggest switching models', () => {+ render(+ <ErrorBanner+ error="app-server force-retired: Codex desktop auth login"+ errorReason="app-server-force-retired"+ retryText="retry this turn"+ onRetry={vi.fn()}+ agentKind="codex"+ modelId="codex/gpt-5.6-sol"+ />,+ );++ expect(screen.getByText('chat.errorBanner.codexAppServerRetired')).toBeTruthy();+ expect(screen.queryByText('chat.errorBanner.codexAppServerRestarted')).toBeNull();+ expect(screen.queryByText('app-server force-retired: Codex desktop auth login')).toBeNull();+ expect(screen.getByRole('button', { name: 'chat.errorBanner.retry' })).toBeTruthy();+ });++ it.each([+ { label: 'SSH', remoteHostId: 'ssh-1' },+ { label: 'device-link', deviceLinkDeviceId: 'device-1' },+ ])(+ 'uses neutral force-retired copy for $label Codex sessions',+ ({ remoteHostId, deviceLinkDeviceId }) => {+ render(+ <ErrorBanner+ error="app-server force-retired: CodexAgent auth invalidated: remote credentials changed"+ errorReason="app-server-force-retired"+ retryText="retry this turn"+ onRetry={vi.fn()}+ agentKind="codex"+ modelId="gpt-5.6-sol"+ remoteHostId={remoteHostId}+ deviceLinkDeviceId={deviceLinkDeviceId}+ />,+ );++ expect(screen.getByText('chat.errorBanner.codexAppServerRetired')).toBeTruthy();+ expect(screen.queryByText('chat.errorBanner.codexAppServerRestarted')).toBeNull();+ expect(screen.getByRole('button', { name: 'chat.errorBanner.retry' })).toBeTruthy();+ },+ );+it('opens ChatGPT App without starting Cindy OAuth for an invalidated system-shared login', async () => {mocks.getState.mockResolvedValue({authenticated: false,@@ -753,6 +796,7 @@ describe('ErrorBanner OpenAI connection recovery', () => {confirmText: 'chatgptAuthRecovery.openApp',tertiaryText: 'chatgptAuthRecovery.relogin',cancelText: 'chatgptAuthRecovery.later',+ maxWidth: 520,autoFocusConfirm: true,}),);@@ -806,6 +850,7 @@ describe('ErrorBanner OpenAI connection recovery', () => {confirmText: 'chatgptAuthRecovery.openApp',tertiaryText: 'chatgptAuthRecovery.relogin',cancelText: 'chatgptAuthRecovery.later',+ maxWidth: 520,autoFocusConfirm: true,}),);diff --git a/apps/desktop/src/renderer/components/chat/errorReasonI18n.ts b/apps/desktop/src/renderer/components/chat/errorReasonI18n.tsindex d0194c525c..b5cbc21cf0 100644--- a/apps/desktop/src/renderer/components/chat/errorReasonI18n.ts+++ b/apps/desktop/src/renderer/components/chat/errorReasonI18n.ts@@ -25,6 +25,9 @@ export const ERROR_REASON_I18N_KEYS: Record<string, string> = {upstream_response_idle_timeout: 'logic.errors.upstreamResponseIdleTimeout',codex_reconnect_stalled: 'logic.errors.upstreamResponseIdleTimeout',codex_history_oversized: 'logic.errors.codexHistoryOversized',+ // Persisted error rows and the live reason both lack a reliable retirement+ // cause, so use copy that does not claim a location or authentication cause.+ 'app-server-force-retired': 'chat.errorBanner.codexAppServerRetired',// 压缩风暴分两条:有切模型证据的才点名切模型。共用一条会让没切过模型(或已切回)// 的用户看到「请切回原模型」这种无从执行的指令 —— 这里的文案会覆盖 maker-core// 合成的 message,所以 reason 选错等于用户唯一看到的那句话就是错的。diff --git a/apps/desktop/src/renderer/components/ui/__tests__/confirmDialogA11y.test.tsx b/apps/desktop/src/renderer/components/ui/__tests__/confirmDialogA11y.test.tsxindex 7048eaaaeb..2e31d9f1de 100644--- a/apps/desktop/src/renderer/components/ui/__tests__/confirmDialogA11y.test.tsx+++ b/apps/desktop/src/renderer/components/ui/__tests__/confirmDialogA11y.test.tsx@@ -73,9 +73,7 @@ describe('ConfirmDialog describeContent', () => {});it('无 description 且未开启 describeContent 时不带 aria-describedby(既有行为)', () => {- render(- <ConfirmDialog open onOpenChange={() => {}} title="确定退出?" confirmText="退出" />,- );+ render(<ConfirmDialog open onOpenChange={() => {}} title="确定退出?" confirmText="退出" />);expect(screen.getByRole('alertdialog').getAttribute('aria-describedby')).toBeNull();});});@@ -99,3 +97,31 @@ describe('ConfirmDialog confirmIcon', () => {expect(iconWrapper.querySelector('[data-testid="warn-icon"]')).not.toBeNull();});});++describe('ConfirmDialog action layout', () => {+ it('keeps action labels on one line without allowing buttons to shrink', () => {+ render(+ <ConfirmDialog+ open+ onOpenChange={() => {}}+ title="ChatGPT 登录已失效"+ description="请先恢复登录"+ confirmText="打开 ChatGPT App"+ tertiaryText="重新登录 ChatGPT"+ cancelText="稍后处理"+ maxWidth={520}+ />,+ );++ const dialog = screen.getByRole('alertdialog');+ expect(dialog.style.maxWidth).toBe('520px');+ expect(+ screen.getByRole('button', { name: '打开 ChatGPT App' }).parentElement?.className,+ ).toContain('flex-wrap');+ for (const label of ['打开 ChatGPT App', '重新登录 ChatGPT', '稍后处理']) {+ const button = screen.getByRole('button', { name: label });+ expect(button.className).toContain('whitespace-nowrap');+ expect(button.className).toContain('shrink-0');+ }+ });+});diff --git a/apps/desktop/src/renderer/components/ui/confirm-dialog.tsx b/apps/desktop/src/renderer/components/ui/confirm-dialog.tsxindex 1917a61772..05d4c51fec 100644--- a/apps/desktop/src/renderer/components/ui/confirm-dialog.tsx+++ b/apps/desktop/src/renderer/components/ui/confirm-dialog.tsx@@ -306,7 +306,7 @@ export function ConfirmDialog({/></div>)}- <div className="mt-6 flex shrink-0 justify-end gap-2.5">+ <div className="mt-6 flex shrink-0 flex-wrap justify-end gap-2.5"><AlertDialog.Action asChild><buttonref={confirmBtnRef}@@ -315,7 +315,7 @@ export function ConfirmDialog({aria-label={resolvedConfirmText}onClick={() => onConfirm?.({ dontShowAgain })}className={cn(- 'inline-flex min-w-[96px] items-center justify-center rounded-full px-6 py-2.5 text-13 font-medium',+ 'inline-flex min-w-[96px] shrink-0 items-center justify-center whitespace-nowrap rounded-full px-6 py-2.5 text-13 font-medium','transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2','active:scale-[0.98]',confirmVariant === 'destructive'@@ -353,7 +353,7 @@ export function ConfirmDialog({disabled={loading}onClick={() => onTertiary?.()}className={cn(- 'inline-flex min-w-[96px] items-center justify-center rounded-full px-6 py-2.5 text-13 font-medium',+ 'inline-flex min-w-[96px] shrink-0 items-center justify-center whitespace-nowrap rounded-full px-6 py-2.5 text-13 font-medium','transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2','active:scale-[0.98]','border bg-transparent',@@ -372,7 +372,7 @@ export function ConfirmDialog({disabled={loading}onClick={() => onCancel?.()}className={cn(- 'inline-flex min-w-[96px] items-center justify-center rounded-full px-6 py-2.5 text-13 font-medium',+ 'inline-flex min-w-[96px] shrink-0 items-center justify-center whitespace-nowrap rounded-full px-6 py-2.5 text-13 font-medium','transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2','active:scale-[0.98]','border bg-transparent',diff --git a/apps/desktop/src/renderer/hooks/useCodexSessionExpiredPrompt.ts b/apps/desktop/src/renderer/hooks/useCodexSessionExpiredPrompt.tsindex ec6b22b2f0..22b9b69f54 100644--- a/apps/desktop/src/renderer/hooks/useCodexSessionExpiredPrompt.ts+++ b/apps/desktop/src/renderer/hooks/useCodexSessionExpiredPrompt.ts@@ -132,6 +132,8 @@ export function useCodexSessionExpiredPrompt(options?: {confirmText: t(copy.confirmText),tertiaryText: t('chatgptAuthRecovery.relogin'),cancelText: t('chatgptAuthRecovery.later'),+ // 三选一恢复操作的中文文案较长;保留默认确认框宽度会把按钮文字逐字折行。+ maxWidth: 520,autoFocusConfirm: true,});if (!mountedRef.current) return;diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex f336947670..cef79b9651 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -7505,7 +7505,7 @@"openApp": "Open ChatGPT App","relogin": "Sign In to ChatGPT Again","reloginRiskTitle": "Still sign in through Cindy?",- "reloginRiskDescription": "This creates a new OpenAI OAuth authorization and may immediately sign the ChatGPT App and Codex CLI out on this computer. You will need to sign in to those apps again afterward.",+ "reloginRiskDescription": "Cindy will create a new OpenAI OAuth authorization. The ChatGPT App is usually unaffected; if it still shares credentials with system Codex, those apps may ask you to sign in again.","reloginRiskConfirm": "Accept Risk and Continue","devWriteBlocked": "Development builds use this computer’s ChatGPT sign-in read-only by default and cannot start OAuth or change its credentials. To test OAuth, use an isolated sandbox and explicitly set XDT_ALLOW_DEV_OAUTH_WRITE=1.","devReadOnly": "Read-only in Development",@@ -7693,7 +7693,7 @@"switchClaudeSubscriptionTitle": "Switch this session to the Claude.ai subscription and retry","switchingClaudeSubscription": "Switching to Claude.ai…","claudeSubscriptionSwitchFailed": "Couldn’t switch to Claude.ai or retry this session: {{msg}}",- "budgetModelHint": "If this keeps failing, try switching to the standard GPT model.",+ "codexAppServerRetired": "The Codex service was restarted or replaced. The current request was interrupted; run it again.","codexAuthMissing": "Remote Codex hasn't been signed in yet (401 Unauthorized). Click \"Sync auth\" to push your local Codex credentials to the remote Cindy Codex home, then retry.","codexAuthMissingLocal": "Codex credentials missing or expired (401 Unauthorized). Re-login in {{appName}} Settings → Codex (the app-server will auto-restart on login), or run `codex login` in your terminal and toggle the auth mode in Settings once to restart the app-server. Then start a new session.","codexSessionExpired": "The OpenAI connection needs an update. Reconnect ChatGPT to continue; {{appName}} won’t sign your system Codex CLI out or ask you to reconnect other model sources.",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex e84b738bad..3d14ca1fac 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -7497,7 +7497,7 @@"openApp": "ChatGPT App を開く","relogin": "ChatGPT に再ログイン","reloginRiskTitle": "それでも Cindy から再ログインしますか?",- "reloginRiskDescription": "新しい OpenAI OAuth 認証が作成され、このコンピューターの ChatGPT App と Codex CLI が直ちにログアウトする可能性があります。完了後、それらのアプリでもう一度ログインする必要があります。",+ "reloginRiskDescription": "Cindy は新しい OpenAI OAuth 認証情報を作成します。通常は ChatGPT App に影響しませんが、システムの Codex と認証情報を共有している場合は、関連アプリで再ログインが必要になることがあります。","reloginRiskConfirm": "リスクを承知して続行","devWriteBlocked": "開発環境は既定で、このコンピューターの ChatGPT ログインを読み取り専用で共有するため、OAuth の開始や認証情報の変更はできません。OAuth をテストする場合は、隔離サンドボックスで XDT_ALLOW_DEV_OAUTH_WRITE=1 を明示的に設定してください。","devReadOnly": "開発環境では読み取り専用",@@ -7681,7 +7681,7 @@"switchClaudeSubscriptionTitle": "このセッションを Claude.ai サブスクリプションに切り替えて再試行","switchingClaudeSubscription": "Claude.ai に切り替え中…","claudeSubscriptionSwitchFailed": "Claude.ai への切り替えまたはこのセッションの再試行に失敗しました:{{msg}}",- "budgetModelHint": "繰り返し失敗する場合は、通常版 GPT モデルに切り替えてお試しください。",+ "codexAppServerRetired": "Codex サービスが再起動または交換されました。現在のリクエストは中断されたため、もう一度実行してください。","codexAuthMissing": "リモートの Codex がまだサインインしていません(401 Unauthorized)。「認証情報を同期」をクリックしてローカルの Codex 認証情報をリモートの Cindy Codex home にプッシュし、再試行してください。","codexAuthMissingLocal": "Codex 認証情報がないか期限切れです(401 Unauthorized)。{{appName}} Settings → Codex から再ログインする(ログイン時に app-server が自動再起動)か、ターミナルで `codex login` 実行後 Settings で認証モードを一度切り替えて app-server を再起動してから、新しいセッションを開始してください。","codexSessionExpired": "OpenAI 接続の更新が必要です。ChatGPT に再接続すると続行できます。{{appName}} がシステムの Codex CLI からサインアウトしたり、他のモデルソースへの再接続を求めたりすることはありません。",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex d741e410ab..cf47325d25 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -7497,7 +7497,7 @@"openApp": "ChatGPT App 열기","relogin": "ChatGPT 다시 로그인","reloginRiskTitle": "그래도 Cindy에서 다시 로그인할까요?",- "reloginRiskDescription": "새 OpenAI OAuth 인증이 생성되며 이 컴퓨터의 ChatGPT App과 Codex CLI가 즉시 로그아웃될 수 있습니다. 완료 후 해당 앱에서 다시 로그인해야 합니다.",+ "reloginRiskDescription": "Cindy가 새 OpenAI OAuth 인증 정보를 만듭니다. 일반적으로 ChatGPT App에는 영향을 주지 않지만 시스템 Codex와 인증 정보를 공유하는 경우 관련 앱에서 다시 로그인해야 할 수 있습니다.","reloginRiskConfirm": "위험을 감수하고 계속","devWriteBlocked": "개발 환경은 기본적으로 이 컴퓨터의 ChatGPT 로그인을 읽기 전용으로 공유하므로 OAuth를 시작하거나 자격 증명을 변경할 수 없습니다. OAuth를 테스트하려면 격리된 샌드박스에서 XDT_ALLOW_DEV_OAUTH_WRITE=1을 명시적으로 설정하세요.","devReadOnly": "개발 환경에서 읽기 전용",@@ -7681,7 +7681,7 @@"switchClaudeSubscriptionTitle": "이 세션을 Claude.ai 구독으로 전환하고 다시 시도","switchingClaudeSubscription": "Claude.ai로 전환하는 중…","claudeSubscriptionSwitchFailed": "Claude.ai로 전환하거나 이 세션을 다시 시도할 수 없습니다: {{msg}}",- "budgetModelHint": "계속 실패하면 일반 GPT 모델로 전환해 보세요.",+ "codexAppServerRetired": "Codex 서비스가 다시 시작되었거나 교체되었습니다. 현재 요청이 중단되었으므로 다시 실행해 주세요.","codexAuthMissing": "원격 Codex가 아직 로그인되지 않았습니다(401 Unauthorized). 「인증 동기화」를 클릭하여 로컬 Codex 자격 증명을 원격 Cindy Codex home으로 푸시한 후 다시 시도하세요.","codexAuthMissingLocal": "Codex 자격 증명이 없거나 만료되었습니다(401 Unauthorized). {{appName}} Settings → Codex에서 다시 로그인하거나(로그인 시 app-server가 자동 재시작) 터미널에서 `codex login` 실행 후 Settings에서 인증 모드를 한 번 전환하여 app-server를 재시작한 다음 새 세션을 시작하세요.","codexSessionExpired": "OpenAI 연결을 업데이트해야 합니다. ChatGPT를 다시 연결하면 계속할 수 있습니다. {{appName}}에서 시스템 Codex CLI를 로그아웃하거나 다른 모델 소스의 재연결을 요구하지 않습니다.",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 4002a7df2d..3e902efc51 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -7489,7 +7489,7 @@"openApp": "打开 ChatGPT App","relogin": "重新登录 ChatGPT","reloginRiskTitle": "仍要由 Cindy 重新登录?",- "reloginRiskDescription": "这会创建新的 OpenAI OAuth 授权,并可能让本机 ChatGPT App 和 Codex CLI 立即退出登录。完成后,你需要在本机应用中再次登录。",+ "reloginRiskDescription": "Cindy 会创建新的 OpenAI OAuth 登录凭证。通常不会影响 ChatGPT App;如果仍与系统 Codex 共用同一份凭证,相关应用可能会要求你重新登录。","reloginRiskConfirm": "接受风险并继续","devWriteBlocked": "开发环境默认只读共享本机 ChatGPT 登录,不能发起登录或改写凭证。确需测试 OAuth 时,请用隔离沙箱并显式设置 XDT_ALLOW_DEV_OAUTH_WRITE=1。","devReadOnly": "开发环境只读",@@ -7673,7 +7673,7 @@"switchClaudeSubscriptionTitle": "把当前任务切换到 Claude.ai 订阅并重试","switchingClaudeSubscription": "正在切换到 Claude.ai…","claudeSubscriptionSwitchFailed": "无法切换到 Claude.ai 或重试当前任务:{{msg}}",- "budgetModelHint": "如果反复失败,可以切换到普通版 GPT 再试试。",+ "codexAppServerRetired": "Codex 服务已重启或更换;当前请求已中断,请重新运行。","codexAuthMissing": "远端 Codex 还没同步登录态(401 Unauthorized)。点击右侧「同步登录态」把本机 Codex 凭证推到远端 Cindy Codex home,然后重试发送。","codexAuthMissingLocal": "Codex 凭证缺失或失效(401 Unauthorized)。请在 {{appName}} Settings → Codex 重新登录(登录后会自动重启 Codex app-server),或在终端跑 `codex login` + 在 Settings 切换一次鉴权模式来重启 app-server,然后新建任务再发。","codexSessionExpired": "OpenAI 连接需要更新。重新连接 ChatGPT 后即可继续;{{appName}} 不会退出系统 Codex CLI,也不会要求你重新连接其他模型来源。",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 2edfbddb74..37e3eb4860 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -7489,7 +7489,7 @@"openApp": "開啟 ChatGPT App","relogin": "重新登入 ChatGPT","reloginRiskTitle": "仍要由 Cindy 重新登入?",- "reloginRiskDescription": "這會建立新的 OpenAI OAuth 授權,並可能讓本機 ChatGPT App 和 Codex CLI 立即登出。完成後,你需要在本機應用程式中再次登入。",+ "reloginRiskDescription": "Cindy 會建立新的 OpenAI OAuth 登入憑證。通常不會影響 ChatGPT App;如果仍與系統 Codex 共用同一份憑證,相關應用程式可能會要求你重新登入。","reloginRiskConfirm": "接受風險並繼續","devWriteBlocked": "開發環境預設以唯讀方式共用本機 ChatGPT 登入,不能發起登入或改寫憑證。確需測試 OAuth 時,請使用隔離沙箱並明確設定 XDT_ALLOW_DEV_OAUTH_WRITE=1。","devReadOnly": "開發環境唯讀",@@ -7672,7 +7672,7 @@"switchClaudeSubscriptionTitle": "把當前任務切換到 Claude.ai 訂閱並重試","switchingClaudeSubscription": "正在切換到 Claude.ai…","claudeSubscriptionSwitchFailed": "無法切換到 Claude.ai 或重試當前任務:{{msg}}",- "budgetModelHint": "如果反覆失敗,可以切換到普通版 GPT 再試試。",+ "codexAppServerRetired": "Codex 服務已重新啟動或更換;目前的請求已中斷,請重新執行。","codexAuthMissing": "遠端 Codex 還沒同步登入態(401 Unauthorized)。點選右側「同步登入態」把本機 Codex 憑證推到遠端 Cindy Codex home,然後重試傳送。","codexAuthMissingLocal": "Codex 憑證缺失或失效(401 Unauthorized)。請在 {{appName}} Settings → Codex 重新登入(登入後會自動重啟 Codex app-server),或在終端跑 `codex login` + 在 Settings 切換一次鑑權模式來重啟 app-server,然後新建任務再發。","codexSessionExpired": "OpenAI 連線需要更新。重新連線 ChatGPT 後即可繼續;{{appName}} 不會退出系統 Codex CLI,也不會要求你重新連線其他模型來源。",