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