diff --git a/src-tauri/src/codex_config.rs b/src-tauri/src/codex_config.rs
index a4f277465..4b111daad 100644
--- a/src-tauri/src/codex_config.rs
+++ b/src-tauri/src/codex_config.rs
@@ -1,3 +1,4 @@
+use std::collections::HashSet;
use std::path::{Path, PathBuf};
use crate::config::{
@@ -393,39 +394,227 @@ fn load_codex_model_template_from_cache() -> Result