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): validate hook command overrides early

cyhdc175b11ae71
diff --git a/skills/background-watch-hook/scripts/watch_then_hook.sh b/skills/background-watch-hook/scripts/watch_then_hook.sh
index 0a236ab26..5a4ca35e7 100755
--- a/skills/background-watch-hook/scripts/watch_then_hook.sh
+++ b/skills/background-watch-hook/scripts/watch_then_hook.sh
@@ -131,8 +131,18 @@ trap cleanup EXIT
_resolve_hook_command() {
if [[ -n "$hook_cmd_override" ]]; then
- printf '%s\n' "$hook_cmd_override"
- return 0
+ local override_help=""
+ if [[ "$hook_cmd_override" == *" "* ]]; then
+ override_help="$(bash -lc "$hook_cmd_override hook send --help" 2>/dev/null || true)"
+ else
+ override_help="$("$hook_cmd_override" hook send --help 2>/dev/null || true)"
+ fi
+ if [[ "$override_help" == *"--session-key"* && "$override_help" == *"Queue one asynchronous turn"* ]]; then
+ printf '%s\n' "$hook_cmd_override"
+ return 0
+ fi
+ echo "Hook command override did not expose a working 'hook send' command: $hook_cmd_override" >&2
+ return 127
fi
if [[ -n "$hook_bin" ]]; then