Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(skills): account for pagination probe requests

cyh6f4e2d3e386a
diff --git a/skills/background-watch-hook/scripts/wait_for_github_pr_activity.py b/skills/background-watch-hook/scripts/wait_for_github_pr_activity.py
index d80a15c20..4e6414e79 100755
--- a/skills/background-watch-hook/scripts/wait_for_github_pr_activity.py
+++ b/skills/background-watch-hook/scripts/wait_for_github_pr_activity.py
@@ -13,7 +13,6 @@ import time
import urllib.error
import urllib.parse
import urllib.request
-from math import ceil
from typing import Any
@@ -140,7 +139,8 @@ def _fetch_state(repo: str, pr_number: int, token: str | None) -> dict[str, list
def _requests_per_poll(state: dict[str, list[dict[str, Any]]]) -> int:
requests = 0
for key in ("reviews", "review_comments", "issue_comments"):
- requests += max(1, ceil(len(state[key]) / 100))
+ item_count = len(state[key])
+ requests += max(1, (item_count // 100) + 1)
return requests