From c3cd57bd8e084c80a9b13e386f044e774713b614 Mon Sep 17 00:00:00 2001 From: lzt404 <2596933790@qq.com> Date: Sun, 23 Aug 2026 16:30:35 +0800 Subject: [PATCH] Dev (#163) * chore(release): stop publishing legacy Windows update packages * feat(agents): support OpenCode Desktop across platforms Detect CLI and desktop installations on Windows, macOS, and Linux, and add separate launch and restart controls. Closes #156 * fix(codex): align model display names and show total session count - preserve runtime model identity in generated catalogs - count distinct sessions across database and rollout sources - update session count labels in all supported languages * fix(codex): keep config and auth files in sync - generate auth.json for API key configuration - preserve and validate OAuth credentials - include auth.json in transactional updates and rollback - retain compatibility with legacy Codex configuration states * fix(cpa-gui): update version to 0.2.59 in Cargo files * fix(codex): preserve OAuth mode after closing configuration --- src/pages/AgentsPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/AgentsPage.tsx b/src/pages/AgentsPage.tsx index ed25e9d..46b2081 100644 --- a/src/pages/AgentsPage.tsx +++ b/src/pages/AgentsPage.tsx @@ -1245,6 +1245,7 @@ export function AgentsPage() { }; const closeConfigurationChanges = async () => { + const retainedOauthConfiguration = selected === 'codex' ? oauthConfiguration : null; setConfigurationError(''); setBusyAction('close-config'); try { @@ -1253,7 +1254,7 @@ export function AgentsPage() { claudeModelMappingsDirtyRef.current[selected] = false; } await reloadStatusesAfterAction(); - setOauthConfigurationDraft(null); + setOauthConfigurationDraft(retainedOauthConfiguration); } catch (requestError) { setConfigurationError(String(requestError)); } finally {