fix(gateway): Definitive repair of handler-case syntax
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s

This commit is contained in:
2026-04-19 19:32:31 -04:00
parent fb5a5b19cc
commit 9a441226a2
3 changed files with 95 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ def wait_for_brain():
if os.path.exists('brain.log'):
with open('brain.log', 'r') as f:
if 'Boot Complete' in f.read():
print("[UI TEST] Brain is Green.")
print("[UI TEST] Brain is Green. Waiting for TCP listener...")
time.sleep(5)
return True
time.sleep(2)
return False
@@ -26,7 +27,14 @@ def test_tui_boot_and_input():
print("[UI TEST] Launching TUI and sending 'Hi'...")
# We run the TUI script via bash
command = ["bash", "opencortex.sh", "tui"]
# Direct SBCL launch to bypass shell script noise
command = ["sbcl", "--disable-debugger",
"--eval", "(load (merge-pathnames \"quicklisp/setup.lisp\" (user-homedir-pathname)))",
"--eval", "(push (truename \"\") asdf:*central-registry*)",
"--eval", "(ql:quickload :opencortex/tui)",
"--eval", "(opencortex.tui:main)"]
vt = run_test(command, "Hi\r", wait_time=15)
screen = vt.get_screen()