diff options
| author | akbash <akbash@herdr.dev> | 2026-09-10 13:19:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 13:19:25 +0300 |
| commit | 6fe8f818b91a2565f3546f9dc6b3b18f8a55b065 (patch) | |
| tree | d2a2d5f42ab7b0a740efde889131340d38de8620 /src/integration/assets/pi | |
| parent | 120c682008a85dc17d7a13cc619a2fd5d25f3924 (diff) | |
fix(pi): support Windows session paths (#3729)
refs #3726
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/integration/assets/pi')
| -rw-r--r-- | src/integration/assets/pi/herdr-agent-state.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/integration/assets/pi/herdr-agent-state.ts b/src/integration/assets/pi/herdr-agent-state.ts index 67bc4188..276c964d 100644 --- a/src/integration/assets/pi/herdr-agent-state.ts +++ b/src/integration/assets/pi/herdr-agent-state.ts @@ -2,10 +2,11 @@ // managed by herdr; reinstalling or updating the integration overwrites this file. // add custom hooks/plugins beside this file instead of editing it. // HERDR_INTEGRATION_ID=pi -// HERDR_INTEGRATION_VERSION=8 +// HERDR_INTEGRATION_VERSION=9 // @ts-nocheck import net from "node:net"; +import path from "node:path"; const HERDR_ENV = process.env.HERDR_ENV; const socketPath = process.env.HERDR_SOCKET_PATH; @@ -74,7 +75,10 @@ function updateSessionRef(ctx: any): void { try { const file = ctx?.sessionManager?.getSessionFile?.(); currentAgentSessionPath = - typeof file === "string" && file.startsWith("/") ? file : undefined; + typeof file === "string" && + (path.posix.isAbsolute(file) || path.win32.isAbsolute(file)) + ? file + : undefined; } catch { currentAgentSessionPath = undefined; } |
