diff --git a/agent-node/VERSION b/agent-node/VERSION index 7eeb2c7..32c4ece 100644 --- a/agent-node/VERSION +++ b/agent-node/VERSION @@ -1 +1 @@ -1.0.62 +1.0.63 diff --git a/agent-node/src/agent_node/skills/shell_bridge.py b/agent-node/src/agent_node/skills/shell_bridge.py index 479bbb6..95e6d14 100644 --- a/agent-node/src/agent_node/skills/shell_bridge.py +++ b/agent-node/src/agent_node/skills/shell_bridge.py @@ -190,7 +190,8 @@ # EDGE INTELLIGENCE: Proactively signal prompt detection # We only check for prompts if we are actively running a task and haven't found the marker yet. - if active_tid and not sess["event"].is_set(): + current_event = sess.get("event") + if active_tid and current_event and not current_event.is_set(): import re tail = sess["tail_buffer"][-100:] if len(sess["tail_buffer"]) > 100 else sess["tail_buffer"] for pattern in self.PROMPT_PATTERNS: @@ -207,6 +208,10 @@ break except (EOFError, OSError): break + except Exception as catch_all: + print(f" [🐚❌] Reader thread FATAL exception: {catch_all}") + break + # Thread Cleanup print(f" [🐚] Shell Session Terminated: {session_id}")