fix(skill-review): after_agent must be sync, not async

This commit is contained in:
xuhd committed 2026-06-05 13:32:19 +08:00
1 parent d713f0209d
commit 23a18ec318
2 files changed
+7 -11

No files matched your search

@@ -39,7 +39,7 @@ class SkillReviewMiddleware(AgentMiddleware[SkillReviewMiddlewareState]):
state_schema = SkillReviewMiddlewareState
@override
async def after_agent(self, state: Any, runtime: Runtime) -> None:
def after_agent(self, state: Any, runtime: Runtime) -> None:
"""Fire background review; never raises — failures are logged only."""
try:
app_config = get_app_config()