Use AbsolutePathBuf in skill loading and codex_home (#17407)

Helps with FS migration later
This commit is contained in:
pakrym-oai authored and GitHub committed 2026-04-13 10:26:51 -07:00
1 parent d25a9822a7
commit ac82443d07
86 files changed
+850 -625

No files matched your search

+5 -5
View File
@@ -801,7 +801,7 @@ pub(crate) struct ChatWidget {
pending_collab_spawn_requests: HashMap<String, multi_agents::SpawnRequestSummary>,
suppressed_exec_calls: HashSet<String>,
skills_all: Vec<ProtocolSkillMetadata>,
skills_initial_state: Option<HashMap<PathBuf, bool>>,
skills_initial_state: Option<HashMap<AbsolutePathBuf, bool>>,
last_unified_wait: Option<UnifiedExecWaitState>,
unified_exec_wait_streak: Option<UnifiedExecWaitStreak>,
turn_sleep_inhibitor: SleepInhibitor,
@@ -5353,7 +5353,7 @@ impl ChatWidget {
.map(|binding| binding.mention.clone())
.collect();
let mut skill_names_lower: HashSet<String> = HashSet::new();
let mut selected_skill_paths: HashSet<PathBuf> = HashSet::new();
let mut selected_skill_paths: HashSet<AbsolutePathBuf> = HashSet::new();
let mut selected_plugin_ids: HashSet<String> = HashSet::new();
if let Some(skills) = self.bottom_pane.skills() {
@@ -5375,7 +5375,7 @@ impl ChatWidget {
{
items.push(UserInput::Skill {
name: skill.name.clone(),
path: skill.path_to_skills_md.clone(),
path: skill.path_to_skills_md.to_path_buf(),
});
}
}
@@ -5389,7 +5389,7 @@ impl ChatWidget {
}
items.push(UserInput::Skill {
name: skill.name.clone(),
path: skill.path_to_skills_md.clone(),
path: skill.path_to_skills_md.to_path_buf(),
});
}
}
@@ -10341,7 +10341,7 @@ impl ChatWidget {
return;
}
let plugins = PluginsManager::new(self.config.codex_home.clone())
let plugins = PluginsManager::new(self.config.codex_home.to_path_buf())
.plugins_for_config(&self.config)
.capability_summaries()
.to_vec();