From b92014a20efdfe765d4ecca618b64a7a0659b86f Mon Sep 17 00:00:00 2001 From: AIPass Date: Thu, 16 Apr 2026 13:57:17 -0700 Subject: [PATCH] =?UTF-8?q?feat(system):=20fix(setup):=20Gemini=20hook=20i?= =?UTF-8?q?nstall=20NameError=20=E2=80=94=20hook=5Fpython=20was=20undefine?= =?UTF-8?q?d=20in=20the=20Gemini=20block=20(only=20defined=20in=20Claude?= =?UTF-8?q?=20block=20above).=20Pass=20HOOK=5FPYTHON=20through=20explicitl?= =?UTF-8?q?y=20like=20the=20Claude=20flow=20does.=20(#344)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: @devpulse --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 5860db3d..3059d0de 100755 --- a/setup.sh +++ b/setup.sh @@ -507,13 +507,18 @@ if command -v gemini &>/dev/null; then GEMINI_SETTINGS="$HOME/.gemini/settings.json" mkdir -p "$HOME/.gemini" - python3 - "$SCRIPT_DIR" "$GEMINI_SETTINGS" << 'PYEOF' + # HOOK_PYTHON was set earlier in the Claude hooks block; reuse it. + # Fall back to python3 if this block runs without that setup (defensive). + GEMINI_HOOK_PYTHON="${HOOK_PYTHON:-python3}" + + python3 - "$SCRIPT_DIR" "$GEMINI_SETTINGS" "$GEMINI_HOOK_PYTHON" << 'PYEOF' import json import sys from pathlib import Path repo_root = sys.argv[1] settings_path = Path(sys.argv[2]) +hook_python = sys.argv[3] hooks_dir = f"{repo_root}/.gemini/hooks" # Load existing settings or start fresh