echo "=== Interactive Non-Blocking Test ==="
echo ""
if [[ -n "$SLICK_TEST_DELAY" ]]; then
echo "Loading slick with ${SLICK_TEST_DELAY}-second delay enabled..."
else
echo "Loading slick (no delay - set SLICK_TEST_DELAY=N to add delay)..."
fi
echo ""
source ./load.zsh
echo ""
echo "✓ Slick loaded!"
echo ""
echo "Now press ENTER and start typing immediately"
if [[ -n "$SLICK_TEST_DELAY" ]]; then
echo "The prompt should NOT block for ${SLICK_TEST_DELAY} seconds!"
echo ""
echo "Phase 1 (instant): Shows [user path branch]"
echo "Phase 2 (${SLICK_TEST_DELAY}s later): Updates with [git status]"
else
echo "The prompt should render in 2 phases (instant + git status)!"
echo ""
echo "Phase 1 (instant): Shows [user path branch]"
echo "Phase 2 (~50ms later): Updates with [git status]"
fi
echo ""