From be42c78aca12a24a74897ca9f284ea24d8a92939 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 24 Mar 2026 09:11:37 +0800 Subject: [PATCH] fix bug --- app/agent/middleware/skills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/agent/middleware/skills.py b/app/agent/middleware/skills.py index c3baa43e..fbb19aaa 100644 --- a/app/agent/middleware/skills.py +++ b/app/agent/middleware/skills.py @@ -195,7 +195,7 @@ async def _alist_skills(source_path: AsyncPath) -> list[SkillMetadata]: # 查找所有技能目录 (包含 SKILL.md 的目录) skill_dirs: List[AsyncPath] = [] - for path in source_path.iterdir(): + async for path in source_path.iterdir(): if await path.is_dir() and await (path / "SKILL.md").is_file(): skill_dirs.append(path)