From f990177df85b64066a397a3d5c41ca2c021ca6b1 Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Wed, 15 Jul 2026 14:32:35 +0200 Subject: [PATCH] fix(claude_desktop): resolve headroom binary via PATH in claude wrapper The /usr/local/bin/claude wrapper hardcoded HEADROOM_BIN as /usr/local/bin/headroom, but the binary is installed at /usr/bin/headroom (symlink to /lsiopy/bin/headroom). The -x check therefore always failed and terminal Claude Code sessions never routed through the Headroom proxy at 127.0.0.1:8787. Resolve the binary with "command -v headroom" instead; an empty result still fails the -x check safely and falls back to launching Claude Code directly. Co-Authored-By: Claude Fable 5 --- claude_desktop/CHANGELOG.md | 4 ++++ claude_desktop/config.yaml | 2 +- claude_desktop/rootfs/usr/local/bin/claude | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/claude_desktop/CHANGELOG.md b/claude_desktop/CHANGELOG.md index c92bbdc23e..1729842d4d 100644 --- a/claude_desktop/CHANGELOG.md +++ b/claude_desktop/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.24 (15-07-2026) + +- Fix the `/usr/local/bin/claude` wrapper never routing terminal Claude Code sessions through the Headroom proxy: it hardcoded `HEADROOM_BIN="/usr/local/bin/headroom"` while the binary is installed at `/usr/bin/headroom`, so the executable check always failed and the wrapper fell back to launching Claude Code directly. Resolve the binary with `command -v headroom` instead. + ## 1.23 (15-07-2026) - Add a `ha-cli` helper that lets Claude configure Home Assistant (automations, scripts, scenes, helpers, dashboards, area/label/floor/entity registries, and service calls) through the Home Assistant Core API instead of a filesystem mount. It authenticates automatically with the add-on's `SUPERVISOR_TOKEN` via the Supervisor Core-API proxy (no token setup), and deliberately cannot reach `configuration.yaml`/`secrets.yaml` or other add-ons' credentials. Toggle with the new `enable_ha_api_helper` option (default on), which also controls a managed guidance block appended to `~/.claude/CLAUDE.md`. diff --git a/claude_desktop/config.yaml b/claude_desktop/config.yaml index 39dc679aaa..e2b62075d2 100644 --- a/claude_desktop/config.yaml +++ b/claude_desktop/config.yaml @@ -105,5 +105,5 @@ slug: claude_desktop tmpfs: true udev: true url: https://github.com/alexbelgium/hassio-addons -version: "1.23" +version: "1.24" video: true diff --git a/claude_desktop/rootfs/usr/local/bin/claude b/claude_desktop/rootfs/usr/local/bin/claude index ec56d152be..f928a846c3 100644 --- a/claude_desktop/rootfs/usr/local/bin/claude +++ b/claude_desktop/rootfs/usr/local/bin/claude @@ -3,7 +3,7 @@ set -o pipefail REAL_CLAUDE="/usr/bin/claude" -HEADROOM_BIN="/usr/local/bin/headroom" +HEADROOM_BIN="$(command -v headroom || true)" HEADROOM_URL="http://127.0.0.1:8787" PERMISSION_MODE="$(bashio::config 'permission_mode')" declare -a CLAUDE_PERMISSION_ARGS=()