From 564e063f95c4848cdb63758a1f7b28f7c159050f Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 15 Jun 2026 10:53:28 +0200 Subject: [PATCH] Oi: block until agent idle, print response to stdout --- scripts/Oi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Oi b/scripts/Oi index cc554ba..899475b 100644 --- a/scripts/Oi +++ b/scripts/Oi @@ -78,5 +78,7 @@ fi # Send prompt to Navigator printf '%b' "$context\n\nAcknowledge context. What are we working on?" | 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"