Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix(cli): keep child cleanup working on Windows

Trevin Chow16ce073d0c1b
diff --git a/skills/last30days/scripts/last30days.py b/skills/last30days/scripts/last30days.py
index c7daba64..26996529 100644
--- a/skills/last30days/scripts/last30days.py
+++ b/skills/last30days/scripts/last30days.py
@@ -63,7 +63,10 @@ def _cleanup_children() -> None:
pids = list(_child_pids)
for pid in pids:
try:
- os.killpg(os.getpgid(pid), signal.SIGTERM)
+ if hasattr(os, "killpg"):
+ os.killpg(os.getpgid(pid), signal.SIGTERM)
+ else:
+ os.kill(pid, signal.SIGTERM)
except (ProcessLookupError, PermissionError, OSError):
continue