Skip to content

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

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/explain-collapse-card-copy
Jul 18, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/explain-collapse-card-copy

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

What

The Codex "Account switched" restart card had two dismissive buttons whose
distinct behaviors weren't legible, plus body copy that misdescribed one of them:

Before Problem
Dismiss Permanently clears the notice — pane keeps the old account. Reads as generic "go away."
Collapse Only minimizes the card to a pill; decision deferred. "Collapse" is a layout verb, not a decision.
Body: "…Collapse to keep working with the current account." Attributes "keep the current account" to Collapse, but that's actually what Dismiss does. Collapse commits to nothing.

Change

Intent-named actions so each button says what it does:

Button Old label New label Behavior (unchanged)
onDismiss Dismiss Keep old account Clears the notice; pane stays on the old account
onCollapse Collapse Not now Minimizes to the pill; decision deferred
onRestart Restart Restart Restarts the pane under the new account

Body copy rewritten so it no longer claims the minimize action commits you to an
account: "Restart this session to use {account}. It stays on the previous account until you do."

Title (Account switched) and heading (Codex is still signed in as …) are unchanged.

i18n

New English strings get fresh auto keys (localize-renderer-strings hashing scheme) so the
old es/ja/ko/zh translations don't silently persist under a reused key. Ran
sync:localization-catalog to add the new keys, prune the three obsolete ones, and seed the
other locales with the English fallback (translators fill them in later —
better than showing a stale/wrong translation). verify:localization-catalog and
verify:localization-coverage pass.

Testing

  • vitest codex-restart-chip.test.ts — 5/5 pass
  • typecheck:web, oxlint, verify:localization-catalog, verify:localization-coverage — clean
  • Live in the running Electron app (dev build, real store action markCodexRestartNotices on a live terminal PTY):

Loud card

loud card

"Not now" → collapsed pill

collapsed pill

Screenshots hosted on a throwaway codex-restart-copy-qa branch to keep this diff image-free; delete after review.

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.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 373f82ae-29ce-4099-aec7-3f9e71c4ae89

📥 Commits

Reviewing files that changed from the base of the PR and between 2f5fc65 and 4ee670c.

📒 Files selected for processing (6)
  • src/renderer/src/components/CodexRestartChip.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

📝 Walkthrough

Walkthrough

Updated the Codex restart overlay to explain that the session remains on the previous account until restarted. Replaced the secondary “Dismiss” and “Collapse” actions with “Keep old account” and “Not now”, while leaving the primary restart action unchanged. Updated the corresponding English, Spanish, Japanese, Korean, and Chinese localization entries.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary, i18n, and testing, but it misses required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the missing template sections, including screenshots status, AI review report, security audit, and notes, and align headings with the required format.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: renaming Codex account-switch restart card actions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025
brennanb2025 merged commit 64c7f14 into main Jul 18, 2026
1 of 2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant