From 2c6fe6c31abf72b865716c1b8d0c0c016a0f9dce Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 4 Sep 2025 21:35:51 +0800 Subject: [PATCH] chore(migration): use 'current' as the name for live-imported providers\n\n- Rename live-imported provider name from 'default' to 'current' for Claude/Codex\n- Keeps current selection logic intact when setting manager.current --- src-tauri/src/migration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/migration.rs b/src-tauri/src/migration.rs index c4bb263..fc5e728 100644 --- a/src-tauri/src/migration.rs +++ b/src-tauri/src/migration.rs @@ -142,7 +142,7 @@ pub fn migrate_copies_into_config(config: &mut MultiAppConfig) -> Result(&settings_path) { - Ok(val) => Some(("default".to_string(), val)), + Ok(val) => Some(("current".to_string(), val)), Err(e) => { log::warn!("读取 Claude live 配置失败: {}", e); None @@ -229,7 +229,7 @@ pub fn migrate_copies_into_config(config: &mut MultiAppConfig) -> Result { log::warn!("读取 Codex live auth.json 失败: {}", e);