diff --git a/agent-node/VERSION b/agent-node/VERSION index 852ed67..be5b4c7 100644 --- a/agent-node/VERSION +++ b/agent-node/VERSION @@ -1 +1 @@ -1.1.18 +1.1.20 diff --git a/agent-node/src/agent_node/node.py b/agent-node/src/agent_node/node.py index 63e5e9b..d5af6c1 100644 --- a/agent-node/src/agent_node/node.py +++ b/agent-node/src/agent_node/node.py @@ -129,9 +129,10 @@ def _handle_cancel(self, cancel_req): """Cancels an active task or an entire session's background tasks.""" - if cancel_req.session_id and not cancel_req.task_id: - logger.info(f"[*] Cancelling all tasks for session: {cancel_req.session_id}") - self.skills.cancel_session(cancel_req.session_id) + session_id = getattr(cancel_req, 'session_id', None) + if session_id and not cancel_req.task_id: + logger.info(f"[*] Cancelling all tasks for session: {session_id}") + self.skills.cancel_session(session_id) return if self.skills.cancel(cancel_req.task_id): diff --git a/ai-hub/app/api/routes/agent_update.py b/ai-hub/app/api/routes/agent_update.py index 7404d41..60a98ba 100644 --- a/ai-hub/app/api/routes/agent_update.py +++ b/ai-hub/app/api/routes/agent_update.py @@ -90,7 +90,7 @@ # 1. Add agent-node files if os.path.exists(_AGENT_NODE_DIR): - for root, dirs, files in os.walk(_AGENT_NODE_DIR): + for root, dirs, files in os.walk(_AGENT_NODE_DIR, followlinks=True): dirs[:] = [d for d in dirs if not _should_exclude(os.path.join(root, d))] for filename in files: abs_path = os.path.join(root, filename) @@ -100,7 +100,7 @@ # 2. Add skills directory if os.path.exists(_SKILLS_DIR): - for root, dirs, files in os.walk(_SKILLS_DIR): + for root, dirs, files in os.walk(_SKILLS_DIR, followlinks=True): dirs[:] = [d for d in dirs if not _should_exclude(os.path.join(root, d))] for filename in files: abs_path = os.path.join(root, filename)