Move time.sleep inside the try/except to catch BaseException-level failures, and wrap the watcher thread in a supervisor that auto-restarts it within 5s if it ever exits unexpectedly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move time.sleep inside the try/except to catch BaseException-level failures, and wrap the watcher thread in a supervisor that auto-restarts it within 5s if it ever exits unexpectedly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>