diff --git a/scripts/review.sh b/scripts/review.sh index 4c78695..5f9530b 100755 --- a/scripts/review.sh +++ b/scripts/review.sh @@ -255,9 +255,14 @@ if [ ! -s /tmp/pi-review.md ]; then exit 1 fi +echo "Debug mode: PI_DEBUG=${PI_DEBUG}" + # If debug mode, extract tool calls from session and append to review if [ "${PI_DEBUG}" = "true" ]; then + echo "Session dir contents:" + find /tmp/pi-session -type f 2>/dev/null || echo " (none)" SESSION_FILE=$(find /tmp/pi-session -name '*.jsonl' -type f 2>/dev/null | head -1) + echo "Session file: ${SESSION_FILE:-}" TOOL_LOG="" if [ -n "${SESSION_FILE}" ]; then