JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(auto-harness): expert pipeline执行完成 web 自动更新
ray_le7e8f47030178
diff --git a/jiuwenswarm/agents/harness/common/auto_harness/service.py b/jiuwenswarm/agents/harness/common/auto_harness/service.pyindex c44eb12838..b455e567cf 100644--- a/jiuwenswarm/agents/harness/common/auto_harness/service.py+++ b/jiuwenswarm/agents/harness/common/auto_harness/service.py@@ -1578,6 +1578,23 @@ class AutoHarnessService:)finally:+ # Refresh packages cache in finally block to ensure it runs regardless of exit path+ # (success/failure/cancellation/disconnect)+ if active_run and active_run.pipeline_preference == EXTENDED_EVOLVE_PIPELINE:+ try:+ data = await asyncio.to_thread(self.scan_runtime_extensions)+ await asyncio.to_thread(self.save_packages, data)+ logger.info(+ "[AutoHarnessService] Packages cache refreshed in finally block after %s, session=%s",+ active_run.pipeline_preference,+ session_id,+ )+ except Exception as exc:+ logger.warning(+ "[AutoHarnessService] Failed to refresh packages cache in finally block: %s",+ exc,+ )+if session_id in self._active_runs:del self._active_runs[session_id]