From dc50bc286acfd6eeea47bac4f9c45e2de2fa5e45 Mon Sep 17 00:00:00 2001 From: autocommit Date: Sun, 17 May 2026 05:25:01 -0700 Subject: [PATCH] =?UTF-8?q?perf(cli-command):=20=E2=9A=A1=20Improve=20Pyth?= =?UTF-8?q?on=20path=20probing=20for=20claude=5Fcode=5Fbatch=5Fsdk=20compa?= =?UTF-8?q?tibility=20in=20rclaude?= 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