app
Pup - the AI's own browser
Public Made by Adomby adom
pup gives your AI a real browser on your desktop that it drives completely, in the background, signed in as you: windows that never jump in front of your work, one shared profile that learns your logins, and every window labeled on the taskbar with its AI thread's name.
← Commit history
freshness check: ISO timestamps for -newermt (the box's find is now bfs, which rejects relative forms)
1 file changed
+2−2
tools/mode-ralph.sh+2−2@@ -132,12 +132,12 @@ shot_tray() { # shot_tray <label> — MUST produce a FRESH capture; a stale file local HW; HW=$(cat /tmp/tray_hwnd 2>/dev/null || echo 0) if [ "$HW" = "0" ] || [ -z "$HW" ]; then HW=$(resolve_tray_hwnd); fi timeout 60 $CLI desktop_screenshot_window "{\"hwnd\":$HW}" >/dev/null 2>&1- local P; P=$(find ~/project/screenshots/adom-bridge/window -name "*-${HW}.full.png" -newermt "-45 seconds" 2>/dev/null | head -1)+ local P; P=$(find ~/project/screenshots/adom-bridge/window -name "*-${HW}.full.png" -newermt "$(date -u -d '-45 seconds' '+%Y-%m-%dT%H:%M:%S')" 2>/dev/null | head -1) if [ -z "$P" ]; then # capture failed or hwnd stale (Explorer restart) — re-resolve once and retry HW=$(resolve_tray_hwnd); echo "$HW" > /tmp/tray_hwnd timeout 60 $CLI desktop_screenshot_window "{\"hwnd\":$HW}" >/dev/null 2>&1- P=$(find ~/project/screenshots/adom-bridge/window -name "*-${HW}.full.png" -newermt "-45 seconds" 2>/dev/null | head -1)+ P=$(find ~/project/screenshots/adom-bridge/window -name "*-${HW}.full.png" -newermt "$(date -u -d '-45 seconds' '+%Y-%m-%dT%H:%M:%S')" 2>/dev/null | head -1) fi if [ -z "$P" ]; then echo " SHOT_TRAY FAILED: no fresh capture (hwnd $HW) — pixel gate will be skipped as FAIL" >&2; rm -f "$SHOTDIR/$1.png"; return 1; fi cp "$P" "$SHOTDIR/$1.png"