From 52f0ff3961cf3b454d898ca8a7bdaff0b94b41a9 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 1 Apr 2026 21:12:17 +0800 Subject: [PATCH] fix(test): use preferred_filename after OMO field rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The merge from main brought in #1746 which renamed OmoVariant.filename → preferred_filename, but the test helper omo_config_path() was not updated, breaking compilation of all new provider tests. --- src-tauri/src/services/provider/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/services/provider/mod.rs b/src-tauri/src/services/provider/mod.rs index 50a6413e..cc40f9dd 100644 --- a/src-tauri/src/services/provider/mod.rs +++ b/src-tauri/src/services/provider/mod.rs @@ -185,8 +185,8 @@ mod tests { fn omo_config_path(home: &Path, category: &str) -> PathBuf { home.join(".config").join("opencode").join(match category { - "omo" => crate::services::omo::STANDARD.filename, - "omo-slim" => crate::services::omo::SLIM.filename, + "omo" => crate::services::omo::STANDARD.preferred_filename, + "omo-slim" => crate::services::omo::SLIM.preferred_filename, other => panic!("unexpected OMO category in test: {other}"), }) }