diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-08-12 21:13:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-12 22:13:21 +0300 |
| commit | 1079fff412ca978548e42af79b3f1b7ad7912686 (patch) | |
| tree | eb674bc13112d60007341c18603600d1221ea614 /src/integration/assets/qodercli/herdr-agent-state.sh | |
| parent | d46d9a22751ec21a6c39d1acf6b3f31a2b2eecd8 (diff) | |
fix: use the running binary in agent hooks (#2722)
Diffstat (limited to 'src/integration/assets/qodercli/herdr-agent-state.sh')
| -rw-r--r-- | src/integration/assets/qodercli/herdr-agent-state.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/integration/assets/qodercli/herdr-agent-state.sh b/src/integration/assets/qodercli/herdr-agent-state.sh index 871549e6..8f03389a 100644 --- a/src/integration/assets/qodercli/herdr-agent-state.sh +++ b/src/integration/assets/qodercli/herdr-agent-state.sh @@ -1,13 +1,12 @@ #!/bin/sh # managed by herdr; reinstalling the integration replaces this file. # HERDR_INTEGRATION_ID=qodercli -# HERDR_INTEGRATION_VERSION=2 +# HERDR_INTEGRATION_VERSION=3 [ "${1:-}" = "session" ] || exit 0 [ "${HERDR_ENV:-}" = "1" ] || exit 0 [ -n "${HERDR_SOCKET_PATH:-}" ] || exit 0 [ -n "${HERDR_PANE_ID:-}" ] || exit 0 -command -v herdr >/dev/null 2>&1 || exit 0 command -v python3 >/dev/null 2>&1 || exit 0 python3 -c ' @@ -24,7 +23,8 @@ try: raise ValueError subprocess.run( [ - "herdr", "pane", "report-agent-session", os.environ["HERDR_PANE_ID"], + os.environ.get("HERDR_BIN_PATH") or "herdr", + "pane", "report-agent-session", os.environ["HERDR_PANE_ID"], "--source", "herdr:qodercli", "--agent", "qodercli", "--agent-session-id", session_id, "--seq", str(time.time_ns()), ], |
