diff --git a/scripts/Oi b/scripts/Oi index 899475b..d41df6e 100644 --- a/scripts/Oi +++ b/scripts/Oi @@ -79,6 +79,9 @@ fi printf '%b' "$context\n\nAcknowledge context. What are we working on?" | try tee "$NAV_PATH/prompt" >/dev/null # Wait for agent to finish, then print response -offset=$(cat "$NAV_PATH/offset") +while [ "$(cat "$NAV_PATH/statewait")" = "idle" ]; do :; done while [ "$(cat "$NAV_PATH/statewait")" != "idle" ]; do :; done +sleep 0.1 +offset=$(cat "$NAV_PATH/offset") tail -c +$((offset + 1)) "$NAV_PATH/chat" +printf '\n%s\n' "$NAV_NAME" diff --git a/scripts/Wtf b/scripts/Wtf index f6f4158..a2e10ac 100755 --- a/scripts/Wtf +++ b/scripts/Wtf @@ -79,6 +79,9 @@ fi printf '%b' "$context\n\nWhat does this code do?" | try tee "$NAV_PATH/prompt" >/dev/null # Wait for agent to finish, then print response -offset=$(cat "$NAV_PATH/offset") +while [ "$(cat "$NAV_PATH/statewait")" = "idle" ]; do :; done while [ "$(cat "$NAV_PATH/statewait")" != "idle" ]; do :; done +sleep 0.1 +offset=$(cat "$NAV_PATH/offset") tail -c +$((offset + 1)) "$NAV_PATH/chat" +printf '\n%s\n' "$NAV_NAME"