Oi: block until agent idle, print response to stdout

This commit is contained in:
Levi Neely 2026-06-15 10:53:28 +02:00
parent b9dcf04227
commit 564e063f95
1 changed files with 4 additions and 2 deletions

View File

@ -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"