Skip to content

Commit d8d3448

Browse files
chinkanCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b6c9464 commit d8d3448

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/main.rs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,20 @@ async fn main() -> Result<()> {
102102
mcp_manager.connect_all(&mcp_server_configs).await;
103103

104104
// Seed bundled skills/agents into the instance home on first run.
105-
let bundled_skills = PathBuf::from("skills");
106-
let bundled_agents = PathBuf::from("agents");
107-
if let Err(e) =
108-
rustfox::skills::seed::seed_dir_if_empty(&bundled_skills, &config.skills.directory).await
105+
// Seed bundled skills/agents into the instance home on first run.
106+
if let Err(e) = rustfox::skills::seed::seed_dir_if_empty(
107+
&config.skills.bundled_directory,
108+
&config.skills.directory,
109+
)
110+
.await
109111
{
110112
warn!("Skill seeding failed: {e}");
111113
}
112-
if let Err(e) =
113-
rustfox::skills::seed::seed_dir_if_empty(&bundled_agents, &config.agents.directory).await
114+
if let Err(e) = rustfox::skills::seed::seed_dir_if_empty(
115+
&config.agents.bundled_directory,
116+
&config.agents.directory,
117+
)
118+
.await
114119
{
115120
warn!("Agent seeding failed: {e}");
116121
}

0 commit comments

Comments
 (0)