fix(config): isolate conflicting provider cache paths

Fixes #7989
This commit is contained in:
wonfen
2026-09-21 23:20:48 +08:00
parent d374ab4350
commit 3b958acb22
4 changed files with 179 additions and 3 deletions
+2
View File
@@ -6,6 +6,7 @@ use crate::{
CoreManager,
handle::{self, Handle},
listener::MIXED_PORT_KEY,
runtime_bundle::resolve_provider_path_conflicts,
tray,
validate::CoreConfigValidator,
},
@@ -228,6 +229,7 @@ impl Config {
pub(crate) async fn generate_with_profiles(profiles: &IProfiles) -> Result<()> {
let (mut config, exists_keys, logs, dns_override) = enhance::enhance(profiles).await?;
resolve_provider_path_conflicts(&mut config, &dirs::app_home_dir()?)?;
sanitize_tunnels_proxy(&mut config);
// Apply only to generated core config so the saved choice survives the next launch.
if let Some(port) = MixedPort::session_fallback() {