hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

commit bf91819b0bb5ef12a318758aabaf4cee87c1132c
parent b03cc3b503bc8ff39c31f75c8f070afb6f1fb822
Author: triesap <tyson@radroots.org>
Date:   Mon, 21 Sep 2026 14:15:25 +0000

runtime: terminate persistent stdio cleanly at eof

Diffstat:
Msrc/hyf_stdio/server.mojo | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/hyf_stdio/server.mojo b/src/hyf_stdio/server.mojo @@ -350,7 +350,13 @@ def run_stdio_server_with_runtime_context( with _fdopen["r"](stdin) as input_file: while True: - var line = input_file.readline() + var line = String() + try: + line = input_file.readline() + except e: + if String(e) == "EOF": + break + raise e^ if line == "": break print(handle_frame(line, runtime_context))