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(watch): fail fast on action startup errors

cyh531ff47221d9
diff --git a/skills/background-watch-hook/scripts/wait_action.py b/skills/background-watch-hook/scripts/wait_action.py
index 4ed2ce37b..3632ff437 100755
--- a/skills/background-watch-hook/scripts/wait_action.py
+++ b/skills/background-watch-hook/scripts/wait_action.py
@@ -258,6 +258,8 @@ def main() -> int:
runs = []
except Exception as err: # noqa: BLE001
print(f"Polling failed: {err}", file=sys.stderr)
+ if first_poll:
+ return 1
runs = []
request_count = 0
diff --git a/tests/test_wait_for_github_action_runs.py b/tests/test_wait_for_github_action_runs.py
index 9c256fc02..a0d4b772f 100644
--- a/tests/test_wait_for_github_action_runs.py
+++ b/tests/test_wait_for_github_action_runs.py
@@ -333,3 +333,16 @@ def test_main_retryable_startup_http_error_returns_retry_code() -> None:
rc = module.main()
assert rc == module.RETRY_EXIT_CODE
+
+
+def test_main_unexpected_startup_error_fails_fast() -> None:
+ module = _load_module()
+
+ with (
+ patch.object(module, "get_token", return_value="token"),
+ patch.object(module, "_fetch_workflow_runs", side_effect=RuntimeError("bad payload")),
+ patch("sys.argv", ["wait_action.py", "--repo", "cyhhao/sub2api", "--sha", "abc123", "--workflow", "CI"]),
+ ):
+ rc = module.main()
+
+ assert rc == 1