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(skill): poll issue comments newest-first

cyhe76a28e07864
diff --git a/skills/background-watch-hook/scripts/wait_issue.py b/skills/background-watch-hook/scripts/wait_issue.py
index f67f88753..13d7f196c 100644
--- a/skills/background-watch-hook/scripts/wait_issue.py
+++ b/skills/background-watch-hook/scripts/wait_issue.py
@@ -81,7 +81,7 @@ def _fetch_issue_comment_state(
) -> tuple[dict[str, list[dict[str, Any]]], int]:
encoded_repo = urllib.parse.quote(repo, safe="/")
comments, request_count = list_paginated_with_count(
- f"https://api.github.com/repos/{encoded_repo}/issues/{issue_number}/comments",
+ f"https://api.github.com/repos/{encoded_repo}/issues/{issue_number}/comments?sort=created&direction=desc",
token,
stop_after_id=stop_after_id,
)
diff --git a/tests/test_wait_for_github_issue_activity.py b/tests/test_wait_for_github_issue_activity.py
index 520f7d20f..74801d491 100644
--- a/tests/test_wait_for_github_issue_activity.py
+++ b/tests/test_wait_for_github_issue_activity.py
@@ -120,7 +120,7 @@ def test_fetch_issue_comment_state_stops_after_cursor() -> None:
]
def _fake_list_paginated_with_count(base_url, token, *, stop_after_id=None):
- assert "issues/24/comments" in base_url
+ assert "issues/24/comments?sort=created&direction=desc" in base_url
assert stop_after_id == 302
return comments, 2