From e5fb3ea524accec9c8f63f1f8c6c756bb0e66484 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 15 Jun 2026 11:06:08 +0200 Subject: [PATCH] Wtf: block until idle, print response to stdout --- scripts/Wtf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Wtf b/scripts/Wtf index 97d5f3b..f6f4158 100755 --- a/scripts/Wtf +++ b/scripts/Wtf @@ -78,5 +78,7 @@ fi # Send prompt to Navigator printf '%b' "$context\n\nWhat does this code do?" | try tee "$NAV_PATH/prompt" >/dev/null -# Print session ID so ollie-acme can open it -printf '%s\n' "$NAV_NAME" +# Wait for agent to finish, then print response +offset=$(cat "$NAV_PATH/offset") +while [ "$(cat "$NAV_PATH/statewait")" != "idle" ]; do :; done +tail -c +$((offset + 1)) "$NAV_PATH/chat"