You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 30, 2026. It is now read-only.
Loop error: Command ['osascript', ...] timed out after 10 seconds
When many iTerm windows/tabs were open, the TUI scan path kept failing every poll cycle.
Root Cause
watcher_tui_scan.py used subprocess.run(..., timeout=10) without handling subprocess.TimeoutExpired. AppleScript enumeration of many iTerm sessions regularly took more than 10s, so the exception propagated into the watcher loop.
Fix
Increased AppleScript timeout from 10s to 25s
Wrapped the call in try/except subprocess.TimeoutExpired
On timeout, return an empty session list instead of crashing the loop
Symptom
Watcher log repeatedly showed:
When many iTerm windows/tabs were open, the TUI scan path kept failing every poll cycle.
Root Cause
watcher_tui_scan.pyusedsubprocess.run(..., timeout=10)without handlingsubprocess.TimeoutExpired. AppleScript enumeration of many iTerm sessions regularly took more than 10s, so the exception propagated into the watcher loop.Fix
try/except subprocess.TimeoutExpiredCommit:
04b77ccFile:
antigravity/core/watcher_tui_scan.pyVerification
After restarting the watcher with the patched code:
Loop error ... timed out after 10 seconds07:27:41