fix(codex): clarify account-switch restart card actions (#9254)

The account-switched restart card had two near-synonymous dismissive
buttons (Dismiss / Collapse) whose distinct behaviors weren't legible,
and body copy that attributed "keep working with the current account"
to Collapse — which only minimizes the notice.

Remap to intent-named actions:
- Dismiss  -> "Keep old account" (clears the notice; pane stays on the
  old account)
- Collapse -> "Not now" (minimize to the pill; decision deferred)
- Body no longer claims the minimize action commits you to an account.

Restart, the title, and the heading are unchanged. New English strings
get fresh auto keys so stale es/ja/ko/zh translations don't persist;
catalog re-synced.
This commit is contained in:
Brennan Benson 2026-07-17 18:42:59 -07:00 committed by GitHub
parent ad206027b8
commit 64c7f14c3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19 additions and 19 deletions

View File

@ -209,17 +209,17 @@ function LoudRestartOverlay({
</div>
<div id={bodyId} className="text-sm leading-relaxed text-muted-foreground">
{translate(
'auto.components.CodexRestartChip.e9b2c7d1a5',
'Restart this session to use {{value0}}. Collapse to keep working with the current account.',
'auto.components.CodexRestartChip.9375620cc3',
'Restart this session to use {{value0}}. It stays on the previous account until you do.',
{ value0: restartNotice.nextAccountLabel }
)}
</div>
<div className="mt-1 flex flex-wrap justify-end gap-2">
<Button type="button" variant="outline" size="sm" onClick={onDismiss}>
{translate('auto.components.CodexRestartChip.9132779820', 'Dismiss')}
{translate('auto.components.CodexRestartChip.6133594b12', 'Keep old account')}
</Button>
<Button type="button" variant="outline" size="sm" onClick={onCollapse}>
{translate('auto.components.CodexRestartChip.f1a6c8e3b4', 'Collapse')}
{translate('auto.components.CodexRestartChip.b9000fe511', 'Not now')}
</Button>
<Button ref={restartRef} type="button" variant="default" size="sm" onClick={onRestart}>
<RefreshCw />

View File

@ -762,13 +762,13 @@
},
"components": {
"CodexRestartChip": {
"9132779820": "Dismiss",
"a4c8e1b2f7": "Codex is still signed in as {{value0}}",
"c72a5fb234": "Restart",
"9263e75f49": "Codex is using the previous account",
"d3e8a1f4b2": "Account switched",
"e9b2c7d1a5": "Restart this session to use {{value0}}. Collapse to keep working with the current account.",
"f1a6c8e3b4": "Collapse"
"9375620cc3": "Restart this session to use {{value0}}. It stays on the previous account until you do.",
"6133594b12": "Keep old account",
"b9000fe511": "Not now"
},
"FirstLaunchBanner": {
"b9e1b966c7": "Dismiss notice",

View File

@ -739,13 +739,13 @@
},
"components": {
"CodexRestartChip": {
"9132779820": "Descartar",
"c72a5fb234": "Reiniciar",
"9263e75f49": "Codex está usando la cuenta anterior.",
"a4c8e1b2f7": "Codex sigue conectado como {{value0}}",
"d3e8a1f4b2": "Cuenta cambiada",
"e9b2c7d1a5": "Reinicia esta sesión para usar {{value0}}. Contrae para seguir trabajando con la cuenta actual.",
"f1a6c8e3b4": "Contraer"
"9375620cc3": "Restart this session to use {{value0}}. It stays on the previous account until you do.",
"6133594b12": "Keep old account",
"b9000fe511": "Not now"
},
"FirstLaunchBanner": {
"b9e1b966c7": "Descartar aviso",

View File

@ -739,13 +739,13 @@
},
"components": {
"CodexRestartChip": {
"9132779820": "閉じる",
"c72a5fb234": "再起動",
"9263e75f49": "Codex は前のアカウントを使用しています",
"a4c8e1b2f7": "Codex はまだ {{value0}} としてサインインしています",
"d3e8a1f4b2": "アカウントを切り替えました",
"e9b2c7d1a5": "{{value0}} を使用するにはこのセッションを再起動してください。現在のアカウントで作業を続けるには折りたたんでください。",
"f1a6c8e3b4": "折りたたむ"
"9375620cc3": "Restart this session to use {{value0}}. It stays on the previous account until you do.",
"6133594b12": "Keep old account",
"b9000fe511": "Not now"
},
"FirstLaunchBanner": {
"b9e1b966c7": "通知を閉じる",

View File

@ -739,13 +739,13 @@
},
"components": {
"CodexRestartChip": {
"9132779820": "닫기",
"c72a5fb234": "다시 시작",
"9263e75f49": "Codex는 이전 계정을 사용하고 있습니다",
"a4c8e1b2f7": "Codex가 아직 {{value0}} 계정으로 로그인되어 있습니다",
"d3e8a1f4b2": "계정 전환됨",
"e9b2c7d1a5": "{{value0}}을(를) 사용하려면 이 세션을 다시 시작하세요. 현재 계정으로 계속 작업하려면 접으세요.",
"f1a6c8e3b4": "접기"
"9375620cc3": "Restart this session to use {{value0}}. It stays on the previous account until you do.",
"6133594b12": "Keep old account",
"b9000fe511": "Not now"
},
"FirstLaunchBanner": {
"b9e1b966c7": "알림 닫기",

View File

@ -739,13 +739,13 @@
},
"components": {
"CodexRestartChip": {
"9132779820": "关闭",
"c72a5fb234": "重新启动",
"9263e75f49": "Codex 正在使用之前的账户",
"a4c8e1b2f7": "Codex 仍以 {{value0}} 身份登录",
"d3e8a1f4b2": "账户已切换",
"e9b2c7d1a5": "重启此会话以使用 {{value0}}。折叠以继续使用当前账户。",
"f1a6c8e3b4": "折叠"
"9375620cc3": "Restart this session to use {{value0}}. It stays on the previous account until you do.",
"6133594b12": "Keep old account",
"b9000fe511": "Not now"
},
"FirstLaunchBanner": {
"b9e1b966c7": "关闭通知",