Releases: cyilang17/codex-account-switcher
Release list
Codex Pet v1.3.0
Codex Pet v1.3.0
中文
- 设置不再以弹窗显示,改为窗口内整页切换;新增返回按钮、固定底部操作区,并优化 Windows 下的滚动条、间距、卡片和按钮样式。
- “登录新账号”调整为“添加新账号”。账号别名改为选填;留空时优先使用登录返回的用户名,不可用时使用邮箱前缀,重名会自动追加序号,之后仍可改名。
- 移除顶部和右键菜单中的置顶开关,Codex Pet 现在始终保持置顶并跨桌面可见。
- 优化额度提醒复选框在半透明窗口中的辨识度。
- 新增强制发布规范:使用语义化版本、同步所有版本文件、每次发布必须提供中英文 Release Note,缺少说明时流水线会直接失败。
验证范围:本地前端测试、Rust 单元测试、Cargo 检查和静态差异检查通过;未在 Windows 安装包或 GitHub Actions 环境中完成运行验证。
English
- Replace the settings modal with a full in-window page, including a back button, fixed bottom actions, and refined scrolling, spacing, cards, and controls for Windows.
- Rename “Sign in to a new account” to “Add account.” The local alias is now optional; when omitted, Codex Pet uses the returned username, falls back to the email prefix, and adds a numeric suffix for conflicts. Accounts can still be renamed later.
- Remove the pin controls from the title bar and context menu. Codex Pet now remains always on top and visible across workspaces.
- Improve quota-reminder checkbox visibility on the translucent window.
- Add mandatory release governance: Semantic Versioning, synchronized version files, bilingual release notes for every release, and a workflow failure when notes are missing.
Validation: local frontend tests, Rust unit tests, Cargo checks, and static diff checks passed. The Windows installer and GitHub Actions environment were not runtime-tested locally.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.
Codex Pet v1.2.3
Codex Pet v1.2.3
中文
- Windows 账号切换和重启逻辑改为与
@cyilang/codex-switchCLI 一致:先写入并校验目标auth.json,再强制结束ChatGPT.exe、Codex.exe和OpenAI Codex.exe的完整进程树,避免旧客户端退出时把旧账号写回。 - 不再因
cli_auth_credentials_store = "auto"或"keyring"直接拦截切换。Codex Pet 继续切换本地auth.json,不修改配置或系统凭据。 - Windows 重启依次尝试
CODEX_ACCOUNT_APP_COMMAND、CODEX_ACCOUNT_APP_PATH、开始菜单快捷方式、常见安装路径、codex app和 Windows StartApps,兼容微软商店版及常见本地安装方式。 - 更新 Windows 流水线回归测试,分别覆盖全部启动回退路径以及无可用启动方式时的明确失败提示。
注意
强制重启可能中断正在运行的 Codex/ChatGPT 桌面或 CLI 任务,请在切换前保存工作。启动请求成功后,仍请在客户端确认实际账号。
English
- Align Windows account switching and restart behavior with the
@cyilang/codex-switchCLI: write and verify the targetauth.jsonfirst, then force-stop the complete process trees forChatGPT.exe,Codex.exe, andOpenAI Codex.exeso the old client cannot write its previous account back during shutdown. - Do not reject switching solely because
cli_auth_credentials_storeis set to"auto"or"keyring". Codex Pet continues to switch the localauth.jsonwithout modifying configuration or system credentials. - Try
CODEX_ACCOUNT_APP_COMMAND,CODEX_ACCOUNT_APP_PATH, Start Menu shortcuts, common installation paths,codex app, and Windows StartApps in order, covering Store and common local installations. - Update Windows CI regression tests to exercise every launch fallback and the explicit failure path when no launcher is available.
Important
The forced restart can interrupt active Codex/ChatGPT desktop or CLI work. Save your work before switching, and confirm the selected account in the client after launch is requested.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.
Codex Pet v1.2.2
Codex Pet v1.2.2
中文
Windows 账号切换与重启修复
- 调整切换顺序:先确认桌面客户端及其子进程正常退出,再保存并校验目标登录文件,最后重新启动客户端,避免旧客户端在退出时写回旧凭据。
- 区分桌面客户端与同名的 Codex CLI / app-server,不再因为无关后台进程仍在运行而误判客户端没有退出,也不会关闭无关 CLI 会话。
- 微软商店版通过应用标识启动,避免直接执行 WindowsApps 下的受保护程序;本地安装版重新启动原来的客户端安装路径。
- 修复切换失败后再次切换可能覆盖错误账号快照的问题。保存当前凭据、刷新登录及预热同步时,核对实际凭据身份和工作区,不再只依赖上次选择的账号标记。
- 写入后核验目标登录文件;账号元数据提交失败时尝试恢复原登录文件。切换按钮显示完整结果,客户端启动失败不再静默当作切换成功。
- 切换操作在后台执行,避免退出等待或登录刷新阻塞宠物界面。Windows 打包流水线增加账号切换回归测试。
使用提示
- 若客户端无法正常退出,切换会停止,不替换登录文件。请先保存任务并从客户端菜单退出后重试;仅关闭窗口可能仍在后台运行。宠物不会强制终止客户端。
- 宠物使用文件凭据存储。若 Codex
config.toml显式配置cli_auth_credentials_store = "keyring"、"auto"或"ephemeral",请自行改为"file"后重试。宠物不会修改配置或删除系统凭据。 - 自动启动成功表示已检测到桌面进程,请在客户端中确认账号。如果旧版已覆盖目标账号快照,需要重新登录该账号更新凭据。
English
Windows account switching and restart fixes
- Wait for the desktop client and its child processes to exit normally before saving and verifying the target auth file, then reopen the client. This prevents the old client from writing its previous credentials back during shutdown.
- Distinguish the desktop client from same-name Codex CLI / app-server processes. Unrelated CLI sessions neither block the restart check nor get closed by the switcher.
- Activate Microsoft Store installations using their application ID instead of executing protected files in WindowsApps. Restart local installations from the original client executable path.
- Prevent retrying a failed switch from overwriting the wrong account snapshot. Saving active credentials, refreshing sign-in, and warm-up synchronization check the actual credential identity and workspace rather than only the last selected account marker.
- Verify the target auth file after writing it and attempt to restore the previous auth file if account metadata cannot be committed. Show the full switch result; a client startup failure is no longer silently reported as a successful switch.
- Run switching in the background to keep the pet responsive during shutdown waits and sign-in refresh. Add account-switch regression tests to the Windows packaging pipeline.
Usage notes
- If the client cannot exit normally, switching stops without replacing the active auth file. Save your work and quit from the client menu before retrying; closing the window may leave it running in the background. The pet does not force-kill the client.
- The switcher uses file-backed credentials. If Codex
config.tomlexplicitly selectscli_auth_credentials_store = "keyring","auto", or"ephemeral", change it to"file"before retrying. The pet does not modify configuration or delete system credentials. - Successful startup means a desktop process was detected; confirm the selected account in the client. If an older version already overwrote the target snapshot, sign in to that account again to update its credentials.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.
Codex Pet v1.2.1
Codex Pet v1.2.1
中文
- 登录状态过期时,账户卡片显示“登录刷新账户”,通过浏览器重新登录更新账户;不再显示切换账号或预热额度按钮。使用中的过期账户也支持重新登录。
- 修复订阅到期时间在记录超过 24 小时后消失、反复提示“登录更新”的问题。保留上次登录记录的到期时间,并提供悬停说明;可点击套餐旁的刷新按钮更新信息。
English
- Show “Sign in to refresh account” when an account session expires. Browser sign-in refreshes the account, replacing the switch and warm-up actions. Expired active accounts can also sign in again.
- Fix recorded subscription expiry disappearing after 24 hours and repeatedly prompting for sign-in. Keep the expiry recorded at sign-in with an explanatory tooltip; use the refresh button beside the plan to update it.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.
Codex Pet v1.2.0
Codex Pet v1.2.0
中文
- 使用中账号的额度默认每分钟自动刷新,保留已有用户设置的刷新间隔。
- 新增额度提醒:使用中账号额度降至剩余 20%、10%、耗尽及额度恢复时,通过宠物头顶气泡提醒,10 秒后自动关闭。
- 额度提醒仅保留一个开关,不发送系统通知;同一额度窗口内每个档位只提醒一次,重启后也不会重复提醒。
- 托盘/macOS 状态栏及宠物右键菜单使用单一显示/隐藏选项,根据宠物当前状态自动切换;隐藏后仍继续刷新额度。
- 修复 Windows 重复启动产生多个宠物的问题:重复打开会显示已有宠物,保持单实例运行。
English
- Refresh the active account's quota every minute by default, while preserving existing refresh preferences.
- Add active-account quota reminders at 20%, 10%, exhaustion and recovery. Reminders appear in a bubble above the pet and close automatically after 10 seconds.
- Use one reminder toggle with no system notifications. Each threshold is reported only once per quota window, including across app restarts.
- Use one state-aware Show/Hide action in the tray/macOS menu bar and pet context menu. Quota refresh continues while the pet is hidden.
- Fix duplicate pets on Windows by enforcing a single running instance. Reopening the app shows the existing pet.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.
Codex Pet v1.1.13
Codex Pet v1.1.12
Codex Pet v1.1.12
中文
- 更新轻量桌面宠物界面,使用居中的宠物和一体式额度胶囊。
- 同步宠物动作菜单和素材,区分休息与打哈欠动作。
- 包含账号额度自动刷新、交互反馈和账号面板体验改进。
- 安装包由私有源码仓库构建,公开仓库仅保存说明素材和发布产物,不包含应用源码历史。
English
- Refresh the compact pet interface with a centered character and integrated quota capsule.
- Synchronize the pet action menu and artwork, including distinct rest and yawn reactions.
- Include automatic quota refresh, interaction feedback, and account-panel improvements.
- Build installers from the private source repository; the public repository contains documentation and release artifacts only.
Downloads
Download the macOS Apple Silicon DMG or Windows x64 installer from the release assets.