From 795e40c69a026715769130ff29ac894e289baaef Mon Sep 17 00:00:00 2001 From: Natalie Date: Sun, 17 May 2026 05:10:18 -0700 Subject: [PATCH] =?UTF-8?q?fix(@scripts):=20=F0=9F=90=9B=20add=20path=20pr?= =?UTF-8?q?obing=20for=20python3=20SDK=20detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- bin/rclaude | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/rclaude b/bin/rclaude index 6f16ea8..e140c1e 100755 --- a/bin/rclaude +++ b/bin/rclaude @@ -187,11 +187,17 @@ list_triage_on() { _helper="$_helper_dir/_claude-triage" [ -f "$_helper" ] || return 0 if is_local "$_host"; then + # Probe PATH with Homebrew prefixes (mac) and the user's ~/.local/bin + # both included, in case the script is invoked from a leaner non-login + # context (ssh, cron, tmux without env inheritance). + _orig_path=$PATH + PATH=$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:$PATH PY="" for _p in python3.13 python3.12 python3.11 python3; do _b=$(command -v "$_p" 2>/dev/null) || continue "$_b" -c "import claude_code_batch_sdk" 2>/dev/null && PY=$_b && break done + PATH=$_orig_path if [ -z "$PY" ]; then echo "rclaude: no python with claude_code_batch_sdk found locally" >&2 return 1