From da38bea182cc40e0f4cb1a86f96f5ff2e65134a3 Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Fri, 17 Apr 2026 19:57:45 -0400 Subject: [PATCH] fix(mvp): Resolve installer fallthrough and TUI connection hang --- opencortex.sh | 1 + skills/org-skill-cli-gateway.org | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/opencortex.sh b/opencortex.sh index 97ec06c..ff4b819 100755 --- a/opencortex.sh +++ b/opencortex.sh @@ -149,6 +149,7 @@ setup_system() { cat "$SCRIPT_DIR/brain.log" exit 1 fi + exit 0 } # --- 3. AUTO-SETUP --- diff --git a/skills/org-skill-cli-gateway.org b/skills/org-skill-cli-gateway.org index 5a778bd..b50459a 100644 --- a/skills/org-skill-cli-gateway.org +++ b/skills/org-skill-cli-gateway.org @@ -62,7 +62,9 @@ The CLI actuator writes the agent's response back to the client's network stream (if (and stream (open-stream-p stream)) (progn (format stream "~a~%" (frame-message (format nil "~s" (list :type :chat :text text)))) - (finish-output stream)) + (finish-output stream) + (format stream "~a~%" (frame-message (format nil "~s" '(:type :status :scribe :idle :gardener :sleeping)))) + (finish-output stream)) (harness-log "CLI ERROR: No active or open reply stream for signal.")) (error (c) (harness-log "CLI ACTUATOR ERROR: ~a" c))))) #+end_src @@ -93,6 +95,8 @@ Handles an individual TCP connection. It reads lines until the connection is clo ;; 1. Send Handshake (format stream "~a~%" (frame-message (format nil "~s" (make-hello-message "0.1.0")))) (finish-output stream) + (format stream "~a~%" (frame-message (format nil "~s" '(:type :status :scribe :idle :gardener :sleeping)))) + (finish-output stream) ;; 2. Communication Loop (loop